Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Frame background color doesnt change?

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?

2 comments

0

You might need to use Color3.fromRGB(color.R, color.G, color.B)

0

Or simply just surfacegui.Frame.BackgroundColor3 = color

1 answer

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

1 comment

0

No errors, and what do you mean with color isn't defined?

This discussion is preserved as it was. New answers, comments, and votes are closed.