I want to be able to change the color of a decal to whatever I choose (preferably using the RGB 0-255 scale) But whenever I try, it just makes he decal black. My method seems to be incorrect, what am I doing wrong? For this script, I just want it to turn a bright red.
playerman = script.Parent.Parent.Parent.Parent.Parent.Character function changecolor() playerman.HeadPart.Hair.Decal.Color3 = Color3.new("255,0,0") wait() end script.Parent.MouseButton1Click:connect(changecolor)
A color3 value does not take a string, it takes 3 colours. So for you, it would be,
playerman = script.Parent.Parent.Parent.Parent.Parent.Character function changecolor() playerman.HeadPart.Hair.Decal.Color3 = Color3.fromRGB(255,0,0) --You had it as a string. wait() end script.Parent.MouseButton1Click:connect(changecolor)
Adding onto what OldPalHappy stated.
local playerman = script.Parent.Parent.Parent.Parent.Parent.Character function changecolor() playerman.HeadPart.Hair.Decal.Color3 = Color3.fromRGB(255,0,0) wait() end script.Parent.MouseButton1Click:Connect(changecolor)