The issue i’m having is that my animation script is not playing an animation. when I disable game.Players.LocalPlayer.Animate, the script begins working again, but is buggy. No, the animation is not anyone else’s in case u were wondering
Enum.AnimationPriority is set to Action, and when I print the animation priority it returns action, wo why does this happen, still?
Code:
seat = script.Parent
function added(child)
if (child.className=="Weld") then
local human = child.part1.Parent:FindFirstChild("Humanoid")
human.Parent.Animate.Disabled = true
wait()
human.Parent.Animate.Disabled = false
if human ~= nil then
anim = human:LoadAnimation(seat.sitanim)
anim.Priority = Enum.AnimationPriority.Action
anim:AdjustSpeed(0)
anim:Play()
script.Parent.IsSeated.Value = true
end
end
end
function removed(child)
if anim ~= nil then
script.Parent.IsSeated.Value = false
anim:Stop()
anim:Remove()
end
end
seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)
I just need to know if it’s because you’re trying to use someone else’s animation on your place or a friend is doing it on theirs and some other things
It’s my animation. The animation kind of plays enough to be noticeable, but then becomes overrided by the character animate script. I’ve already mentioned this