I have this but I need it to kill the player and I cant seem to make it do so.
local GamePassService = game:GetService("GamePassService")
local passId = 0000000 -- change this to your game pass ID
local vehicleSeat = script.Parent
vehicleSeat:GetPropertyChangedSignal("Occupant"):Connect(function()
if vehicleSeat.Occupant then
local player =
game.Players:GetPlayerFromCharacter(vehicleSeat.Occupant.Parent)
if player and GamePassService:PlayerHasPass(player, passId) then
vehicleSeat.Disabled = false
else
vehicleSeat.Disabled = true
end
end
end)

3 comments
local player = could be a problem. You put a variable but didn't make it stand for anything.
It stands for the statement below, since it couldn't fit on it.
it detects if the player has the pass but it disables the seat permanently if the player doesnt have the pass. This is a problem I need assistance solving