Unable to assign property Occupant. Property is read only

I am trying to change the value of the occupant in a DriverSeat object and it returns this error:

Unable to assign property Occupant. Property is read only

If anyone can find a solution for this it would be greatly appreciated!

1 Like

Occupant property is read-only. Use Sit(humanoid) method instead.

1 Like

I am trying to set the Occupant value to nil so that the play gets off of the hoverboard

1 Like

In that case, set Humanoid.Sit property to false or pass nil as the first argument when the Seat:Sit() method is called.

3 Likes

Or you can destroy the SeatWeld that holds the player to the seat.

1 Like

you could simply get the occupant and set the “Sit” value to false or if you don’t want to do that for some reason, you could destroy the weld in the seat part

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.