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

Color Value turning Black when Used in Parts?

The main problem here is the fact that everytime I hit 'Submit' on my button the color turns 'Black', I don't know why it does this, Its being called from the server so everyone can see it and in there is the set which it should get the children of and the color it should be, the color is in a Color3Value, and whatever color you pick when u hit the submit button it changes that Color3Value. I don't know how to fix this, help would be lovely!

Here are the scripts.

This is in a Local Script inside the Color Wheel Submit button.

ListenToGameEvent.PaintObject:FireServer(script.Parent.Parent.Color, script.Parent.Parent.Parent.ColorSelect.DisplayElement.Caller)

This is in a Server Script inside the model

ListenToGameEvent.PaintObject.OnServerEvent:Connect(function(Player, Color, Set)
	for _,Set in pairs(script.Parent:FindFirstChild(Set.Value):GetChildren()) do
		Set.Color = Color3.new(Color.Value)
	end
end)

1 comment

0

Color3.new takes 3 values; if Color.Value is already a Color3, then you don't require the function.

1 answer

✓ Accepted answer

Set.Color = Color.Value is everything you need!

1 comment

0

Thanks!

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