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

My chatted animation is not working, yet processing for some reason?

Asked by 4 years ago
Edited 4 years ago

this is it

wait(3)
print("Ok loaded")
local player = game.Players.LocalPlayer

game.Players.PlayerAdded:Connect(function(players)
                player.Chat:Connect(function(msg)
            if msg == "OOF" then 
        print("Said OOF")
    end
                            wait(3)
                                local anim1 = Instance.new("Animation")
                            anim1.AnimationId = ("rbxassetid://3739993441")
                local animtrack=player.Character.Humanoid:LoadAnimation(anim1)
        animtrack:Play()
        print("Ok")
    end)
end)

I fixed it, keeping it here for future people. ANSWER V

wait()
print("Ok loaded")
local player = game.Players.LocalPlayer

player.Chatted:Connect(function(msg)
            if msg == "OOF" then 
            print("Said OOF")

                            wait(3)
                                local anim1 = Instance.new("Animation")
                            anim1.AnimationId = ("rbxassetid://3739993441")
                        local animtrack = player.Character.Humanoid:LoadAnimation(anim1)
                    animtrack:Play()
            print("Ok")

    end
end)
0
I ended up fixing it puffymar 0 — 4y

1 answer

Log in to vote
0
Answered by
Tokyo7979 131
4 years ago

Have you tried changing the priority of the animation to, "Action"?

0
Yes I did that puffymar 0 — 4y
Ad

Answer this question