I’m in a sticky situation rn, I have been making gamepasses so that you can unlock the gamepass sword in my shop. However, the problem is that once somebody who has the sword gamepass joins the game, everyone’s shop has the gamepass items unlocked as well. I don’t really know what to do, so if somebody tells me what I have to do, that will be greatly appreciated!
If you need any pictures feel free to ask me.
We would like to see the code.
The shop code? Or the Gamepass code? Becuase for the gamepass sword what I have done is put the swords in a folder away from the actual in game items in the shop, making it not visible, then when sombody buys the gamepass sword, I code it so that the game will search through the gamepass folder for the bought item and put it in the in game items folder where it will show in the shop.
The code where it checks if he owns the game pass.
ok let me explain the code real quick
If the player has a gamepass, the sword (which is called Rainbow) will clone and go to the folder items, which makes the rainbow sword appear in the shop. The varaible RainbowHandle is just the handle so that players can see the sword model, clones it then puts it into the folder where people can see the model in the shop.
Have the screen gui with the sword button in workspace, and then when a player joins check if they own a gamepass. If they do, clone the screen gui then do script.Parent.Parent = player.PlayerGui
what do the script.Parent.Parent = player.playerGui do?
It makes the UI show for the player with the Gamepass, and not anyone else. I could show you if you need.
oh ok thank you!
(30 30303303030)
You’re welcome! Don’t forget to solution the post I made so people will know it’s been solved.
so in reality I don’t really know how to do what you said for me to do, because Iam a pretty new scripter and do not know what is and how to access playerGui, even though I said I understand, sorry about that
You should check out this forum I reply it from there!