Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Get GameId from script in the game?

Hi!

I'm working on a group game, and I would like to add some safety measures in case somebody copies it for themselves. Is there a way to get the game id? I'm thinking I will do something like this:

if *game id* ~= 12345678 then
	script.Disabled = true
end

Thank you guys! If anyone else knows a better way to try to protect a game, please let me know :)

2 answers

if game.PlaceId ~= 12345678 then
	script.Disabled = true
end

This way is a little better xD

4 comments

0

Oh, thank you! :D

0

np

0

please set this as the answer

0

yeah lol i was typing faster lol

This discussion is preserved as it was. New answers, comments, and votes are closed.