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: Is my script correct?

Previous Thread :: Next Thread 
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 10:16 AM
if Humanoid.Team("Land Fighters") then
script.Parent:FindFirstChild("StarterPack")
wait(1)
game.StarterPack:FindFirstChild("Plane")
game.StarterPack:FindFirstChild("Boat")
wait(1)
game.StarterPack.Plane = nil
game.StarterPack.Boat = nil
end


if Humanoid.Team("Air Fighters") then
script.Parent:FindFirstChild("StarterPack")
wait(1)
game.StarterPack:FindFirstChild("Motorcycle2")
game.StarterPack:FindFirstChild("Boat")
wait(1)
game.StarterPack.Motorcycle2 = nil
game.StarterPack.Boat = nil
end


if Humanoid.Team("Water Fighters") then
script.Parent:FindFirstChild("StarterPack")
wait(1)
game.StarterPack:FindFirstChild("Motorcycle2")
game.StarterPack:FindFirstChild("Plane")
wait(1)
game.StarterPack.Motorcycle2 = nil
game.StarterPack.Plane = nil
end
Report Abuse
mathgeek008 is not online. mathgeek008
Joined: 26 Jun 2009
Total Posts: 88
17 Jul 2014 10:20 AM
does it not work?
where is the script?
Report Abuse
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 10:21 AM
i didn't test it out
i'm asking if my script is correct, I want teams to have different gear.
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
17 Jul 2014 10:23 AM
Umm. Humanoid.Team?
Report Abuse
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 10:25 AM
Listen up, I am a beginner scripter and I need your help.
Report Abuse
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 10:26 AM
Okay. Changed Humanoid to Players.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
17 Jul 2014 10:27 AM
You could use something such as,
DefinedTeam = game.Teams.TeamNameHere
if DefinedPlayer.TeamColor == DefinedTeam.TeamColor then
--More Code Here
end

--TeamColor is a property of the "Player" table.
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
17 Jul 2014 10:34 AM
*--Property of the Player's within the Player's table rather.
Report Abuse
dragonkeeper467 is not online. dragonkeeper467
Joined: 24 Jan 2011
Total Posts: 472
17 Jul 2014 10:38 AM
You can also get do Players.Player1(or a LocalPlayer).TeamColor

Team is not a valid property of Humanoid though :/
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 10:57 AM
Don't ask if scripts are correct, test them yourself and then if it is not working, post it here and ask whats wrong with it.

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 11:03 AM
I do what I want
Report Abuse
DrFeynman is not online. DrFeynman
Joined: 07 Aug 2013
Total Posts: 178
17 Jul 2014 11:13 AM
GTFO you six year old prick, what your doing is a waste of your time as well as ours. Nobody know if your script is correct, that's not getting help, that's a low key bragging, what you do is test, give us errors and feedback, and we help you from there. Not only that but you can't just say "I do what I want, do you realize how stupid and contradictory that is? I mean really your asking for help and as soon as somebody even tries to help you; you throw back a "I do what I want". That is the equivalent to going to a grocery store to sell produce and getting defensive for telling you can't do that, c'mon man think before you act...
Report Abuse
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 11:16 AM
>51 posts
Report Abuse
pideras is not online. pideras
Joined: 09 Jun 2014
Total Posts: 315
17 Jul 2014 11:18 AM
"six year old"

everyone was 6 ._.
Report Abuse
arw14 is not online. arw14
Joined: 22 May 2008
Total Posts: 3002
17 Jul 2014 11:19 AM
get rekt m8
Report Abuse
DrFeynman is not online. DrFeynman
Joined: 07 Aug 2013
Total Posts: 178
17 Jul 2014 11:21 AM
Not only that,ute that script is an abomination, you could easily recreate the same effect as that with a function, a few parameters, and a player added call, 1/3 the lines and way more efficient.
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