Advertisement
2AreYouMental110

gui template

Nov 22nd, 2021
1,328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. getgenv().placeholder = false
  2.  
  3.  
  4. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  5.  
  6. local window = library:CreateWindow("placeholder")
  7. local a1 = window:CreateFolder("placeholder")
  8.  
  9.  
  10.  
  11. a1:Button("placeholder",function()
  12.     print ("placeholder")
  13. end)
  14.  
  15. a1:Toggle("placeholder",function(bool)
  16.     getgenv().placeholder = bool
  17.     print(on)
  18.     if bool then
  19.         placeholder()
  20.     end
  21. end)
  22.  
  23.  
  24. function placeholder()
  25.     spawn(function()
  26.         while getgenv().placeholder == true do
  27.             print "0"
  28.         end
  29.     end)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement