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)
You should try to change the "if player" to "if player ~= nil. And also change the pass id to an real one, that might be the problem. Try it out and tell me if it works