Answered by
4 years ago Edited 4 years ago
Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.
You can use UserOwnsGamePassAsync. I didn't try this:
02 | if workspace.Seat.Occupant ~ = nil then |
03 | local Player = game:GetService( "Players" ):FindFirstChild(workspace.Seat.Occupant.Parent.Name) |
05 | if game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(Player.UserId, 1234 ) then |
08 | workspace.Seat.Occupant.Jump = true |
15 | workspace.Seat.Changed:Connect(Change) |
Sorry mod, added comments