Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UILib = loadstring(game:HttpGet("https://pastebin.com/raw/kZXaVZnS"))()
- -- Set the window title
- UILib:SetTitle("Example Menu Title")
- -- Section 1
- UILib:AddSection("Example Section 1")
- -- Button (runs code on click)
- UILib:AddButton("Example button 1", function()
- print("Button clicked!")
- -- Put your code here
- end)
- -- Toggle without loop (runs on toggle change, receives state)
- UILib:AddToggle("Toggle Example (No Loop)", function(state)
- print("Toggle is now", state and "ON" or "OFF")
- -- Run code when toggle changes
- end)
- -- Toggle with loop and delay (runs repeatedly while ON)
- UILib:AddToggle("Toggle Example (With Loop)", {loop = true, loopdelay = 0.5}, function()
- print("Looping while toggle is ON")
- -- Looping code here; runs every 0.5 seconds while ON
- end)
- -- Slider (runs on value change)
- UILib:AddSlider("Slider Example", {min = 0, max = 100, default = 50}, function(value)
- print("Slider set to", value)
- -- Use 'value' here for slider changes
- end)
- -- Section 2
- UILib:AddSection("Example Section 2")
- -- Another slider example
- UILib:AddSlider("Example Slider", {min = 0, max = 200, default = 16}, function(value)
- print("Example Slider value:", value)
- -- Use slider value here
- end)
- -- Slider controlling JumpPower
- UILib:AddSlider("JumpPower", {min = 50, max = 200, default = 50}, function(value)
- local player = game.Players.LocalPlayer
- if player and player.Character and player.Character:FindFirstChild("Humanoid") then
- player.Character.Humanoid.JumpPower = value
- print("JumpPower set to", value)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement