|
| 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 |
|
|
|
| 16 Oct 2015 06:42 PM |
if team.Name == "Watermelons" then --Give hat end |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2015 07:18 PM |
| um... is team supposed to be a variable? |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 09 Oct 2008 |
| Total Posts: 1653 |
|
|
| 16 Oct 2015 08:19 PM |
| tfw an ogre understands scripting better than you |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2015 08:37 PM |
| I dont understand Teams at all |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2015 08:40 PM |
| welding the hat and checking the player's teamcolor |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 17 Oct 2015 01:06 PM |
| what do i put for the code |
|
|
| Report Abuse |
|
|