Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my animation not playing when button is pressed?

Asked by 3 years ago

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 answer

Log in to vote
-1
Answered by 3 years ago

Just Watch This :D https://www.youtube.com/watch?v=p0Me0OmT1hQ

0
Basically Solves It ;) TheStevenYt7758 28 — 3y
Ad

Answer this question