How would you make a block that once u touch increases your speed?
✓ ANSWER ACCEPTED
How to make a speed block?
3 answers
✓ Accepted answer
I'm not going to give you the answers straight out, but use the Touched event and Walkspeed in Humanoid.
Or you can just use this http://wiki.roblox.com/index.php?title=API:Class/Humanoid/WalkSpeed
If you can't figure that out, I suggest reading
Place this inside the speed block
local function touched(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid ~= nil then
humanoid.WalkSpeed = 50 --Change 50 to how fast you want the player to go
print("Worked!")
end
end
script.Parent.Touched:connect(touched)
So, first off, place down a part, put a script in that part, and put this script in.
p = script.Parent
function powerup()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 1337
end
p.Touched:connect(powerup)
1 comment
0
This isn't working also. Any advice?
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Doesn't work how would I ensure it worked?
my bad instead of "Parent", I put "Paent", I updated the script, it should work now :D