|
| 23 Jun 2015 05:13 PM |
| How do I give the police guns and other people no guns? |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 05:13 PM |
basic scripting
Go troll in OT. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Jun 2015 05:37 PM |
you think i'm not?
Go troll in OT. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 05:38 PM |
| you could build a team spawn room and place gun givers there where normal players can't reach them |
|
|
| Report Abuse |
|
|
tinarg
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 4925 |
|
|
| 23 Jun 2015 05:40 PM |
TeamColor = *PUT COLOR OF THE POLICE TEAM HERE*
Gun = *PUT DIRECTORY OF GUN HERE, EXAMPLE: game.ServerStorage.Gun*
C = game.Players:GetChildren()
for i = 1, #C do
if C[i].TeamColor == BrickColor.new(TeamColor) then Gun:Clone().Parent = C[i].BackPack end
end |
|
|
| Report Abuse |
|
|
tinarg
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 4925 |
|
|
| 23 Jun 2015 05:42 PM |
To use my code, let's say your police team color is Bright blue, and the gun is a tool located in ServerStorage, and it's name is PoliceGun. The top two variables would be as shown:
TeamColor = "Bright blue"
Gun = game.ServerStorage.PoliceGun |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2015 05:43 PM |
ignore my post do what he says instead much more efficient |
|
|
| Report Abuse |
|
|