How To Make Rapid Speed up Buttons: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Kingangel1 |
>Outofspace Undo revision 28543 by Kingangel1 (Talk) -- No. |
||
Line 25: | Line 25: | ||
Now test the script in Tools / Test / Play Solo mode. When your character walks over the brick, it should suddenly speed up. | Now test the script in Tools / Test / Play Solo mode. When your character walks over the brick, it should suddenly speed up. | ||
Revision as of 09:49, 29 December 2008
Introduction
WalkSpeed is what it sounds like, the speed at which your character walks. Go into solo mode in Roblox Studio and select yourself. If you look at your Humanoid, you will notice in the Properties panel a new value entitled "WalkSpeed" set to a default value of 16. The higher this value, the faster. Negative Values cause your controls to reverse.
Steps
- Insert a brick of any color and shape.
- Insert / Object / Script into that brick.
- Insert the following script into that brick:
Script
function onTouched(part) if part.Parent ~= nil then local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.WalkSpeed = 80 -- go five times faster than default speed. end end end script.Parent.Touched:connect(onTouched)
Now test the script in Tools / Test / Play Solo mode. When your character walks over the brick, it should suddenly speed up.