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

Why won't the text show when a frame turns black?

Asked by 1 year ago
Edited 1 year ago

When I run the script the black goes over the q text (?) I'm not sure if this is a scripting issue or something, just need help.


local part = game.Workspace.Fade1 local q = game.StarterGui.ScreenGui.Frame.text.q local w = game.StarterGui.ScreenGui.Frame.text.w local e = game.StarterGui.ScreenGui.Frame.text.e local r = game.StarterGui.ScreenGui.Frame.text.r local t = game.StarterGui.ScreenGui.Frame.text.t local y = game.StarterGui.ScreenGui.Frame.text.y local u = game.StarterGui.ScreenGui.Frame.text.u local i = game.StarterGui.ScreenGui.Frame.text.i local o = game.StarterGui.ScreenGui.Frame.text.o local black = script.Parent local function faded() black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 wait(0.05) black.Transparency = black.Transparency - 0.05 black.ZIndex = 0 wait(0.45) q.TextTransparency = 0 end part.Touched:Connect(faded)

1 answer

Log in to vote
0
Answered by 1 year ago

Most ui problems like this don't have much to do with scripts. Doesn't look like the script has anything to do with the black frame being above the letters. Try checking the ZIndex for all the letters, make sure they're greater than 0. Otherwise, you could set the black Zindex to a negative instead of 0 to see if it helps. If all zindex' are the same and its just the q, make sure the black frame is not a descendant of the text label.

Ad

Answer this question