This is my first ever script. I have tested it and it works. To use, create a pad and name it Speedboost. Then, insert a script into that part and in the script, type/copy the following:
local speedBoost = script.Parent
local function steppedOn(part)
local parent = part.Parent
if game.Players:GetPlayerFromCharacter (parent) then
parent.Humanoid.WalkSpeed = 150
wait (10)
Parent.Humanoid.WalkSpeed = 16
end
end
speedBoost.Touched:connect(steppedOn)
-- It is tested and works fully for me. |