tryna make a seat in where u sit on it and it plays a certain sitting animation. like on the game vibe train. but the script aint working. take a look pls
local Seat = script.Parent
local Animation = script:WaitForChild("Animation")
Seat.Changed:connect(function() --You can get the individual property changed event, but this is simpler.
if Seat.Occupant ~= nil then
local Track = Seat.Occupant.Humanoid:LoadAnimation(Animation) --Load the animation
Track:Play() --Play the animation
Seat.Occupant.Humanoid.Jumped:wait() --Wait for player to leave the seat
Track:Stop() --Stop the animation
end
end)
pls help

2 comments
print something in your changed event to see if it is running
there's a way simpler way, give me a sec