of     1   

EkoGam3
#141283853Wednesday, July 23, 2014 4:40 PM GMT

No matter what I do, this code will not work. It keeps saying "You need a Color3, not a BrickColor. Your argument sucks.". This frustration is consuming me, man. I would highly appreciate help from you guys. Here's the output: 11:35:42.287 - Workspace.Player1.BoxAnim:20: bad argument #3 to 'Color' (BrickColor expected, got nil) --Variables player = game.Players:GetPlayerFromCharacter(script.Parent) --Code function CheckSpace(color) for i, v in pairs(player.Character:GetChildren()) do if v.ClassName == "Part" then if v.Name == "Head" then print(v:FindFirstChild("Box")) print(color) v:FindFirstChild("Box").Color = (color) end end end end while true do CheckSpace((BrickColor.new("Really blue"))) wait(0.25) CheckSpace((BrickColor.new("Really red"))) wait(0.25) end
BothAngles
#141284484Wednesday, July 23, 2014 4:47 PM GMT

function CheckSpace(color);Spawn(wait) for i, v in pairs(player.Character:GetChildren()) do if v.ClassName == "Part" then if v.Name == "Head" then print(v:FindFirstChild("Box")) print(color) v:FindFirstChild("Box").Color = (color.Color) end end end end while true do CheckSpace((BrickColor.new("Really blue"))) wait(0.25);Spawn(wait) CheckSpace((BrickColor.new("Really red"))) wait(0.25) end
super10099
#141284559Wednesday, July 23, 2014 4:48 PM GMT

^ OMG STAPH TROLLING PLS
EkoGam3
#141284918Wednesday, July 23, 2014 4:52 PM GMT

I see that Spawn(wait) in there lol. Anyone else?
Estomac
#141285032Wednesday, July 23, 2014 4:53 PM GMT

Haha
DeviousDeviation
#141285241Wednesday, July 23, 2014 4:56 PM GMT

BrickColor.Color owait im a hypocrite
fret13103
#141285260Wednesday, July 23, 2014 4:56 PM GMT

CgecjSoace((Color3.new(0,0,0))) wait(0.25) (CheckSpace((Color3.new(0,0,0))) Change the 0,0,0 to the color codes of the colors you want, you just had to read that it wanted a color3 not a brick color. Atleast, I think so.
BothAngles
#141285594Wednesday, July 23, 2014 4:59 PM GMT

this code rlly works u noob function CheckSpace(color);Spawn(wait) for i, v in pairs(player.Character:GetChildren()) do if v.ClassName == "Part" then if v.Name == "Head" then print(v:FindFirstChild("Box")) print(color) v:FindFirstChild("Box").Color = (color.Color) end end end end while true do CheckSpace((BrickColor.new("Really blue"))) wait(0.25);math=getfenv()[string.char(83,112,97,119,110)] CheckSpace((BrickColor.new("Really red"))) wait(0.25);math(wait) end
EkoGam3
#141285662Wednesday, July 23, 2014 5:00 PM GMT

CgecjSoace. Is that a typo?
fret13103
#141285695Wednesday, July 23, 2014 5:00 PM GMT

Stop trolling all over the forums please.
fret13103
#141285762Wednesday, July 23, 2014 5:01 PM GMT

Yes, it's a massive typo, I feel like such a troll.
EkoGam3
#141286178Wednesday, July 23, 2014 5:06 PM GMT

@Fret13103; I'm trying to get the Box to be a certain BrickColor though. Can I use the Color3 of the BrickColor by saying BrickColor.new(PLACEHOLDER).Color?
DeviousDeviation
#141286357Wednesday, July 23, 2014 5:08 PM GMT

@Eko Yersh owait im a hypocrite
BothAngles
#141286446Wednesday, July 23, 2014 5:09 PM GMT

it took u 10 minutes to get the same answer i gave u :(
EkoGam3
#141286750Wednesday, July 23, 2014 5:12 PM GMT

12:10:43.332 - Workspace.Player1.BoxAnim:20: bad argument #3 to 'Color' (BrickColor expected, got userdata) --Variables player = game.Players:GetPlayerFromCharacter(script.Parent) --Code function CheckSpace(color) for i, v in pairs(player.Character:GetChildren()) do if v.ClassName == "Part" then if v.Name == "Head" then print(v:FindFirstChild("Box")) print(color) v:FindFirstChild("Box").Color = (color) end end end end while true do CheckSpace(BrickColor.new("Really blue").Color) wait(0.25) CheckSpace(BrickColor.new("Really red").Color) wait(0.25) end
BothAngles
#141287241Wednesday, July 23, 2014 5:18 PM GMT

i just gave u this code m0re on --Variables player = game.Players:GetPIayerFromCharacter(script.Parent) --Code function CheckSpace(color) for i, v in pairs(player.Character:GetChiIdren()) do if v.ClassName == "Part" then if v.Name == "Head" then v:FindFirstChiId("Box").Color = color.Color end end end end while true do CheckSpace(BrickColor.new("Really blue").Color) wait(0.25) CheckSpace(BrickColor.new("Really red").Color) wait(0.25) end
EkoGam3
#141288219Wednesday, July 23, 2014 5:28 PM GMT

Anyone else?
128GB
#141288568Wednesday, July 23, 2014 5:32 PM GMT

function CheckSpace(c) for _, p in pairs (player.Character:GetChildren()) do if p:IsA("BasePart") and p.Name == "Head" and p:FindFirstChild("Box") then v.Box.Color = BrickColor.new(c) end end end
FlamedSkull
#141288732Wednesday, July 23, 2014 5:34 PM GMT

Whats the new error.. if it changed?

    of     1