I am trying to add a admin system, and to avoid hackers finding the RemoteFunctions and firing them I want to delete the folder containing them if they are not a admin.
When I try to delete it, it gives me a huge amount of warnings
I looked for other things but this is a niche issue.
if game:GetService("RunService"):IsClient() and game.Players.LocalPlayer:GetRankInGroup(5431076) <= 200 then
script.Parent:Destroy()
end
btw rank 200 and up is a admin
attempted fixes:
I tried waiting 5 seconds before deleting but it did nothing after 5 seconds
Maybe they should, but you should remember to never trust the client in the first place. If you think exploits are bad, try custom Roblox clients.
You don’t know what kind of software someone is running. Don’t trust them.
Even if you don’t believe it’ll happen to you, remember to write your code in a safe way that makes it hard for exploiters to find a bug and deleting remotes might confuse an exploiter for… what, 5 minutes? You may as well make sure those remotes are secured from the server side too!