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: Team StartGear?

Previous Thread :: Next Thread 
djfreshboy212 is not online. djfreshboy212
Joined: 17 Jun 2010
Total Posts: 314
29 Jun 2013 04:28 PM
Basically i want one team to start with a, b, and c.
The other i was d, e, and f.

So i put a StarterGear Thing (Dont know what to call it) in one of the teams and when i switched to that team it didnt give me that gear. Anyone have any way of helping?
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
29 Jun 2013 04:31 PM
Put two models into lighting each with a different teamcolor name("Bright red" and "Bright blue") and put this script into workspace:

Game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
for _, Gear in pairs(Game.Lighting[Player.TeamColor]:GetChildren()) do
Gear.Parent = Player.Backpack
end
end)
end)

Something like that I suppose.
Report Abuse
djfreshboy212 is not online. djfreshboy212
Joined: 17 Jun 2010
Total Posts: 314
29 Jun 2013 04:38 PM
So put a sword into lighting named Red and that script will throw it into the startpack of Red team?
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
29 Jun 2013 04:42 PM
Okay so here is how it would work:

>Lighting
>>Bright red (This is a model that gives the tools inside of it to anyone who spawns with the TeamColor of "Bright red")
>>>Gun
>>Bright blue (This is a model that gives the tools inside of it to anyone who spawns with the TeamColor of "Bright blue")
>>>Sword
Report Abuse
djfreshboy212 is not online. djfreshboy212
Joined: 17 Jun 2010
Total Posts: 314
29 Jun 2013 04:43 PM
OOOOOOHHHHHH
Thanks
Report Abuse
djfreshboy212 is not online. djfreshboy212
Joined: 17 Jun 2010
Total Posts: 314
29 Jun 2013 04:44 PM
You said put a model in lighting right?
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
29 Jun 2013 04:45 PM
Yes.
Report Abuse
djfreshboy212 is not online. djfreshboy212
Joined: 17 Jun 2010
Total Posts: 314
29 Jun 2013 04:46 PM
You cant put models into lighting....
Report Abuse
djfreshboy212 is not online. djfreshboy212
Joined: 17 Jun 2010
Total Posts: 314
29 Jun 2013 04:46 PM
Just tools....
Report Abuse
canada1232111 is not online. canada1232111
Joined: 16 Jan 2013
Total Posts: 863
29 Jun 2013 04:47 PM
Yes you can..
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
29 Jun 2013 04:47 PM
local Team1 = Instance.new("Model", Game.Lighting)
Team1.Name = "Bright red"
local Team2 = Instance.new("Model", Game.Lighting)
Team2.Name = "Bright blue"
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