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.
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.
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.