Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local speedPad = script.Parent
- local speedAmount = 30
- local defaultSpeed = 16
- local speedLength = math.huge
- speedPad.Touched:Connect(function(partTouched)
- local char = partTouched.Parent
- if char:FindFirstChild("Humanoid") then
- char.Humanoid.WalkSpeed = speedAmount
- if speedLength < math.huge then
- wait(speedLength)
- char.Humanoid.WalkSpeed = defaultSpeed
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement