Will this anti copying script work?

local plr = game:GetService("Players").LocalPlayer

script.Parent = plr:WaitForChild("PlayerScripts")

if game.PlaceId ~= 7182805993 then

if plr.UserId == game.CreatorId then

else

for _, IMPORTANT in pairs (game:GetDescendants()) do

IMPORTANT:Destroy()

end

plr:Kick("You're playing a copy! Please play dark forest by bloodbonniekingnoob1 to play the original version.")

end

end

script:Clone()

script:Clone()

script:Clone()

script:Clone()

script:Clone()

script:Clone()

planning to obfuscate this. i don’t want the person who copied the game to know it deletes itself.

What do you mean “will this script work”? Haven’t you run it yet yourself?

i’ll have to use another account and then join on my main and it’s tedious.

You’re using Players.LocalPlayer, I’ll assume this is an LocalScript. Since local scripts are client-sided exploiters can just delete them. I’d recommend you check out how LocalScripts works. Also, you can just, change the plr.UserId == game.CreatorId into an ~= check for testing.

1 Like

i don’t get it. this is supposed to be disguised as a normal script.

does’t work and there are no errors.

Before your post got deleted i was gonna mention using webhooks and forcing the exploiter to use http service whilst hiding the script somewhere deep. (In workspace inside a model with lots of parts.)
I’ve seen similar games use this function too.

1 Like

I thought of using a webhook. Char

Cant the exploiter just manually delete the scripts in studio?

1 Like

Why would they if they wanted to steal my game? Also i can just name the script something convincing.

1 Like

i don’t see how naming your script as something convincing is useful, roblox studio has script search tools.

Summary