Color3Value turns black. Neither HSV nor RGB work?

Hi!

So i’ve got these lines:
PackageColor = script.Parent.PackageColor.Value (This is a Color3Value, which is 255,170,0)
GetTexture.Color3 = Color3.fromRGB(PackageColor.R,PackageColor.G,PackageColor.B)
GetTexture is a Texture which is cloned, and the texture’s Color3-Value should change to the Value that’s been set in the Color3Value’s Value.

In the model, where the script belongs to. There’s the Texture which gets cloned, and a Color3Value, which is 255,170,0.

However, when i do print(PackageColor) it returns 1, 0.666667, 0, and the texturecolor is black.

when using Color3.fromHSV, Color3.new or Color3.fromRGB, none of them work?

1 Like

Can’t you jut do

GetTexture.Color3 = PackageColor

If PackageColor is already a Color3?

3 Likes

color3 value are not RGB so in order to do that you must divide it by 255

GetTexture.Color3 = Color3.new(PackageColor.R/255,PackageColor.G/255,PackageColor.B/255)`
1 Like

Lol my bad :slight_smile: Ghehe

1 Like

It’s fine, glad to be of help to you! If you have anymore issues don’t be afraid to maek another psot!