For my character customizer it plays an animation depending on the class you select, but the animations are overlapping. How to fix this?
Customize.Class:GetPropertyChangedSignal("Value"):Connect(function()
if Customizing.Value == true then
while wait() do
if player.Customize.Class.Value == "Warrior" then
local WarriorAnim = humanoid:LoadAnimation(script.Warrior)
wait(.1)
WarriorAnim:Play()
wait(WarriorAnim.Length)
WarriorAnim:Stop()
elseif player.Customize.Class.Value == "Mage" then
local MageAnim = humanoid:LoadAnimation(script.Mage)
wait(.1)
MageAnim:Play()
wait(MageAnim.Length)
MageAnim:Stop()
elseif player.Customize.Class.Value == "Archer" then
local ArcherAnim = humanoid:LoadAnimation(script.Archer)
wait(.1)
ArcherAnim:Play()
wait(ArcherAnim.Length)
ArcherAnim:Stop()
end
end
end
end)
As he said, certain animation priorities go in a certain order, and if you change the animation priority, your problem might be solved. Maybe you should try that.
What you could do is make a table with all the animations playing and when they select a new character it runs through all the animations in that table and disables them.