how to make this?:
On Guis:
script.Parent.BackgroundColor3 = Color3.fromRGB(255,170,0) or script.Parent["Your name Frame"].BackgroundColor3 = Color3.fromRGB(255, 170, 0)
On parts:
script.Parent.Color = Color3.fromRGB(255, 170, 0)
I didn’t mean that red is responsible for red, green for green, etc.
So, do you want to make a rainbow thing?
On parts/Guis?
no, I need that if the player puts 232r, 0g and 14b, then the color should change to 232r 0g 14b
or if the player bet 225r then, the color should be 225r 0g 0b
Huh, I’m not that good to do that but I hope I can do it has far as possible.
ok try it I just really need it
Take a value from the player for each value for R,G, B, then change the color of the element using element.Color = Color3.fromRGB(R,G,B)
I started with this (It’s not done yet !):
local Color = game.Workspace.Part.Color
local Red = Color.R
local Green = Color.G
local Blue = Color.B
Took me about 10 minutes code this but it’s still unfinished, still have a long way to go:
local Color = game.Workspace.Part.Color
local Red = Color.R
local Green = Color.G
local Blue = Color.B
local player = game.Players
local function isInRange(min: number, max: number) : boolean
return
end
if player.LocalPlayer.Chatted == "I want "..isInRange(0,255).."r, "..isInRange(0,255).."g and "..isInRange(0,255).."b." then
end
I’m assuming it’s a textbox.
local R = script.Parent:WaitForChild("Red")
local G = script.Parent:WaitForChild("Green")
local B = script.Parent:WaitForChild("Blue")
local Frame = script.Parent:WaitForChild("ColorPreview")
function updateColor()
if tonumber(R.ContentText) and tonumber(G.ContentText) and tonumber(B.ContentText) then
Frame.BackgroundColor3 = Color3.fromRGB(R.Text,G.Text,B.Text)
end
end
R:GetPropertyChangedSignal("ContentText"):Connect(updateColor)
G:GetPropertyChangedSignal("ContentText"):Connect(updateColor)
B:GetPropertyChangedSignal("ContentText"):Connect(updateColor)
I have been coding this for 20 minutes, come to an error (Which has been fixed.) and the script is still not done.
local Color = game.Workspace.Part.Color
local Red = Color.R
local Green = Color.G
local Blue = Color.B
local player = game.Players
local localplayer = player.LocalPlayer
local function isInRange(min: number, max: number) : boolean
return
end
if localplayer.Chatted == isInRange(Red,Green,Blue) then
-- It's missing, here !
end
I give up on the script, it’s making me felling too controversial.
Just Create a Color3Value. Creates the RGB and you can change it how you like and apply it to whatever