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 » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do I make teams have certain weapons?

Previous Thread :: Next Thread 
StrangeBuilderbee is not online. StrangeBuilderbee
Joined: 12 May 2012
Total Posts: 7
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
iimerkingalaxy is not online. iimerkingalaxy
Joined: 23 Sep 2013
Total Posts: 223
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
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
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
iimerkingalaxy is not online. iimerkingalaxy
Joined: 23 Sep 2013
Total Posts: 223
21 Jun 2014 07:44 PM
im not using any free model i just made that nuby
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
21 Jun 2014 08:05 PM
Woops @ my last post. I meant I don't know what "ReplicatedFirst" is for.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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