I was trying to change the idle and walking animations, but the server doesn’t match up with the client. Maybe it’s because the way I’m trying to change the animations is wrong?
local animate = lp.Character.Animate
for _, anim in folder:GetChildren() do
local animParent = animate:FindFirstChild(anim.Name)
if #animParent:GetChildren() == 1 then
local oldAnim = animParent:FindFirstChild(anim.Name:sub(1,1):upper()..anim.Name:sub(2).."Anim")
oldAnim.AnimationId = anim.AnimationId
else
local oldAnim = animParent:FindFirstChild("Animation1")
oldAnim.AnimationId = anim.AnimationId
end
end
for _, anim in lp.Character.Humanoid:GetPlayingAnimationTracks() do
anim:Stop()
end
lp.Character.Animate.Enabled = false
lp.Character.Animate.Enabled = true
This basically sets the animate.idle.Animation1 or whatever and then makes the animate script run again. Does anybody have a fix?