goofers
|
  |
| Joined: 02 Jul 2010 |
| Total Posts: 9 |
|
|
| 13 May 2014 03:31 PM |
| I don't want Kohl's or Person299's. I want to know the basics to CREATING one. |
|
|
| Report Abuse |
|
|
| 13 May 2014 03:35 PM |
admin = {} banned = {}
function isAdmin(name) for _, v in pairs(admin) do if v = name then return true end end end
function isBanned(nam) for _, v in pairs(banned do if v = nam then return true end end end
game.Players.PlayerAdded:connect(function(player) if isBanned(player.Name) then player:Kick() elseif isAdmin(player.Name) then player.Chatted:connect(function(msg,rec) if string.sub(msg,1,5) == "kill/" then local plr = game.Players:FindFirstChild(string.sub(msg,6) if plr then plr.Character.Humanoid.Health = 0 end elseif string.sub(msg,1,#) == "command" then local plr = game.Players:FindFirstChild(string.sub(msg,#) if plr then
end end end) end end) |
|
|
| Report Abuse |
|