|
| 10 Jul 2017 02:49 PM |
I need help with my script, it is meant to make the text button that this local script is in to be visible when the player chooses a team but it is not working.
local player = game.Players.LocalPlayer
if player.TeamColor = BrickColor.new("Parsley green", "Really red") --There is a problem with this line then script.Parent = visible end
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Frame.Visible = not script.Parent.Parent.Frame.Visible end)
|
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 10 Jul 2017 02:51 PM |
BrickColor.new only takes one argument, not two.
|
|
|
| Report Abuse |
|
|
| |
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 10 Jul 2017 02:57 PM |
Give it either one or the other color, if you want to use both then
if player.TeamColor == BrickColor.new("Parsley green") or player.TeamColor == BrickColor.new("Really red") then |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 10 Jul 2017 02:57 PM |
| https://forum.roblox.com/Forum/ShowForum.aspx?ForumID=33 |
|
|
| Report Abuse |
|
|