Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a speed block?

How would you make a block that once u touch increases your speed?

3 answers

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)

2 comments

0

Doesn't work how would I ensure it worked?

0

my bad instead of "Parent", I put "Paent", I updated the script, it should work now :D

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.