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 » Scripters
Home Search
 

Re: Scripting Help

Previous Thread :: Next Thread 
BlockHeadBooBoo is not online. BlockHeadBooBoo
Joined: 05 Jun 2014
Total Posts: 28
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 is not online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
10 Jul 2017 02:51 PM
BrickColor.new only takes one argument, not two.

Report Abuse
BlockHeadBooBoo is not online. BlockHeadBooBoo
Joined: 05 Jun 2014
Total Posts: 28
10 Jul 2017 02:54 PM
So what should I do?


Report Abuse
Crimsonal is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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