xXCrystalKittensXx

GUI

Apr 19th, 2021 (edited)
593
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local CoreGui = game:GetService("CoreGui")
  2.  
  3. local Parent = CoreGui:FindFirstChild("GUIService") or Instance.new("ScreenGui", CoreGui)
  4. Parent.IgnoreGuiInset = true
  5. Parent.DisplayOrder = 65536
  6. Parent.Name = "GUIService"
  7. Parent.ResetOnSpawn = false
  8.  
  9. local GUI = {}; do
  10.     function GUI.new(class, properties)
  11.         local success, result = pcall(function()
  12.             local new = Instance.new(class)
  13.             new.Parent = Parent
  14.             for i, v in next, properties do
  15.                 new[i] = v
  16.             end
  17.             return new
  18.         end)
  19.         if (success) then
  20.             return result
  21.         end
  22.     end
  23.     function GUI.clear()
  24.         Parent:ClearAllChildren()
  25.     end
  26. end
  27.  
  28. return GUI
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×