llcoolj03
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 6135 |
|
|
| 19 May 2014 02:07 AM |
| I am making a guns vs swords game, and I don't know how to give Guns guns and swords swords |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 19 May 2014 02:12 AM |
| Why are you making it then? |
|
|
| Report Abuse |
|
|
Phyclops
|
  |
| Joined: 27 Sep 2012 |
| Total Posts: 5895 |
|
| |
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 19 May 2014 02:22 AM |
for i,v in pairs(game.Players:GetChildren()) do if v.TeamColor == BrickColor.new("Bright red") then game.Lighting.LinkedSword:clone().Parent = v.Backpack elseif v.TeamColor == BrickColor.new("Bright blue") then game.Lighting.Gun:clone().Parent = v.Backpack end end |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 19 May 2014 02:23 AM |
^
You could also usse GetPlayers() |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
|
| 19 May 2014 02:23 AM |
| I would like to use GetChildren() though. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 19 May 2014 02:26 AM |
| Instance.new("IntValue", game.Players) > crash |
|
|
| Report Abuse |
|
|
uyoyalt
|
  |
| Joined: 16 Apr 2013 |
| Total Posts: 2860 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 19 May 2014 02:29 AM |
You scripts might not work because of other values in it. Learn it while you can, you also get less lagg. |
|
|
| Report Abuse |
|
|