I want to make it so that there is a unique sitting animation for every seat but I can’t find any.
I have tried Xiousa’s script here:
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)
local sitAnim = 2225298712
local seat = script.Parent --Link this to the seat
local playingAnim
local newAnim = Instance.new('Animation')
newAnim.AnimationId = 'rbxassetid://'..sitAnim
seat.Changed:Connect(function(property)
if property == 'Occupant' then
local occupant = seat.Occupant
if not occupant then if playingAnim then playingAnim:Stop() return end end
playingAnim = occupant:LoadAnimation(newAnim)
playingAnim:Play()
end
end)
--solution