Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Output error switching?

Asked by 9 years ago

Once i change fromBrickColor.new to Color3.new it switches.

BrickColor.new

23:26:26.283 - Workspace.Loulou1112's Tycoon Kit.Really red.Core:3: bad argument #3 to 'TeamColor' (BrickColor expected, got Color3) 23:26:26.284 - Script 'Workspace.Loulou1112's Tycoon Kit.Really red.Core', Line 3 23:26:26.285 - Stack End

Color3.new

23:26:26.283 - Workspace.Loulou1112's Tycoon Kit.Really red.Core:3: bad argument #3 to 'TeamColor' (Color3 expected, got BrickColor) 23:26:26.284 - Script 'Workspace.Loulou1112's Tycoon Kit.Really red.Core', Line 3 23:26:26.285 - Stack End

Here is the core,

local Factory = Instance.new("Team", game:GetService("Teams"))
Factory.Name = script.Parent.Name
Factory.TeamColor = Color3.new(script.Parent.FactoryConfig.Teamcolor.Value)
Factory.AutoAssignable = false

It's not finished yet, can you help me for this?

1 answer

Log in to vote
0
Answered by 9 years ago

Create = assert(LoadLibrary('RbxUtility')).Create --[[ I just use Create cause its faster :P ]]-- local Teams = game:GetService("Teams") local Factory = Create "Team" { Parent = Teams, Name = script.Parent.Name, TeamColor = BrickColor.new('Really red'), AutoAssignable = false }

Here :P

Ad

Answer this question