Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

DriveSeat is not a valid member of Model?

Asked by 3 years ago

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)
0
im not really good at this but im not sure if DriverSeat is the parent of Model or Model is the Parent of DriverSeat proROBLOXkiller5 112 — 3y
0
usually i get this error when something didnt load in and WaitForChild usually just solves the problem most of the time proROBLOXkiller5 112 — 3y

Answer this question