Here's the script im using:
1 | local surfacegui = surfguifolder.SurfaceGuiLeft:Clone() |
2 | if color then |
3 | surfacegui.Frame.BackgroundColor 3 = Color 3. fromRGB(color) |
4 | end |
5 | surfacegui.Parent = v 2 |
6 | 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?
Any Errors? And It might be because color
isn't defined