Check what you can offer your players without breaking laws! - ModuleScript

Hey there fellow developers!

I have made a simple small module that can speed up your process of checking what a player is allowed to do in your game.

The module contains functions for:

  • checking whether or not you can display discord related things to a user
  • checking whether or not you can display youtube related things to a user
  • checking whether or not you can display twitch related things to a user
  • checking whether or not you can display facebook related things to a user
  • checking whether a user is allowed to buy randomised items(e.g. eggs, chests, etc.)
  • checking whether a user is allowed to trade items they obtained using money
  • checking whether a user has to follow the chinese guidelines

You can find the full documentation here, and you can get the model here.

Thanks for reading, I hope this helps!

10 Likes

This is simply a wrapper for PolicyService:GetPolicyInfoForPlayerAsync(), except it returns limited information; therefore, it’s not faster to use this. Why should I use this instead of that?

9 Likes

Just want to clarify that you will still have to use ‘canBuyRandomisedItems’ and ‘canTradePaidItems’ if the currency used can be purchased with Robux. This includes currencies that can be both earned in-game and also purchased for Robux. Your documentation seems to make users think that it is only for Robux purchases.

Also as Ty_Scripts said, this is the same as PolicyService:GetPolicyInfoForPlayerAsync()

This can spare yourself a few lines everytime you need to check it because you don’t need to handle the table-formed response

1 Like

That doesn’t seem like an issue since it’s literally as simple as just indexing the key like table[‘key’]

1 Like

That’s what it seems to you, but not to - say ~60% of people who consider themself a developer or even a scripter on roblox

1 Like

You had one chance and yet you only put the readme in the GitHub and not the module source so people can contribute to this easily, but this doesn’t change the fact that this is just a wrapper for lazy developers who don’t know what a policy is

1 Like

This can be used even for simple games that generally don’t require scripting - which are usually made by people who’ve no clue how to work with functions, services, tables, and how to process their data. Therefore this can still be useful

1 Like

Just curious- why go through the trouble of creating documentation on GitHub for the project, but only upload the code on Roblox? Wouldn’t it have made far more sense to put the code in the repository as well?

1 Like