Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Get GameId from script in the game?

Asked by 4 years ago

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

Log in to vote
2
Answered by
WishXVI 94
4 years ago

game.placeId

0
reeee u beat me... but i put a script xD iiDev_Hunt3r 64 — 4y
0
Thanks! Amanda314159 291 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
if game.PlaceId ~= 12345678 then
    script.Disabled = true
end

This way is a little better xD

0
Oh, thank you! :D Amanda314159 291 — 4y
0
np iiDev_Hunt3r 64 — 4y
0
please set this as the answer iiDev_Hunt3r 64 — 4y
0
yeah lol i was typing faster lol WishXVI 94 — 4y

Answer this question