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??
It looks this is a local script as you are using hum:LoadAnimation (only works in localscript) and Tool.Equipped only works on a server script, so copy the code for the event (tool.equipped) into a server script and put the script into the tool.
If this is a server script then do the opposite of what I just said.
I hope this helps!