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

I'm not sure how to make a brick, that once you touch it, the players speed is 1?

script.Parent.Touched:Connect(function()
	game.Players.Humanoid.WalkSpeed = 1
end)

^^^ An example of what I've been doing ^^^

1 answer

✓ Accepted answer

first parameter of the touched event gives the touching part you can use that to get character

script.Parent.Touched:Connect(function(touchingPart)
hum = touchingPart.Parent:FindFirstChild("Humanoid") 
if hum then
hum.WalkSpeed = 1
end
end)

1 comment

0

It didn't work but I did change your script a little and now it functions, thank you!

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