What do you want to achieve?
looping on the first go.
What is the issue?
it wont loop the first time but it will the 2nd time.
What solutions have you tried so far?
To try playing the animation twice, nothing happened.
overlordremote.OnServerEvent:Connect(function(plr, character)
print("overlord")
local hrp = character:FindFirstChild("HumanoidRootPart")
local animator = character:FindFirstChild("Humanoid"):FindFirstChild("Animator")
local resistanim = animator:LoadAnimation(game.ReplicatedStorage.AbilityContent.Animations.ResistOverlord)
local resistidleanim = animator:LoadAnimation(game.ReplicatedStorage.AbilityContent.Animations.ResistIdleAnim)
resistidleanim.Looped = true
local newmusic = game.ReplicatedStorage.AbilityContent.Sounds.OverlordMusic:Clone()
newmusic.Parent = hrp
newmusic:Play()
resistanim:Play()
wait(0.6)
resistidleanim:Play()
end)
The resistidleanim is the one i want to loop.
I have no idea how to make it loop first try