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

Is it possible to change the background color of a gui in-game?

Asked by 6 years ago
Edited 6 years ago

Hello. I've decided to make a color changing gui which was just a test. When testing it out, nothing was changing. When I tried to go to my playergui and change my color there, it changed back instantly.

I tried modifying the script to remove the while loop, change it to just a normal color change `script.Parent.BackgroundColor3 = Color3.FromHSV(50,255,255) (something like this, i was rewriting from memory, so don't bug me about typos)

This is what I used for the color changing script:

--script in startergui>screengui>frame
for i=1,359 do wait()
    script.Parent.BackgroundColor3 = Color3.fromHSV(i, 255, 255)
end

Does anyone know why you can't change a bg color while ingame? `

EDIT: tried localscripts, didn't work

0
Use a local script. Use RGB it's easier. TheLightningRises 56 — 6y
0
you didn't read the edit. and rgb is muuuch harder. bartekrabit 38 — 6y
0
It's not that it is harder, It is just which one you learn first. I learned RGB first (as most people do) and I thought that HSV was completely inconvenient MusicalDisplay 173 — 6y
0
to change using hsv all i have to do is make a for loop and change the first value. on the other hand, i need to change rgb so it turns from red then goes to blue and then to green which is much harder bartekrabit 38 — 6y

Answer this question