Advertisement
9_cVv

load gui

Apr 7th, 2021 (edited)
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. --inspired by dex loader
  2.  
  3. --[[function loadscript(gui)
  4.     if gui then
  5.         for a,b in pairs(gui:GetDescendants()) do
  6.             if b then
  7.                 if b:IsA("LocalScript") then
  8.                    
  9.                 end
  10.             end
  11.         end
  12.     end
  13. end]]
  14. function loadGui(gui)
  15.     if gui then
  16.         local clone = gui:Clone()
  17.         clone.Enabled = true
  18.         clone.Parent = game:GetService("CoreGui")
  19.         return(clone)
  20.     end
  21. end
  22.  
  23. return loadGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement