I know this is a bit of a long shot but I'm making a script that forces characters to walk on a path through different bookmark points. When this block gets hit by a player, it moves that player to the next part. How would I get it so that it stops the player from being able to control their character? Thanks!
function touched(part)
if part.Name == "Head" then
local player = game.Players:GetPlayerFromCharacter(part.Parent)
player.Character.Humanoid:MoveTo(script.Parent.Parent.Part1.Position)
end
end
script.Parent.Touched:connect(touched)

1 comment
Sorry but it won't let me go into PlayerScripts, something to do with it being a Local Script