Hello, so I am making a game that is a fangame of windows, and it is going pretty good. Except I am worried about people stealing my scripts. I have already implemented a system that would prevent injections of local scripts but I don’t know if it works (the script is a local script that deletes any new local scripts that have been added to the game)
local maxstrikes = 4
local strikes = 0
game.DescendantAdded:Connect(function(de)
if de:IsA("LocalScript") and not de:FindFirstChild("Official") then
de:Destroy()
strikes+=1
if strikes == maxstrikes then
--kick the player after they reach a certain amount of strikes
game.Players.LocalPlayer:Kick("Our anticheat has detected the presence of a new Local Script which could hint at an exploit attemp. DO NOT CHEAT.")
end
end
end)
This should work, however I don’t have a way to test it.
Now, the reason that I’m here is because I am making a way for people to program their own applications (if they know lua ofcourse) and I fear people may try to access my module scripts that run the entire system. The way I want to prevent access is to let the script that runs these programs first scan the program’s module scripts to check for any code that shouldnt be there before the program gets run. If it is clear then the program will run.
Any ideas?