game.ReplicatedStorage.Events.ClosedCleanUp.OnServerEvent:Connect(function(plr)
local rank = plr:GetRankInGroup(8342423)
print("Recieved")
if rank > 4 then
print("Higher than 4")
if game.ReplicatedStorage.Values.ControlPanelOpen == true then
game.ReplicatedStorage.Values.ControlPanelOpen = false
print("False")
else
warn("Exploiter!")
local banPlr = game.Players:WaitForChild(plr)
local name = plr.Name
local Id = plr.UserId
local link = "https://www.roblox.com/users/"..Id.."/profile"
local e = MessageEmbed.new("webhook")
e:SetTitle("Exploiter detected")
e:SetDescription("USERNAME: **"..name.."**\nID: **"..Id.."**\nLINK: "..link)
e:SetColor(16711680)
e:PostAsync()
bansDataStore:SetAsync("banstatus_"..banPlr.UserId)
end
end
end)
Why am I getting this response?
Thanks in advanced!
It seems to be pretty useless anti exploit? An exploiter can’t change a value if I’m understanding your situation well enough. They can change it, but whatever the value does, it would only do it on the client.
I’m not sure why you’re even banning based on a person’s rank in a group in the first place. The simplest solution would simply be to remove it, since it only bans people with a rank in the group with a priority higher than 4, which is setup to ban you and other high ranked people.
Although to answer your question, other people have pointed out that ControlPanelOpen seems to be a BoolValue instance, in which case you should be indexing its Value property to check for equality with true.
It should be impossible to fire ClosedCleanUp without being a rank higher than 4. In conclusion, if it is fired by a person under the rank 4, they must be an exploiter.
if rank >= 4 then -- I'm assuming you have to be rank 4 or higher
doStuff()
else
ban()
end
In your code snippet, a person is flagged as an exploiter if their rank is higher than 4 and doesn’t have their control panel open. I don’t know if you fixed this yet, but if you haven’t then you probably should.