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
 

How do i make Team Starterpacks?

Previous Thread :: Next Thread 
seanf1999 is not online. seanf1999
Joined: 01 Aug 2009
Total Posts: 4783
17 Mar 2013 04:26 PM
I'm building a game with 2 different teams, and i want them to have different weapons...

Can anybody help?
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
17 Mar 2013 04:34 PM
You have a team, team have names. People have TeamColors. Try the following:

In lighting, make a model where you put the tools in of the first team. Call this model exactly the team name.

Now, insert a localscript into starterpack. Contents:

function GetTeam()
for i,v in pairs(game.Teams:GetTeams()) do
if v.TeamColor == game.Players.LocalPlayer.TeamColor then
return v.Name
end
end
end

for i,v in pairs(game.Lighting[GetTeam]:GetChildren()) do
v:Clone().Parent = script.Parent
end

script:Destroy()
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