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...
01 | wait( 0.5 ) |
02 | local PlayerService = game:GetService( "Players" ) |
03 | local Player = PlayerService.LocalPlayer |
04 | local ControlScript = Player.PlayerScripts:WaitForChild( "ControlScript" ) |
05 | local MasterControl = ControlScript:WaitForChild( "MasterControl" ) |
06 | function DCS () --Disable Control Scripts |
07 | ControlScript.Disabled = true |
08 | MasterControl.Disabled = true |
09 | for_,v in pairs (MasterControl:GetChildren()) |
10 | v.Disabled = true |
11 | end |
12 | end |
13 |
14 | function ECS () --Enable Control Scripts |
15 | ControlScript.Disabled = false |
16 | MasterControl.Disabled = false |
17 | for_,v in pairs (MasterControl:GetChildren()) |
18 | v.Disabled = false |
19 | end |
20 | end |
should work, if it does, accept the answer :p