When I run the script, I get an error where it says that: Drive Seat is not a valid member of Model
##Script:
wait(0.1)
local m = script.Parent.Parent.Parent.SS.Motor
local carSeat = script.Parent.Parent.Parent.Parent.Parent.Parent.DriveSeat --error
script.Parent.MouseClick:connect(function(p)
if m.DesiredAngle == 0 then
m.DesiredAngle = -1
script.Parent.Parent.DoorOpen:Play()
carSeat.Doors.RL.Value = true
elseif m.DesiredAngle == -1 then
m.DesiredAngle = 0
while m.CurrentAngle < 0 do wait() end
script.Parent.Parent.DoorClose:Play()
carSeat.Doors.RL.Value = false
end
end)

2 comments
im not really good at this but im not sure if DriverSeat is the parent of Model or Model is the Parent of DriverSeat
usually i get this error when something didnt load in and WaitForChild usually just solves the problem most of the time