local box = script.Parent
local prn = script.Parent.Parent
box.MouseButton1Click:Connect(function()
prn.BackgroundColor3 = Color3.new(34, 255, 0)
end)
Why does this script turn the gui yellow instead of green!?
local box = script.Parent
local prn = script.Parent.Parent
box.MouseButton1Click:Connect(function()
prn.BackgroundColor3 = Color3.new(34, 255, 0)
end)
Why does this script turn the gui yellow instead of green!?
ok swap line 4 of ur script with this:
prn.BackgroundColor3 = Color3.fromRGB(34, 255, 0)
lol did it work now?
Color3.new() ~= Color3.fromRGB() which should explain y. Also "prn" sounds inappropriate.
local box = script.Parent
local prn = script.Parent.Parent
box.MouseButton1Click:Connect(function()
prn.BackgroundColor3 = Color3.new(34/255, 255/255, 0/255)
end)
oof
-1. You have failed to give an explanation.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
color3.new accepts numbers from 0 through 1, if you want to use numbers from 0 - 255, use Color3.fromRGB
ty
prn sounds inapropiate
lol