Like to where when somebody doesnt have a gamepass and it ends up kicking them out. Or killing them. I need a fast answer.
COMMUNITY QUESTION
How do I make a gamepass car?
2 answers
This isn't an ask and get service... However, this should do the trick.
local PassID = --Insert Gamepass ID here
local seat = script.Parent
function auth(plr)
return game:GetService("GamePassService"):PlayerHasPass(plr, PassID)
end
function OnTouched(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
if auth(game.Players:GetPlayerFromCharacter(hit.Parent)) then
seat.Transparency = 0
else hit.Parent.Health = 0 -- Feel free to change it to make the player jump instead.
end end end
seat.Touched:connect(OnTouched)
Basically, this is JUST like a Gamepass VIP door.
If the user has the gamepass, they can drive. Otherwise they will be killed. This script goes into the drivers seat.
Feel free to change the kill line to a jump if you don't want then killed.
It does not work.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I know this is old, but will this still work if “GamePassService” is changed to the “MarketPlaceService”?