Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does my gui overlap the other? [Solved By Myself]

My question is how do I fix this overlapping GUI because it's annoying for my mainly GUI game.

This is my first GUI like a loading one

game.ReplicatedFirst:RemoveDefaultLoadingScreen()

local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency (0)

local GUI = script["SCP UI"]:Clone()
GUI.Parent = PlayerGui

wait(10)

GUI.Frame:TweenPosition(UDim2.new(0,0,1,0), "InOut","Sine",0.5)
wait(0.5)
GUI:Destroy()

Please help.

2 comments

0

Huh, still doesn't work

0

Also I have 2 loading screens technically. So the 1st one it's the loading then the 2nd one is a document/main page.

3 answers

✓ Accepted answer

You can change it by using ZIndex, the more ZIndex that the GUI has, they'll overlaps the GUI that have less ZIndex.

There have no maximum of ZIndex, so you can change it freely.

Go to the properties of the GUI and change the Zindex. The more you set zindex, the label/button stays more up. If a button zindex is 1 and a loading screen zindex is 2, you'll see the loading screen. Zindex works in this way! Just change it.

This discussion is preserved as it was. New answers, comments, and votes are closed.