#Animation won't play and won't stop

7 messages · Page 1 of 1 (latest)

stark jasper
#

local Sit = script.Parent
local Animation = Sit:FindFirstChild("Sit1TempA")
local Temp = false

Sit.MouseButton1Click:Connect(function()
if Animation then
local Humanoid = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
if Humanoid then
local Animator = Humanoid:FindFirstChild("Animator")
if Animator then
local AnimationTrack = Animator:LoadAnimation(Animation)

            if Temp then
                AnimationTrack:Stop()
            else
                AnimationTrack:Play()
            end

            Temp = not Temp
        end
    end
end

end)

#

@pale beacon

stark jasper
pale beacon
#

theres no error

#

it just dosen't work,