Hey! I'm using a script from the Toolbox that I found that is simple and easy. However, I am having trouble getting it to work. I made a few touches so that instead of killing the player it jumps them. Here is the script:
id = 12558121 --Gamepass ID
-- Made by Codes Otaku Channel (Youtube), Edited by ReeseTP
gps = game:GetService("GamePassService")
script.Parent.Changed:connect(function(prop)
if prop == "Occupant" and script.Parent.Occupant then
if gps:PlayerHasPass(game.Players:GetPlayerFromCharacter(script.Parent.Occupant.Parent), id) then
print("Valid")
else
script.Parent.Occupant:ChangeState(Enum.HumanoidStateType.Jumping)
end
end
end)
When I sit in the DriveSeat, it prompts me with this in the console:
"GamePassID '12558121' is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead."
Any help is greatly appreciated!
