All the scripts are by me, what other security measures would there be?
Iām pretty sure the server would have to detect the origin of the kick command, so it would probably be possible to find the origin and ban them. Iām not an expert scripter so I donāt know how to do this.
Seems like your game has a backdoor. Have you used any free models for your game?
Ok but IM ALWAYS KICKED BEFORE I CAN READ ANYTHING
As I stated above, twice, the issue is because you are not properly checking the person who is running the command
here is a fixed script
local admins = {
588140429,
3152730034,
2215048957,
1312183411
}
local function kickPlayer(adminPlayer, playerToKick, reason)
if not table.find(admins,adminPlayer.UserId) then
return adminPlayer:Kick("no way jose")
end
game:GetService("Players"):FindFirstChild(playerToKick):Kick(reason)
end
game:GetService("ReplicatedStorage"):WaitForChild("KickPlayer").OnServerEvent:Connect(kickPlayer)
please read this.
I used a few, but I checked them for scripts before inserting them.
To be honest this seems like either a back door in your game or bad coding/protection on the backend. Please can you send me a link to the game.
I already have something like this. These were custom commands only intended to be used by me.
Not all servers have the hackers though.
the way you set it up was flawed then, try using the one I wrote and I can guarantee it will work
you probably forgot a return
You shouldnāt have to read anything, the game itself should be able to detect who sent the kick(because itās a server sided event(unless they ban) the info on who sent it should be processed) and that data should be able to be transferred into a string/variable that will ban whoever sent it in a script.
Alright, well have you tried to turn off HTTP requests or some of the other options in Settings that could allow you Experience to be vulnerable to certain exploits? That might be able to help, but if itās mandatory for your Experience to work then Iām not really to sure what much else to do. I also wouldnāt know if you could quickly go into the DevConsole (F9) while in a server and check from there if it would be able to show if anyone has triggered something that wasnāt supposed to have occurred but it could be worth a try.
Can you use Ctrl + Shift + F to search for getfenv
and require
?
Can you link your game, because there might be some very bad flaws that might lead to source code leak which happened to counter blox.
its not a backdoor man, someone posted the script people are using above and its just a kick remote
People can just use the source code instead of the loadstring.
OOH, That might seem easy to fix.
Do this
local Remote = remotepath
local DeveloperID = game.CreatorId
Remote.OnServerEvent:Connect(function(Player)
if Player.UserId == DeveloperID then
-- do whatever
else
-- ban, log them, whatever
end
end)
Iām back at my computer, and it turns out Iām a doofus. I forgot to put the return
after the script that checks if itās me. I changed and published it, and Iāll let you know if there are still hackers.
Nope itās still not working. I thought I banned a user, but he still is kicking people and advertising his game.