Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local animations = game.ReplicatedStorage.Animations:GetChildren()
- local buttons = script.Parent:GetChildren()
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local hum = char:FindFirstChild("Humanoid")
- for _,animation in pairs(animations) do
- if hum then
- hum:LoadAnimation(animation)
- end
- end
- for _,element in pairs(buttons) do
- if element:isA("TextButton") then
- element.Activated:Connect(function()
- game.ReplicatedStorage.Animate:FireServer(element)
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement