Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RemoteEvent = nil -- Locate your remote event.
- function playAnim(obj_playerModel,numValue_AnimIdNoURL)
- local anim = Instance.new("Animation")
- anim.AnimationID = numValue_AnimIdNoURL
- local loadAnim = obj_playerModel.Humanoid:LoadAnimation(anim)
- loadAnim:Play()
- end
- function stopAnim(obj_playerModel,numValue_anyAnimIdNoURL)
- local anim = Instance.new("Animation")
- anim.AnimationID = numValue_anyAnimIdNoURL
- local loadAnim = obj_playerModel.Humanoid:LoadAnimation(anim)
- loadAnim:Stop()
- end
- -- function cant execute
- -- write like this and replace the stuff in the parenthesis without removing the comma
- RemoteEvent.OnServerEvent:Connect(function(name,ID)
- playAnim(game.Players[name].Character.Humanoid,ID)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement