Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change a brickcolor to another bricks color?

I'm trying to make a new head for something, just I can't change it to the players head color

head2.BrickColor = BrickColor.new(character.Head.BrickColor)

2 comments

0

is there any output?

0

07:29:30.007 - Players.Player.PlayerGui.GUI.Scripts.Gunscript:56: bad argument #1 to 'new' (Color3 expected, got userdata) 07:29:30.008 - Script 'Players.Player.PlayerGui.GUI.Scripts.Gunscript', Line 56 07:29:30.008 - Stack End

2 answers

✓ Accepted answer

Don't use the BrickColor.new in cases like this, remove it and add this:

character.head2.BrickColor

Now lets add it to your script:

head2.BrickColor=character.head2.BrickColor

Hope this Helped!

3 comments

0

Works thanks

0

character.Head.BrickColor*(;

0

Oh thx sorry.

You're trying to make a BrickColor datatype out of a BrickColor datatype.. the BrickColor.new function takes a string, or number as an argument. You're giving it another BrickColor datatype.


What you're doing: BrickColor = BrickColor.new(BrickColor.new())

What you need to do: BrickColor = BrickColor.new()


So to fix? Just remove the BrickColor.new() and have soley character.Head.BrickColor since that returns a BrickColor.


head2.BrickColor = character.Head.BrickColor

This discussion is preserved as it was. New answers, comments, and votes are closed.