RGB Color is wrong when loading part color

So i’ll make it clear for everyone here
Saving code:

local tables = {Type = v.ClassName, SizeX = v.Size.X,SizeY = v.Size.Y,SizeZ = v.Size.Z,PositionX = v.Position.X,PositionY = v.Position.Y,PositionZ = v.Position.Z,ColorR = v.Color.R,ColorG = v.Color.G,ColorB = v.Color.B,RotateX = v.Orientation.X,RotateY = v.Orientation.Y,RotateZ = v.Orientation.Z}
table.insert(data,tables)

Loading code:

		for i,v in pairs(data) do
			print(v)
			local instancetype = Instance.new(v.Type,game.Workspace.SavePart)
			instancetype.Anchored = true
			instancetype.Size = Vector3.new(v.SizeX,v.SizeY,v.SizeZ)
			instancetype.Position = Vector3.new(v.PositionX,v.PositionY,v.PositionZ)
			instancetype.Orientation = Vector3.new(v.RotateX,v.RotateY,v.RotateZ)
			print(v.ColorR)
			print(v.ColorG)
			print(v.ColorB)
			instancetype.Color = Color3.fromRGB(v.ColorR,v.ColorG,v.ColorB)
		end

If printed out a color RGB and it results in R = 0,G=0,B=0 while i set the part color to 0,0,255 or any color.

I wonder whats the reason of this.

Please help!

The values returned from v.Color.R/G/B are normalized to be a number between 0 and 1. When saving the values, you must multiply all of them with 255(or when you set them).

I figured it too. But thanks anyway!