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

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

Asked by 4 years ago
Edited 4 years ago

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.

0
Huh, still doesn't work User#32262 0 — 4y
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. User#32262 0 — 4y

3 answers

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
4 years ago

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.

Ad
Log in to vote
0
Answered by
Techyfied 114
4 years ago
Edited 4 years ago

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.

Log in to vote
0
Answered by 4 years ago

Just found out myself.

Answer this question