seanf1999
|
  |
| Joined: 01 Aug 2009 |
| Total Posts: 4783 |
|
|
| 17 Mar 2013 04:26 PM |
I'm building a game with 2 different teams, and i want them to have different weapons...
Can anybody help? |
|
|
| Report Abuse |
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 17 Mar 2013 04:34 PM |
You have a team, team have names. People have TeamColors. Try the following:
In lighting, make a model where you put the tools in of the first team. Call this model exactly the team name.
Now, insert a localscript into starterpack. Contents:
function GetTeam() for i,v in pairs(game.Teams:GetTeams()) do if v.TeamColor == game.Players.LocalPlayer.TeamColor then return v.Name end end end
for i,v in pairs(game.Lighting[GetTeam]:GetChildren()) do v:Clone().Parent = script.Parent end
script:Destroy() |
|
|
| Report Abuse |
|