generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Block Player from moving

Previous Thread :: Next Thread 
skript92 is not online. 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
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
04 Jun 2014 12:13 PM
plr.Character.Humanoid.WalkSpeed = 0
Report Abuse
youssef04 is not online. 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 is not online. 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
TecmagDiams is not online. TecmagDiams
Joined: 18 Sep 2008
Total Posts: 1882
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image