So I have this local script in StarterGui and it will change the text color to Some black instead of this blue I defined. How do I fix it so it's blue and is visibly changed?
StarterGui:
script.Parent.MouseButton1Click:connect(function() local gui= game.Players.LocalPlayer.Character.Rank gui.Frame.Name1.TextColor3 = Color3.new(85, 170, 255) gui.Frame.TextLabel.TextColor3 = Color3.new(85, 170, 255) end)
You need to divide it by /255 in order for it to work, or you can do Color3.fromRGB.
script.Parent.MouseButton1Click:connect(function() local gui= game.Players.LocalPlayer.Character.Rank gui.Frame.Name1.TextColor3 = Color3.new(85/255, 170/255, 255/255) gui.Frame.TextLabel.TextColor3 = Color3.new(85/255, 170/255, 255/255) end)
This looks perfectly fine and should work properly, but I would advise you to add a :WaitForChild()
function on the local gui
, like this;
script.Parent.MouseButton1Click:Connect(function() local gui = game.Players.LocalPlayer.Character:WaitForChild("Rank") --and so on... end)