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

How do I make a block change your walk speed when you click it?

I am not in anyway a good scripter. I just copy and paste and hope to beyond that it works. For the past hour, I've been searching for hours and hours if there was a script to help me with this, but I couldn't find one. I was just wondering if any of you could help me with this. Thanks.

1 comment

0

hours and hours is an exaggeration*

1 answer

-- insert a click detector into your part
workspace.block.ClickDetector.MouseClick:Connect(function(player) -- replace block with the part
	local char = player.Character or player.CharacterAdded:Wait()
	local hum = char:WaitForChild("Humanoid")
	hum.WalkSpeed = -- put your desired walkspeed here
end)

1 comment

0

My bad i wrote the script wrong hold on

This discussion is preserved as it was. New answers, comments, and votes are closed.