Hey, can someone help me making a sitting animation. I already searched everywhere like on youtube google ect…
It give me the exact same script and it’s not working, the animation load for a single second then nothing happen. I already enabled looping in my animator plugin but nothing changes.
I also tried different scripts but nothing same problem it load for a single second.
I’m not sure where the problem is coming from. it isn’t giving me any error or something like that.
here is the animation ID (that I made) : 8026864558
here is the script :
seat = script.Parent
function added(child)
if (child.className=="Weld") then
human = child.part1.Parent:FindFirstChild("Humanoid")
if human ~= nil then
anim = human:LoadAnimation(seat.sitanim)
anim:Play()
end
end
end
function removed(child2)
if anim ~= nil then
anim:Stop()
anim:Remove()
end
end
seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)
seat = script.Parent
function added(child)
if (child.className=="Weld") then
human = child.part1.Parent:FindFirstChild("Humanoid")
if human ~= nil then
anim = human:LoadAnimation(seat.sitanim)
anim.Priority = Enum.AnimationPriority.Action
anim:Play()
end
end
end
function removed(child2)
if anim ~= nil then
anim:Stop()
anim:Remove()
end
end
seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)