skript92
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 1430 |
|
|
| 04 Jun 2014 12:10 PM |
Do you know how to disable character movement like walking when pressing W,A,S,D? I want to make a loading gui at the start. During that time, I don't want the player to move.
The best way to guarantee a loss is to quit - Morgan Freeman |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2014 12:13 PM |
| plr.Character.Humanoid.WalkSpeed = 0 |
|
|
| Report Abuse |
|
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 04 Jun 2014 12:13 PM |
game.Players.PlayerAdded:connect(function(p) p.Character.Torso.Anchored = true p.Humanoid.Walkspeed = 0 wait(whatever) p.Character.Torso.Anchored = false p.Humanoid.Walkspeed = 16 end) |
|
|
| Report Abuse |
|
|
skript92
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 1430 |
|
|
| 04 Jun 2014 12:15 PM |
oh waw, never thought of that. I feel stupid
The best way to guarantee a loss is to quit - Morgan Freeman |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2014 12:23 PM |
Try looking into the ControllService. http://wiki.roblox.com/index.php?title=RBX.lua.ControllerService_(Service)
For a really nice tutorial on revoking and returning control to a user see: http://wiki.roblox.com/index.php?title=Controlling_a_Player%27s_Character |
|
|
| Report Abuse |
|
|