RB-004
Roblox speed boost pad script
A pad that makes a player run faster for a few seconds.
- Script type
- Script
- Where it goes
- Inside the Part
- Category
- Hazards and pads
For your own game in Roblox Studio. Not for use in other people's games.
The code
-- Speed boost pad: faster walking for a short time.
local BOOST_SPEED = 40 -- the normal WalkSpeed is 16
local DURATION = 5 -- seconds the boost lasts
local part = script.Parent
local boosted = {} -- humanoids that already have a boost running
part.Touched:Connect(function(hit)
local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")
if not humanoid or humanoid.Health <= 0 then
return
end
if boosted[humanoid] then
return
end
boosted[humanoid] = true
local originalSpeed = humanoid.WalkSpeed
humanoid.WalkSpeed = BOOST_SPEED
task.wait(DURATION)
if humanoid.Parent then
humanoid.WalkSpeed = originalSpeed
end
boosted[humanoid] = nil
end)How to set it up
- Insert a Part and set its Anchored property to true.
- Add a Script inside the Part.
- Paste the code.
- Play and step on the pad. You should run faster for 5 seconds.
Change it
- Raise BOOST_SPEED for a wilder boost. Over 100 is hard to control.
- The script remembers the old speed and puts it back when the time is up.
- If you also use a sprint script, the two can fight. Pick one place that sets WalkSpeed.
More in Hazards and pads
More Roblox tools
- Shirt and pants templatesFree Roblox clothing templates to download: hoodies, jerseys, jeans, joggers and more.
- Robux tax calculatorWork out what you receive after the marketplace fee, or what to charge.
- Robux to USD calculatorConvert earned Robux to dollars at a DevEx rate you can edit.
- Shirt and pants template makerColour each panel of the 585×559 clothing template and download it.
- Username generatorGenerate usernames that fit the 3–20 character rule.