I made a anti decal spam but it’s do not work, help needed.
In serverscriptservice:
while wait(0.2) do
if workspace.Baseplate.Texture.Texture ~= "rbxassetid://6372755229" then
for i,v in pairs(game.Players:GetChildren()) do
v:Kick("This server got hacked, but our anti exploit is more powerful.")
end
end
end
Try looking for the source of the issue to remediate it permanently instead of finding a workaround. Do you have any suspicious scripts in your game?
As well, check for any scripts calling require that you do not recognize. A recent feature addition has made this easier by printing when a module is required.
Try to listen for .ChildAdded and see if the object that was added is a decal, and maybe make a Whitelist for certain Decal Ids.
Also, does this happen every time you join a server, even if none is in it?
If so, as @COUNTYL1MITS mentioned, it could be a malicious script in your game, highly-likely to be from a plugin or a free model.
local baseplate = (workspace:WaitForChild("Baseplate"));
local whitelistedDecals = { };
function Shutdown()
for _, player in next, game:GetService("Players"):GetChildren() do
player:Kick("This server got hacked, but our anti exploit is more powerful.")
end;
end;
baseplate.ChildAdded:Connect(function(instance)
if (instance:IsA("Decal")) then
if not table.find(whitelistedDecals, instance.Texture) then
Shutdown()
end;
end;
end)