#How do I set a Color3 Value to The text property of a TextBox
48 messages · Page 1 of 1 (latest)
No
Local...
It has local variables that you can't see i think but
I'm not sure
What u mean
Hmm
** You are now Level 10! **
put the script in a localscript
If I set the color value as something in specific then it will work. But cannot manage to change its color3 value through a players custom value
Oh
Trying to have a player input a color3 value into a textbox
And then, click a button to make that value be set to everything in workspace
so the player puts a color3 into a textbox and then they click then button and it changes the color of everything in workspace?
oh i see the problem
for i,v in pairs(workspace.ConstructionZone.BuildingsMaterials:GetChildren()) do
if v:IsA(Part) then```
OH LOL
It's i,v in pairs duh that's why-
Still not working doe :<
script.Parent.MouseButton1Click:Connect(function()
for i,v in pairs(workspace.ConstructionZone.BuildingMaterials:GetChildren()) do
if v:IsA("Part") then
v.Color = Color3.new(script.Parent)
end
end
end)
I Think that It was fine before, but using script.Parent to change the color Is not working
u are supposed to do the BrickColor not lua v.BrickColor = BrickColor.new()
or its lua v.Color = Color.fromRGB()
Hm
Okie
fromRGB is for when you're doing things like this in specific?
Don't understand why that's a second option