So, I've created a cutscene where players walk in, but I don't want them to DIRECTLY control the character, since I'm just using Humanoid:MoveTo()
to walk them to the place I want them to go. But I've looked on many websites, and I can't seem to find a solution to this problem.
If anyone knows a solution to this, I would be happy to hear it.
Thanks!
Hey PickUpTheBeat1,
ControlScript
, which is located under PlayerScripts
, which is under the Player. Then, you enable it when you want them to be able to control the character.01 | local plrs = game:GetService( "Players" ); |
02 | local plr = plrs.LocalPlayer; |
03 |
04 | function turn_it_off(plr) |
05 |
06 | local plr_srps = plr:WaitForChild( "PlayerScripts" ); |
07 | local control = plr_srps:WaitForChild( "ControlScript" ); |
08 |
09 | control.Disabled = true ; |
10 | end ; |
11 |
12 | plrs.PlayerAdded:Connect(turn_it_off); |
13 |
14 | for _, player in next , plrs:GetPlayers() do |
15 | turn_it_off(player); |
16 | end |
~~ KingLoneCat