This is very simple, and I have NO CLUE why it doesn't work.
1 | script.Parent.Touched:connect( function (touch) |
2 | script.Parent.Color = Color 3. new(touch.Color) |
3 | end ) |
These are inserted into both of the legs of the player when they joins, and I have tested it, they do get inserted correctly. Please help? Thanks!
Parts do not have a Color
property. They have a BrickColor
property.
You just need to change Color
to BrickColor
1 | script.Parent.Touched:connect( function (Touch) |
2 | script.Parent.BrickColor = BrickColor.new(Touch.BrickColor.Color) |
3 | end ) |
EDIT: I didn't capitalize Touch on line 2
M8, Touch.BrickColor.Color
gives you the Color3 or a certain brick color.
Just keep the script...
1 | script.Parent.Touched:connect( function (Touch) |
2 | script.Parent.BrickColor = BrickColor.new(Touch.BrickColor) |
3 | end ) |
... and you should be fine. .3.