Skip to content

Instantly share code, notes, and snippets.

local WindowGui = Instance.new("ScreenGui")
WindowGui.Parent = game.Players.LocalPlayer.PlayerGui
WindowGui.Enabled = true
WindowGui.SafeAreaCompatibility = Enum.SafeAreaCompatibility.FullscreenExtension
WindowGui.ResetOnSpawn = false
WindowGui.IgnoreGuiInset = false
WindowGui.Name = "WindowGui"
WindowGui.DisplayOrder = 0
WindowGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
WindowGui.ScreenInsets = Enum.ScreenInsets.CoreUISafeInsets