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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

brickcolorvalue not working for teamcolor

Previous Thread :: Next Thread 
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
15 Apr 2014 09:02 PM
colore = script.color

script.Parent.MouseButton1Down:connect(function()
pl = game.Players.LocalPlayer
t = Instance.new('Team', game.Teams)
t.TeamColor = Color3.new(colore.Value)
t.Name = script.teamname.Value

pl.TeamColor = BrickColor.new(colore.Value)
Workspace.CurrentCamera.CoordinateFrame = CFrame.new(Workspace.Turn.Position)

end)

-- OUTPUT --bad argument #1 to 'new' (Color3 expected, got userdata)
why does teamcolor expect color3
is this a ls problem
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
15 Apr 2014 09:03 PM
It has to be BrickColor.
Report Abuse
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
15 Apr 2014 09:05 PM
but colore is a brickcolorvalue and I'm using a brickcolorvalue and the output says it expects a color3 value

Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
15 Apr 2014 09:06 PM
Then make it BrickColor.new(colore.Value)
Report Abuse
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
15 Apr 2014 09:07 PM
that's what it says on op dude
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
15 Apr 2014 09:08 PM
Actually, no. This is what the op says:

't.TeamColor = Color3.new(colore.Value)' <--Should be BrickColor.new
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
15 Apr 2014 09:10 PM
t.TeamColor = Color3.new(colore.Value)

I'm pretty sure he meant to change this to BrickColor.new(color.Value)
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
15 Apr 2014 09:10 PM
t_t



game.Teams.Team.TeamColor = BrickColor.new 'Toothpaste';
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
15 Apr 2014 09:10 PM
Late post, my bad :(
Report Abuse
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
15 Apr 2014 09:45 PM
So I changed it to

colore = script.color

script.Parent.MouseButton1Down:connect(function()
pl = game.Players.LocalPlayer
t = Instance.new('Team', game.Teams)
t.TeamColor = BrickColor.new(colore.Value)
t.Name = script.teamname.Value

pl.TeamColor = BrickColor.new(colore.Value)
Workspace.CurrentCamera.CoordinateFrame = CFrame.new(Workspace.Turn.Position)

end)

but the output was

bad argument #1 to 'new' (Color3 expected, got userdata), Line 6
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
15 Apr 2014 09:50 PM
Woot Woot




script.Parent.MouseButton1Down:connect(function()
pl = game.Players.LocalPlayer
t = Instance.new('Team', game.Teams)
t.TeamColor = BrickColor.new 'Toothpaste'; -- That work's, it just looks weird, change toothpaste to ur color.
t.Name = script.teamname.Value

pl.TeamColor = BrickColor.new 'Toothpaste'; same as the team's color.
Workspace.CurrentCamera.CoordinateFrame = CFrame.new(Workspace.Turn.Position)

end)
Report Abuse
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
15 Apr 2014 09:57 PM
I want to use brickcolorvalue for a reason
please help with brickcolorvalue
Report Abuse
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
15 Apr 2014 10:07 PM
How do I utilize brickcolorvalues
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
15 Apr 2014 10:32 PM
Tables


take along time though


have 1 color for each table

xtable = {}

for i,v in pairs(xtable)do
end
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