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
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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
tell me if it doesnt works