generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » All Things ROBLOX
Home Search
 

Re: How do i give certain teams guns

Previous Thread :: Next Thread 
Codered50 is not online. Codered50
Joined: 11 Apr 2014
Total Posts: 2
23 Jun 2015 05:13 PM
How do I give the police guns and other people no guns?
Report Abuse
reptiledude10 is not online. reptiledude10
Joined: 16 Mar 2012
Total Posts: 29235
23 Jun 2015 05:13 PM
basic scripting




Go troll in OT.
Report Abuse
Codered50 is not online. Codered50
Joined: 11 Apr 2014
Total Posts: 2
23 Jun 2015 05:37 PM
I'm serious.
Report Abuse
reptiledude10 is not online. reptiledude10
Joined: 16 Mar 2012
Total Posts: 29235
23 Jun 2015 05:37 PM
you think i'm not?




Go troll in OT.
Report Abuse
ObsoleteCoolguy is not online. ObsoleteCoolguy
Joined: 25 Jun 2011
Total Posts: 25965
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 is online. 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 is online. 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
ObsoleteCoolguy is not online. ObsoleteCoolguy
Joined: 25 Jun 2011
Total Posts: 25965
23 Jun 2015 05:43 PM
ignore my post
do what he says instead
much more efficient
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image