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 » Building Helpers
Home Search
 

Re: How do you make team only gear?

Previous Thread :: Next Thread 
Falconclaw is not online. Falconclaw
Joined: 19 Feb 2010
Total Posts: 30
01 Aug 2011 08:06 AM
I tried putting two starter packs in each team with the gear but it didnt work, I also tried putting them gear inside the teams, same result, how do you make a starter pack for each team?
Report Abuse
DarkAlex174 is not online. DarkAlex174
Joined: 16 Apr 2008
Total Posts: 2699
01 Aug 2011 09:39 AM
game.Players.PlayerAdded:connect(function(plyr)
if plyr.TeamColor == "team color here" then
g = game.Lighting.Weaponhere
g:Clone().Parent = plyr.Backpack
end
end)

Place a weapon inside lighting and replace the name where "weaponhere" is at. If you model them I doubt it's going to work.
Report Abuse
tummey2 is not online. tummey2
Joined: 04 Feb 2009
Total Posts: 1802
01 Aug 2011 11:08 AM
Above will work but this may be easier

function resp(add)
Teams = game.Teams:GetChildren()
p = game.Players:GetChildren()
for i=1,#p do
if add.Name == p[i].Name then
for I=1,#Teams do
if p[i].TeamColor == Teams[I].TeamColor then

W = Teams[I]:GetChildren()
for x=1,#W do
W[x]:Clone().Parent = game.Players[add.Name].Backpack
end
end
end
end
end
end
workspace.ChildAdded:connect(resp)

Place the tools in the team you want to have them.
Report Abuse
XREALXRussianX is not online. XREALXRussianX
Joined: 01 Feb 2010
Total Posts: 111
21 Aug 2011 07:02 PM
what do u mean by "Place the tools in the team you want to have them." and please respond fast i see ur online and im building in my game
Report Abuse
coolWobbuffet is not online. coolWobbuffet
Joined: 31 Mar 2011
Total Posts: 502
21 Aug 2011 07:20 PM
you could use givers!
Report Abuse
8Ovechkin is not online. 8Ovechkin
Joined: 16 Jan 2009
Total Posts: 1760
21 Aug 2011 07:29 PM
Errrrr Givers aren't that reliable mainly due to the fact that 1. they could get more than what is required and 2. If the spawn is actually reachable by the other team then they too could get the weapons
Report Abuse
tummey2 is not online. tummey2
Joined: 04 Feb 2009
Total Posts: 1802
21 Aug 2011 07:41 PM
Go into the Explorer.

Teams>TeamName>PasteToolHere

Report Abuse
XREALXRussianX is not online. XREALXRussianX
Joined: 01 Feb 2010
Total Posts: 111
21 Aug 2011 08:02 PM
paste like copy or can drag work instead?
Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
21 Aug 2011 08:03 PM
DarkAlex, you need the CharacterAdded event so they get it as they respawn

Use this:

local function respawned(character,newguy)
if newguy.TeamColor = BrickColor.new("White") then -- Edit for the TeamColor here
game.Lighting["TOOLNAME1"]:clone().Parent = newguy.Backpack
elseif newguy.TeamColor = BrickColor.new("Black") then -- Edit for the TeamColor here
game.Lighting["TOOLNAME2"]:clone().Parent = newguy.Backpack
end end
function playerIn(newguy)
newguy.CharacterAdded:connect(function(character) respawned(character,newguy) end)
end
game.Players.PlayerAdded:connect(playerIn)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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