Hi there, I’m a developer at Solera Resort, a social group on Roblox.
We would usually have 100-150 players everyday until the exploiters would spam lag our servers with a script similar to this:
> game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents") > while true do > wait() > while true do > wait() > for i=1, 100 do > local msg = "/e "..string.rep(" It so laggy why it so laggy omggggggg",351056) > game:GetService("RunService").RenderStepped:Connect(function() > game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg,"All") > wait() > end) > end > end > end
After this had happened, our player counts are now at 90-110. I have tried fixing this multiple ways-
using tick(), checking if a message is over 500 characters, and even have patched other methods, such as weld spam and sound spam.
I am currently using this script to attempt to stop this
game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents").SayMessageRequest.OnServerEvent:Connect(function(player,message,all) if string.len(message) > 500 then player:Kick("Your chat message is over the limit.") print(player.Name.." kicked for chat spam exploit") end end)
I would appreciate any help on this. Thank you!