What do you want to achieve?
I want to play the animation while player on the seat.
What is the issue? Plays another animation does from unknown.
What solutions have you tried so far? Yees, but no soltuions.
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)
Its Likely due to Animation Priorities, one of the base Animations may be Overlapping with your Animation, try changing their Priority or Replacing it via the Provided Animator Script by Roblox.
Also, Instance:Remove() doesnt Destroy the Instance, it just sets the Objects Parent to nil which can be replaced by Instance.Parent = nil
No I didn’t mean that, I mean that as the seat makes you play an animation if you also play an animation it puts you in weird poses, try setting the animation priority to Action4
No, I’m not sure but I think there’s some kind of setting that allows you to offset the player? Or else you will have to move the player directly, there’s 2 ways I woudl so this:
Make the animation put the player in a higher position or
Make a script taht makes the weld/player go to a higher position