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

ZIndex is broken?

Asked by 9 years ago

I have a TeamSelect GUI and an Intro GUI, but for some reason, the TeamSelect GUI (ZIndex 9) always appears over the top of the Intro GUI (ZIndex 10). Why is this happening?


Intro GUI: http://puu.sh/jdnGO/10fcaa93fe.png

01function added(player)
02    local NameOfGame = "Roblox Prison" -- For future-proofing
03 
04    local GUI = script.IntroGUI:clone()
05    GUI.Parent = player:WaitForChild("PlayerGui")
06 
07    local ThisFrame = GUI.Frame
08    local Text = ThisFrame.TextLabel
09    local ClassicLoad = ThisFrame.ClassicLoadFrame
10    local LoadText = ClassicLoad.LoadText
11 
12    Text.Visible = false -- Prepare for it to fade in
13 
14    repeat wait() until player.Character
15 
View all 27 lines...

TeamSelect GUI: http://puu.sh/jdnJR/1e8f5eceaf.png

01local player = game.Players.LocalPlayer -- assign a variable to the local player
02frame = script.Parent.Frame
03GuardButtonShake = 0
04InmateButtonShake = 0
05CivilianButtonShake = 0
06 
07local function getTeamPlayers(teamColor)
08local output = {}
09for _, v in pairs(game.Players:getPlayers()) do
10if (not v.Neutral) and v.TeamColor == BrickColor.new(teamColor) then
11table.insert(output, player)
12end
13end
14return output
15end
View all 79 lines...

Answer this question