Help with Jetski!

Hello, good morning! So I was creating a Jetski spawn, but with a gamepass system! I won’t place some walls that require you to buy the gamepass, because if someone leaves the game someone else could take the Jetski. I want it to do this:

When I get on the Jetski, the script should execute and check if I own the gamepass, if I don’t the jetski shouldn’t move.

You could use MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassID)

Just define the gamePassID, player and MarketplaceService.

1 Like

Yes, but using that, even if you don’t own the gamepass, the script will let you drive the Jetski.

Are you sure you used it in the correct way?

Are you using it like this?

if game:GetService("MarketPlaceService"):UserOwnsGamePassAsync(plr.UserId,GAMEPASSID) then
print("user can drive jetski")

You could use this, but I don’t really know how to help ya with the Jetski moving or not moving part:

GamepassId = 0000; -- change to whatever Id

local Player = game:GetService("Players").LocalPlayer
local MarketPlaceService = game:GetService("MarketPlaceService")

   if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, GamepassId ) then
       print("User owns Gamepass { "..GamepassId.." } and can use the Jetski!")