so, i'm trying to make this script that gives you money when you drive, however, it keeps giving the error "sitting is not a value of vehicleseat" and i have no clue how to fix it.
(first timing using this site, not rlly know how it works, so here is a screenshot of the script.)
https://developer.roblox.com/api-reference/property/Seat/Occupant
Occupant is a property of seats. It will have the Humanoid Object that is seated in it. With this, you can use the PlayersService to convert this Humanoid into a Player Object and change their leaderstats.
local humanoidSeated = Seat.Occupant local characterSeated = humanoidSeated.Parent --the humanoid's parent is the character local playerSeated = game.Players:GetPlayerFromCharacter(characterSeated) --change leaderstats accordingly