使用 Roblox,我已经尝试了 3-4 次,但仍然弹出此错误:
Zone4Tp 不是工作区“工作区”的有效成员 - 客户端 - 本地脚本:3
如果您想知道,是的,它就在工作区中。这是我的代码:
local but = script.Parent
local localplayer = game:GetService("Players").LocalPlayer
local tppart = game:GetService("Workspace").Zone4Tp -- Replace with your TpPart name if you changed it.
but.MouseButton1Click:Connect(function(plr)
localplayer.Character:MoveTo(tppart.Position)
end)
当我测试它时,它不断发送垃圾邮件,说它不可用于工作区。有什么帮助吗?
--workspace.StreamingEnabled=false