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

How do you make your walkspeed go slower for a while after hitting a brick?

Like, once you touch a brick

Only for about 10 - 15 seconds it slows down your walkspeed. ????

Also should it be a LocalScript or a Script

  • Where to place it?

3 comments

0

Please attempt before posting.

0

I did xdd + i'm the worst scripter in ROBLOX

0

Can you try posting the code you tried?

1 answer

✓ Accepted answer

Hmm. Put this script in the desired brick.

script.Parent.Touched:connect(function (hit)
	if not hit.Parent:findFirstChild("Humanoid") then return end -- Makes sure code is only run if it's a player.
	hit.Parent.Humanoid.WalkSpeed = 10 --Reduces walkspeed 
	wait(10)
    hit.Parent.Humanoid.WalkSpeed = 16 -- Puts it back up
end)

I'm Aurum, and you're welcome. Notes added, admin. Merry Christmas. EDITED: Fixed it up. You're welcome... Again.

4 comments

0

Didn't work

0

Okay, let me check what I did wrong.

0

Edited. It should work now.

0

TRhanks man, it worked.

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