Advertisement
experters

cool gui for roblox

Jan 2nd, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.31 KB | None | 0 0
  1. local GUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/derekcool38/UI-Librarys/main/cool.lua"))()
  2.  
  3. local UI = GUI:CreateWindow("the um","lop")
  4.  
  5. local Home = UI:addPage("Home",1,true,6)
  6.  
  7. Home:addLabel("This is a Label","Lol this funny")
  8.  
  9. Home:addButton("This is a button",function()
  10.     game.StarterGui:SetCore("SendNotification",{
  11.         Title = "Clicked";
  12.         Text = "Lo";
  13.     })
  14. end)
  15.  
  16. Home:addToggle("This is a Toggle",function(value)
  17.     print(value)
  18.     if value == false then
  19.         game.StarterGui:SetCore("SendNotification",{
  20.             Title = "Toggle";
  21.             Text = "false";
  22.         })
  23.     else
  24.         game.StarterGui:SetCore("SendNotification",{
  25.             Title = "Toggle";
  26.             Text = "true";
  27.         })
  28.     end
  29. end)
  30.  
  31. Home:addSlider("This is a Slider",16,100,function(value)
  32.     print(value)
  33. end)
  34.  
  35. Home:addTextBox("This is a TextBox","Um",function(value)
  36.     game.StarterGui:SetCore("SendNotification",{
  37.         Title = "Wrote";
  38.         Text = value;
  39.     })
  40. end)
  41.  
  42. Home:addDropdown("This is a Dropdown",{"Um","Yep","Lop","GG"},1,function(value)
  43.     game.StarterGui:SetCore("SendNotification",{
  44.         Title = "Selected :";
  45.         Text = value;
  46.     })
  47. end)
  48.  
  49. -- Just an example of how you would actually use it i guess
  50.  
  51. local LP = UI:addPage("Local",2,false,6)
  52.  
  53. -- Label
  54.  
  55. LP:addLabel("Local","Don't use in games with anti cheats")
  56.  
  57. --- Button
  58.  
  59. LP:addButton("DIE",function()
  60.     game.Players.LocalPlayer.Character.Humanoid.Health = 0
  61. end)
  62.  
  63. -- Toggle
  64.  
  65. LP:addToggle("Sprint",function(value)
  66.     if value == false then
  67.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  68.     else
  69.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 24
  70.     end
  71. end)
  72.  
  73. -- Slider
  74.  
  75. LP:addSlider("WalkSpeed",16,150,function(value)
  76.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
  77. end)
  78.  
  79. -- Textbox
  80.  
  81. LP:addTextBox("Jump Power / 50 is default","Number here",function(value)
  82.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = value
  83. end)
  84.  
  85. -- Dropdown
  86.  
  87. local PLIST = {}
  88.  
  89. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  90.     table.insert(PLIST,v.DisplayName)
  91. end
  92.  
  93. LP:addDropdown("Teleport to Player",PLIST,4,function(value)
  94.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =  game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
  95. end)
  96.  
  97.  
  98. -- Spam
  99.  
  100. LP:addLabel("Spam","This is just to show how it looks with more ui elements")
  101.  
  102. LP:addDropdown("Teleport to Player",PLIST,4,function(value)
  103.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =  game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
  104. end)
  105.  
  106.  
  107. LP:addDropdown("Teleport to Player",PLIST,4,function(value)
  108.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =  game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
  109. end)
  110.  
  111.  
  112. LP:addDropdown("Teleport to Player",PLIST,4,function(value)
  113.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =  game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
  114. end)
  115.  
  116.  
  117. LP:addDropdown("Teleport to Player",PLIST,4,function(value)
  118.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =  game.Players[value].Character.HumanoidRootPart.CFrame * CFrame.new(0,2,1)
  119. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement