Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get player on seat

local seat = script.Parent

function getPlayerOnSeat()
	local occupant = seat.occupant
    if occupant then
    	local player = game.Players:GetPlayerFromCharacter(occupant.Parent)
        return player
    end
end
 
PREVIOUS NEXT
Tagged: #player #seat
ADD COMMENT
Topic
Name
5+1 =