So i trying to ban players who start their names from the word catbot_ if you can help we can take down many roblox scammer, hacke etc
Why not something like
game.Players.PlayerAdded:Connect(function(player)
if string.find(player.Name, "catbot_") then
wait(1)
player:Kick("You're banned from this game. Reason: Username is banned.")
end
end)
I donāt know why youād do this, all theyād have to do is choose another name and itād be fine.
Also, incorrect category.
Thanks @infiniteRaymond i will give credit for making the script btw did you but in serverscriptservice?
Yes, put the script directly into ServerScriptService
or Workspace
.
Also, you donāt need to credit me as thatās incredibly simple, lol.
I would use a players userid because people can just change their name and be able to join again,
The userid always changes if make a other account
He means change the name of his account with 1000 Robux
Roblox doesnāt give you the id of the device (ip ban) so userid is the best way or check the account age.
Oh but nevertheless this script can olny stop this type of bot and it kind of stupid to spend that amount of rubux and get banned
best way in my opinion to stop bots it player.chatted.
This isnāt suppose to be posted in Cool Creations ( nevermind, it was changed to scripting support)
How would we stop chatting? This is a very low program bot type beacsuse they all start with Catbot_
I also found ontheir script that can help by @varjoy this prevent links but if we could make a table that would be better or like @111122233333 we can get ip which if we could make a script to ban their ip
game.Players.PlayerAdded:Connect(function(plr)
local connections = {}
connections[plr.Nameā¦āchatā] = plr.Chatted:Connect(function(chat)
if (chat) then
if (chat:lower():find(āblox.pageā) or chat:lower():find(".page")) then
plr:Kick()
end
end
end)
connections[plr.Nameā¦āleftā] = game.Players.PlayerRemoving:Connect(function(p )
if (p == plr) then
for i,v in pairs(connections) do
v:Disconnect()
end
end
end)
end)