|
| 21 Jun 2014 06:53 PM |
| I'm trying to make a military game though I want one side to have 3 weapons and the other side to have 3 different weapons, PLX HELP (I am no noob at building >:D) |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 07:05 PM |
ok so somthing like this me = script.Parent.Parent if me.team = "navy"" then k = game.Lighting.Ak47:Clone() k.Parent = me
idk if this will work just an example |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 07:30 PM |
@above is extremely invalid. "team" is not a valid member of the player.
You do this by returning a table of players, and use if statements ti specify their team color
for _, k in pairs(Game.Players:GetPlayers()) do if k.TeamColor == BrickColor.new(colorthing) then --clone tool elseif k.TeamColor == BrickColor.new(colorthing) then --clone tool elseif k.TeamColor === BrickColor.new(colorthing) then --clone tool end end
Oh and btw @ above, you must be viewing some old free model tutorial, cause remove() is deprecated (saw you use it in another thread), and there were two (possibly 3, IDK what ReplicatedStorage is for) other services in data model that were created to replace the lighting as a storage unit. |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 07:44 PM |
| im not using any free model i just made that nuby |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 08:05 PM |
| Woops @ my last post. I meant I don't know what "ReplicatedFirst" is for. |
|
|
| Report Abuse |
|
|