I have this seat animation script that makes you play an animation when you sit in it and it loops but when i test it in studio it works perfectly fine, but when i test it in the real game it doesn't respond. I have no idea what to do in this situation some help would be appreciated:).
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)

4 comments
show a video
cuz idk what its supposed to look like, also a sample of a kind works too
could you please show a vedeo
i dont know how to post a video