(Please note that I am new to scripting) I am trying to make a part where when clicked it would change its color depending on the RGB value in Replicated Storage. I have attempted this in the script below but I get the error, "attempt to call a nil value". If anybody more experienced than me in scripting could help me write my code properly, it would overall help me become a better scripter.
while script.Parent.ClickDetector.MouseClick:Wait() do
script.Parent.Color = Color3.FromRGB(game.ReplicatedStorage.ColorValue.Value)
end
