Anti-Theft method possibility?

Out of curiosity, is it possible to make a LocalScript where if a particular user publishes the game, nothing occurs, but if it isn’t, it deletes the Workspace and griefs the place up. |
This is an idea I thought to combat Stealing Places. I said LocalScript since ServerScripts cannot be Stolen.

If anyone has a method or suggestion, leave it below!

2 Likes

You can’t.

Please search before posting as well.
Search results for 'geometry theft' - Developer Forum | Roblox – or search script theft/stealing

I assume you’re talking about single-script theft, as opposed to a whole game. Yes, you can read game.PlaceId or game.CreatorId to detect if the game is legit, but if the single script is being stolen and implemented into an exploiter’s own game, they’ll probably have the technical knowledge to recognize any malicious code you might include in the script (and if not, they’ll quickly discover it).

Quick note: game.PlaceId and game.CreatorId don’t get set for a second or two once the server starts, so you’ll want to wait until the value is non-zero before running the comparison.

Edit: game.PlaceId and game.CreatorId are tagged as NotReplicated, so they probably can’t be used by a LocalScript.

Edit 2: Actually, they can be used by a LocalScript. It seems that the NotReplicated tag just means that changes won’t replicate to the client, but the initial place/creator ID can still be read. This post is just a whirlwind of emotions, isn’t it?

3 Likes

I just check the creatorid and if it doesn’t match my userid the game crashes. but I’d hide the line and put it on multiple lines so its hard to delete. but remove it if its in free models.