I'm trying to make an animation button, where once you press the button an animation will play, but i dont know why my script isn't working. This is what I have so far:
local emoteButton = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local animation = humanoid:LoadAnimation(script.Animation)
emoteButton.MouseButton1Click:Connect(function()
animation:Play()
end)

1 comment
Basically Solves It ;)