Skip to content

Instantly share code, notes, and snippets.

View ToolifyStudios's full-sized avatar

ToolifyStudios

View GitHub Profile
@ToolifyStudios
ToolifyStudios / Bans.lua
Last active April 27, 2025 04:47
Roblox Ban Script
local bantable = {
[0] = "Reason"; -- Replace 0 with the banned person(s) username
[1] = "Reason";
}
game.Players.PlayerAdded:Connect(function(plr)
if bantable[plr.UserId] then
plr:Kick("You have been banned from this game. Reason: "..bantable[plr.UserId])
end
end)