So I made this and don't really understand why it works in studio and not on my game. I'm unsure how I would get it to work. As of now it's in a normal script and not a local, though that's probably the problem. Though when I put it in a local script it still did not work. Eh, I'm clueless anyhow.
script.Parent.Touched:connect(function(Hit)
local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
local humanoid = Hit.Parent:FindFirstChild("Humanoid")
if Player then
Player.PlayerScripts.ControlScript.Disabled = true
humanoid:MoveTo(workspace.EndPlate.Position)
wait(10)
Player.PlayerScripts.ControlScript.Disabled = false
end
end)

1 comment
And if it is on, what would you suggest? Turning it off?