Like I know how to move the player using player.Character.Humanoid:moveto() but how can I move the player without letting him interfere. For example if I move a player to a brick using the function. The user controling the player can break out of it by going in a different direction. I want to stop the user from controling his/her player until he reaches that certain brick. How would I do this?
I'm guessing something like...
wait(0.5) local PlayerService = game:GetService("Players") local Player = PlayerService.LocalPlayer local ControlScript = Player.PlayerScripts:WaitForChild("ControlScript") local MasterControl = ControlScript:WaitForChild("MasterControl") function DCS () --Disable Control Scripts ControlScript.Disabled = true MasterControl.Disabled = true for_,v in pairs (MasterControl:GetChildren()) v.Disabled = true end end function ECS () --Enable Control Scripts ControlScript.Disabled = false MasterControl.Disabled = false for_,v in pairs (MasterControl:GetChildren()) v.Disabled = false end end
should work, if it does, accept the answer :p