Trying to let the player buy a guild so they could invite people but the purchase scripts wont work.
This is the Server Script:
This is the Client Script:
Any help is appreciated!
Trying to let the player buy a guild so they could invite people but the purchase scripts wont work.
This is the Server Script:
This is the Client Script:
Any help is appreciated!
Any extra information you can give us? Like is the product part of your game, and how are you triggering the Remote Event GuildBought
?
The product is apart of the game I haven’t connected the GuildBought Event yet though. The problem is that it wont print “guild bought” when i buy the product.
Does it print “player exist
”?
No it doesn’t. I tried different solutions but it still wouldn’t
Does it prompt the purchase? Did you successfully buy it in testing? (It doesn’t take your actual robux when buying in testing.)
Yes,It does prompt the purchase, as i said before its not the prompt purchase that’s being the trouble its the server script
Wait I fixed it, I don’t know what just happened but i placed the server script in the localscript and not ServerScriptService. Thanks for the help tho!
I think it’s because the purchasing is client-sided, and you put client-sided stuff in server-sided scripts. Think about it: Not everyone player in your game will purchase that particular developer product or game pass, so it would make sense to isolate the purchasing to the clients (i.e. the game from the player’s perspective) rather than the server (which hosts the clients in a single place, and contains content that is shared between them).