|
| 12 Sep 2013 05:32 PM |
for _, player in ipairs(game.Players:GetChildren()) do return player end
game.Players.LocalPlayer.Chatted:connect(function(chat) if chat:sub(1,5)=='kick;' then kick=findPlayer(message:sub(6)) kick.Parent=nil end end) |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 12 Sep 2013 05:34 PM |
for loops aren't functions and can't return findPlayer doesn't exist |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Sep 2013 05:40 PM |
function findPlayer(name) for _, player in ipairs(game.Players:GetChildren()) do if player.Name:lower()==name:lower() then return player end end end
game.Players.LocalPlayer.Chatted:connect(function(chat) if chat:sub(1,5)=='kick;' then kick=findPlayer(message:sub(6)) kick.Parent=nil end end) game.Players.PlayerAdded:connect(function(player) end) |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 12 Sep 2013 05:42 PM |
| why do you have a connection with an empty function |
|
|
| Report Abuse |
|
|
|
| 12 Sep 2013 05:44 PM |
idk im horrible with admin commands
|
|
|
| Report Abuse |
|
|