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 » Game Design
Home Search
 

Re: Team hats

Previous Thread :: Next Thread 
imaginaryman1 is not online. imaginaryman1
Joined: 26 Apr 2014
Total Posts: 376
16 Oct 2015 06:40 PM
How do I make a script that makes a players on a team called "Watermelons" get a certain hat?
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
16 Oct 2015 06:42 PM
if team.Name == "Watermelons" then
--Give hat
end
Report Abuse
imaginaryman1 is not online. imaginaryman1
Joined: 26 Apr 2014
Total Posts: 376
16 Oct 2015 07:18 PM
um... is team supposed to be a variable?
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
16 Oct 2015 08:14 PM
teamWatermelons="Red" --color
if (player.TeamColor=(teamWatermelons)) then
--code
end

every team has to have an independent color, use that color to check if the player is on that team in this case



#code local onion=((tasty*math.ceil(math.huge))^128);print"onions are tasty"
Report Abuse
AecTalek is not online. AecTalek
Joined: 09 Oct 2008
Total Posts: 1653
16 Oct 2015 08:19 PM
tfw an ogre understands scripting better than you
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
16 Oct 2015 08:37 PM
I dont understand Teams at all
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
16 Oct 2015 08:40 PM
welding the hat and checking the player's teamcolor
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
16 Oct 2015 08:41 PM
teamWatermelons= BrickColor.new("Bright red") --color
if player.TeamColor == teamWatermelons then
--code
end

qorm's code fixed ^
Report Abuse
imaginaryman1 is not online. imaginaryman1
Joined: 26 Apr 2014
Total Posts: 376
17 Oct 2015 01:06 PM
what do i put for the code
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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