Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Frame background color doesnt change?

Asked by 4 years ago

Here's the script im using:

local surfacegui = surfguifolder.SurfaceGuiLeft:Clone()
if color then
surfacegui.Frame.BackgroundColor3 = Color3.fromRGB(color)
end
surfacegui.Parent = v2
debris:AddItem(surfacegui,duration)

The color will always turn to 0,0,0. If I print color, it will be a value like: 123,42,243. And if I use 3 numbers instead of the variable, it will work. Whats the issue?

0
You might need to use Color3.fromRGB(color.R, color.G, color.B) cherrythetree 130 — 4y
0
Or simply just surfacegui.Frame.BackgroundColor3 = color cherrythetree 130 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Any Errors? And It might be because color isn't defined

0
No errors, and what do you mean with color isn't defined? Daimywil 5 — 4y
Ad

Answer this question