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: Walkspeed script?

Previous Thread :: Next Thread 
weregirl29 is not online. weregirl29
Joined: 05 Nov 2011
Total Posts: 906
12 Jan 2013 07:20 PM
On the touch of a morph button, your walkspeed lowers, any help with this?
(I'm a horrid scripter)
Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
12 Jan 2013 07:25 PM
function onTouch(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid then
humanoid.WalkSpeed = "10" --Lowered Walkspeed
end
end
Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
12 Jan 2013 07:25 PM
Oops:
function onTouch(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid then
humanoid.WalkSpeed = "10" --Lowered Walkspeed
end
end
script.Parent.Touched:connect(onTouch)
Report Abuse
weregirl29 is not online. weregirl29
Joined: 05 Nov 2011
Total Posts: 906
12 Jan 2013 07:28 PM
Thank you ^^
Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
12 Jan 2013 07:30 PM
No problem.
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
12 Jan 2013 07:30 PM
"10" should be 10
Numbers/integers don't need quotes around them.
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