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
 

Re: Can a scripting "Legend" help me?

Previous Thread :: Next Thread 
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
27 Sep 2011 11:07 PM
Here is my script:

while true do
if game.Players.NumPlayers < 1 then --Checks if there are 2 players
wait(0.1)
else
wait(5)
kiddies = game.Players:GetChildren()
for i = 1,#kiddies do
kiddies[i].TeamColor = Bright green --Changes everyones team then kills them
kiddies[i].Character.Humanoid.Health = 0
wait(1)
p=game.Players:GetChildren()
for i = 1,#p do
Instance.new("BoolValue",p[i]).Name = "IsTroll" --The Troll is a team.. dont see how this would work.. i had help from someone else..
wait(0.1)
end
end
end
end


This script is very confusing, and has been frustrating me over the last few days with all its errors and stuff.. this came from the output:
Workspace.Script:9: '=' expected near 'kiddies'

I have NO clue what this means..
Report Abuse
Jagger19 is not online. Jagger19
Joined: 14 Jun 2008
Total Posts: 1877
27 Sep 2011 11:10 PM
Though I'm not the best at scripting, why are there 2 ".." after the last else?
Report Abuse
LongLostMemories is not online. LongLostMemories
Joined: 04 Sep 2010
Total Posts: 60
27 Sep 2011 11:14 PM
It has "--", Jagger.
Report Abuse
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
27 Sep 2011 11:28 PM
Bump
Report Abuse
kingmod123 is not online. kingmod123
Joined: 16 May 2009
Total Posts: 699
27 Sep 2011 11:36 PM
kiddies[i].TeamColor = Bright green --Changes everyones team then kills them

kiddies[i].TeamColor = Bright green -- Should be:

kiddies[i].TeamColor = BrickColor.new("Bright green")
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