Hello! I've wanted to figure out, why my frame doesn't change the background transparency at all. and how to fix it. What I'm trying to do, is make a gui fade out I've tried for i = #, #, #
loops, but it doesn't work, here's what I tried...
for i = 0, 1, 0.05 do wait() Cutscene.Transition.BackgroundTransparency = i end
Some extra info: Cutscene is defined. Transition.BackgroundTransparency
Is on 0.
Edit: Turns out, I made a function with the code above, and connected it to a player added event. Also the code was in a localscript.
If transition is a variable it's not going to work. You would be better off getting the gui frame from a variable and then mess with the background transparency. Not only that but you used the wait() command too early, it's supposed to go at the very end of the for loop.
--For this example, pretend there is a local script inside of a frame, and which that frame is inside of a screen gui, which is in the StarterGui service. local frame = script.Parent -- Finds the frame, which is the parent of this local script' for i = 0, 1, 0.05 do frame.BackgroundTransparency = i wait() end