Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local animations = game.ReplicatedStorage.Animations
- local animate = game.ReplicatedStorage.Animate
- animate.OnServerEvent:Connect(function(plr, element)
- local animation = animations:FindFirstChild(element.Name)
- if animation then
- local char = plr.Character
- local hum = char:FindFirstChild("Humanoid")
- if char and hum then
- local anim = hum:LoadAnimation(animation)
- anim:Play()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement