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

Hit A Brick, Player Plays Animation And Freezes?

Anyone know how to do this?

You hit a brick with a touch event. It makes the player freeze and plays a animation moving them up or down

1 answer

chr = game.Players.LocalPlayer.Character

hum = chr.Humanoid

game.Workspace.Part.Touched:connect(function() -- hit the brick

 playAnimation = hum:LoadAnimation(game.Workspace.Animation) 

hum.WalkSpeed = 0  

wait(0.05)

playAnimation:Play() -- Plays the animation

1 comment

0

tell me if it doesnt works

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