Script:
game.Players.PlayerAdded:connect(function(Plr) Plr.Chatted:connect(function(msg) if msg == "/e lay" then -- You could replace the MSG with anything if you want A = Instance.new("Animation", Plr.Character) A.AnimationId = "http://www.roblox.com/Asset?ID=2674544973" -- Here replace the 00s with your Animation ID animTrack = Plr.Character.Humanoid:LoadAnimation(A) animTrack:Play() end end) end)
========================================================================================================================================================
Video of what the animation looks like: https://gyazo.com/d7f6d8ea7a7ba47d87c5c7599b48b153
You need to make it so the animation can stop.
To check if the player moved, you can use the Humanoid.Running api, view here: https://developer.roblox.com/api-reference/event/Humanoid/Running
Plr.Character.Humanoid.Running:Connect(function(speed) if speed > 0 then animTrack:Stop() end end)
Once you do that ^, you should be standing up and you should be able to walk normally again.