How to check if a game is private or public from an asset ID with a localscript?
How to check if a game is private or public?
3 answers
if you cannot enter the game example "the permission levels prevents you from entering. the game is private
2 comments
Yeah I know. Now how do I check that with a script?
ust inset a textbutton and add a local script
If it is your game you want to see if it is private or not, go to the roblox create page, and hit the configure icon in the game you want to see if it is private and then hit configure game. After that, there will be an option with two checkboxes. One would be private and the other will be public. The black circle will show what is the status of the game (if it is public or private). Just click on the circle that you want the game to be.
1 comment
I am not asking how to do it manually. I need a script that can give me a true or false value when I put in a game ID.
If it is your game you want to see if it is private or not, go to the roblox create page, and hit the configure icon in the game you want to see if it is private and then hit configure game. After that, there will be an option with two checkboxes. One would be private and the other will be public. The black circle will show what is the status of the game (if it is public or private). Just click on the circle that you want the game to be.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You cannot affirm that through any Asset ID to my knowledge, though, you can determine if a Server is privately owned through game.PrivateServerOwnerId.