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 |
|
|
| |
|
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 |
|
|
|
| 15 Apr 2014 09:06 PM |
| Then make it BrickColor.new(colore.Value) |
|
|
| Report Abuse |
|
|
subenari
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 116 |
|
|
| 15 Apr 2014 09:07 PM |
| that's what it says on op dude |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 15 Apr 2014 09:10 PM |
t_t
game.Teams.Team.TeamColor = BrickColor.new 'Toothpaste'; |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 116 |
|
|
| 15 Apr 2014 10:07 PM |
| How do I utilize brickcolorvalues |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|