|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
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
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 1802 |
|
|
| 21 Aug 2011 07:41 PM |
Go into the Explorer.
Teams>TeamName>PasteToolHere
|
|
|
| Report Abuse |
|
|
|
| 21 Aug 2011 08:02 PM |
| paste like copy or can drag work instead? |
|
|
| Report Abuse |
|
|
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 |
|
|