generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

gahh tell me how much i failed :L

Previous Thread :: Next Thread 
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
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 is not online. 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
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
12 Sep 2013 05:37 PM
:LL
Report Abuse
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
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 is not online. 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
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
12 Sep 2013 05:44 PM
idk
im horrible with admin commands
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image