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

4 comments
Use a local script. Use RGB it's easier.
you didn't read the edit. and rgb is muuuch harder.
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
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