local plr= game:GetService("Players").LocalPlayer
local char = ((character and character.Parent ~= nil and character) or plr.CharacterAdded:wait())
if not char or not char.Parent then
character = plr.CharacterAdded:Wait()
end
local hum= char:WaitForChild("Humanoid")
local tool= script.Parent
local Left=nil
local Right=nil
Left = hum:LoadAnimation(script:WaitForChild("Left"))
Right = hum:LoadAnimation(script:WaitForChild("Right"))
tool.Equipped:connect(function()
print"equipped yes"
hum.Seated:connect(function(isSeated,seat)
if isSeated then
if seat:FindFirstChild("Left") then
print"oop"
Left:Play()
elseif seat:FindFirstChild("Right") then
print"oop"
Right:Play()
end
else
Left:Stop()
Right:Stop()
end
end)
end)
I'm trying to make it so once you equip the tool then sit on a seat that has a object "Left", a left animation plays. But nothing seems to be working, any advices??

1 comment
Are there any errors with the script? If not, then put a print statement in the beginning, and after your variables are declared to see what actually is stopping your script from running.