14:34:18.204 Requiring asset 512742721.
Callstack:
cloud_144938633.archimedesTwo.initiatePlugin.MainModule, line 29
cloud_144938633.archimedesTwo.initiatePlugin.MainModule, line 28
- Server
14:34:18.305 Requiring asset 518094091.
Callstack:
cloud_144938633.archimedesTwo.initiatePlugin.MainModule, line 30
cloud_144938633.archimedesTwo.initiatePlugin.MainModule, line 28
- Server
14:34:18.328 ▶ {...} - Server - BanHammer:15
14:34:18.328 You have been banned indefinitely for the following reason: Hate Speech *THIS BAN IS NOT APPEABLE* ▶ {...} - Server - BanHammer:17
14:34:18.328 You have been banned indefinitely for the following reason: EXPLOTING *THIS BAN IS NOT APPEABLE* ▶ {...} - Server - BanHammer:17
Last bit of debugging before I’m able to get on my laptop and help more:
local BlacklistedPlayers = {
["You have been banned indefinitely for the following reason: EXPLOTING *THIS BAN IS NOT APPEABLE*"] = {
1, --Builderman
2 --Nullified0
},
["You have been banned indefinitely for the following reason: Hate Speech *THIS BAN IS NOT APPEABLE*"] = {
3, --Random
85387607 --Random
}
}
game.Players.PlayerAdded:Connect(function(player)
print(BlacklistedPlayers)
for reason, userIds in pairs(BlacklistedPlayers) do
print("Reason: "..reason, "IDs: "..userIds)
if userIds[player.UserId] then
wait(1.5)
player:Kick(reason)
end
end
end)
Still isn’t working but thanks for so far, I can wait anytime.
- Server
14:38:22.902 ▶ {...} - Server - BanHammer:15
14:38:22.902 ServerScriptService.BanHammer:17: attempt to concatenate string with table - Server - BanHammer:17
14:38:22.902 Stack Begin - Studio
14:38:22.902 Script 'ServerScriptService.BanHammer', Line 17 - Studio - BanHammer:17
14:38:22.902 Stack End - Studio
Alrighty, I have successfully made a working version of this:
local BlacklistedPlayers = {
["You have been banned indefinitely for the following reason: EXPLOTING *THIS BAN IS NOT APPEABLE*"] = {
1, --Builderman
2 --Nullified0
},
["You have been banned indefinitely for the following reason: Hate Speech *THIS BAN IS NOT APPEABLE*"] = {
3, --Random
85387607 --Random
}
}
game.Players.PlayerAdded:Connect(function(player)
print(BlacklistedPlayers)
for reason, userIds in pairs(BlacklistedPlayers) do
if userIds[table.find(userIds, player.UserId)] then
wait(1.5)
player:Kick(reason)
end
end
end)
Definitely came a long way from the original solution.
Make sure to mark the correct one as solution so there is no confusion.
On a side note: make sure you use you userId to test this