The Problem
So, let’s get to the point. I have a model. I want the players to be able to get a gamepass and get the model. I have absolutely no idea how to do this as I am a builder and artist, not a scripter. I want the players to buy and gamepass and automatically get the model.
I reckon that you need to use MarketplaceService and the following function to check if the player owns the gamepass. It will return true if the player owns it and thus using if statements with it should do the trick.
It is worth to check if the player owns the gamepass after each respawn, they might have purchased the gamepass on the page rather than in-game.
More cool API that may benefit the user experience.
What do you mean by get a model? Do you mean as in put it in a player’s inventory? You can’t do that. If it’s a game feature, then you can code this yes. On how to do this, you can search up code samples and items on the Developer Hub - not being a scripter isn’t a valid waiver to do some research on this topic and attempt to do it yourself. This code is not for asking for code either.
By model, I mean tool. So when the player buys the gamepass they receive the tool. How would I go about and find the code samples on the Developer Hub? Thanks for the feedback and info.