Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _ _ ___ _ _ __ __ _ _ _____ _____ _ _ _____ ___________ _____ ___ _
- | | | |/ _ \ | | | | \ \ / / | | | |_ _| |_ _| | | |_ _| _ | ___ \_ _|/ _ \ | |
- | | | / /_\ \| | | | \ V / | | | | | | | | | | | | | | | | | | |_/ / | | / /_\ \| |
- | |/\| | _ || | | | \ / | | | | | | | | | | | | | | | | | | / | | | _ || |
- \ /\ / | | || |____| |____| | | |_| |_| |_ | | | |_| | | | \ \_/ / |\ \ _| |_| | | || |____
- \/ \/\_| |_/\_____/\_____/\_/ \___/ \___/ \_/ \___/ \_/ \___/\_| \_|\___/\_| |_/\_____/
- I took this from this thread:
- https://v3rmillion.net/showthread.php?tid=952994
- go vouch, I only reposted so if it gets deleted you can find it here.
- The old UI uses "Window:" then Toggle or Button,
- the new one uses "w:" then Toggle or Button
- so if u get any errors because of that try using Window or w.
- ------------------------------------------------------------------------------------------------------------
- _ _ _
- | | | | | |
- | |__ _ _| |_| |_ ___ _ __
- | '_ \| | | | __| __/ _ \| '_ \
- | |_) | |_| | |_| || (_) | | | |
- |_.__/ \__,_|\__|\__\___/|_| |_|
- To add a button, very basically:
- local WhateverYouWantToNameThis = w:Button("Whatever You Want The Button To Say!", function()
- print("Whatever is between 'function()' and 'end)' will be ran when the button has been pressed")
- ------------------------------------------------------------------------------------------------------------
- _ _
- | | | |
- | |_ ___ __ _ __ _| | ___
- | __/ _ \ / _` |/ _` | |/ _ \
- | || (_) | (_| | (_| | | __/
- \__\___/ \__, |\__, |_|\___|
- __/ | __/ |
- |___/ |___/
- To add a Toggle, very basically, assuming you've got multiple toggles throughout your script:
- local Toggle = w:Toggle("Do whatever", {flag = "ThisNeedsToBeRemembered"})
- spawn(
- function() --Makes this a new loop within the running script so it doesn't interfere with the rest of the script
- while wait(1) do
- if w.flags.ThisNeedsToBeRemembered then
- print("Wow such stuff is happening, THIS IS ENABLED. Also, you can print the value (true / false) by doing:", w.flags.ThisNeedsToBeRemembered)
- end
- end
- end
- )
- ------------------------------------------------------------------------------------------------------------
- _ _ _
- | (_) | |
- ___| |_ __| | ___ _ __
- / __| | |/ _` |/ _ \ '__|
- \__ \ | | (_| | __/ |
- |___/_|_|\__,_|\___|_|
- Sliders are useful to give the user an easy, nice way to set a value of a "flag" EXAMPLE:
- local Slider = w:Slider("Walk Speed",
- {
- precise = true, --"false" will give you whole integers, "true" gives you 0.05's
- default = 50, --What you want the default value when the script is ran!
- min = 1, -- The lowest number that you can select as the user
- max = 1000, --The highest number you can select as the user
- flag = "SPEED" --Again, it's just a variable. In this case: w.flags.SPEED
- },
- function() --Makes whatever is below happen each time the slider changes it's value
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(w.flags.SPEED)
- end)
- ------------------------------------------------------------------------------------------------------------
- _ _ _ _
- | | | | ___ | | | |
- __| |_ __ ___ _ __ __| | _____ ___ __ ( _ ) ___ ___ __ _ _ __ ___| |__ | |__ _____ __
- / _` | '__/ _ \| '_ \ / _` |/ _ \ \ /\ / / '_ \ / _ \/\ / __|/ _ \/ _` | '__/ __| '_ \| '_ \ / _ \ \/ /
- | (_| | | | (_) | |_) | (_| | (_) \ V V /| | | | | (_> < \__ \ __/ (_| | | | (__| | | | |_) | (_) > <
- \__,_|_| \___/| .__/ \__,_|\___/ \_/\_/ |_| |_| \___/\/ |___/\___|\__,_|_| \___|_| |_|_.__/ \___/_/\_\
- | |
- |_|
- These are very similar, the only difference is the fact that a Dropdown gives you all of the items in the list given, this is better off used for a lower numbers of items in the list
- Searchboxes have all of the items in the list, the user will then searches for the item / name in the list, this is better for many items in a given list
- w:SearchBox("Epic Gamers!", { --You may put in "SearchBox" or "Dropdown"
- location = shared;
- flag = "memes";
- list = {
- "kiriot";
- "magikmanz";
- "gamer vision";
- "ironbrew";
- "WALLYYYY Heart";
- "firefox";
- "this is epic";
- }
- }, function()
- warn("Selected Epic Gamer: ", w.flags.memes) --This will print the one you select
- end)
- Okay, now there are 2 ways of entering stuff into the "SearchBox" or "Dropdown"
- You can either just put in the data, show above with the list.
- OR
- You can do list = NameOfTheTableYourDataIsInside
- That will allow you to have lots of data put into the table that is all shown inside of either options you'd like
- ------------------------------------------------------------------------------------------------------------
- _ _ _
- | | (_) | |
- | |__ _ _ __ __| |
- | '_ \| | '_ \ / _` |
- | |_) | | | | | (_| |
- |_.__/|_|_| |_|\__,_|
- Okay, finally we have Binds! This is used for when you'd rather have a button pressed for an action to happen compared to not having to select the option inside of the Gui itself
- Sometimes it may be hard to select the options within the game, example: When you quickly need to disable Aimbot as you're clearly cheating and are about to get banned inside of a FPS game!
- All key codes can be found at: https://developer.roblox.com/en-us/api-reference/property/InputObject/KeyCode under the Name section of the table
- w:Bind("Action to happen", {
- flag = "killbind";
- kbonly = true;
- default = Enum.KeyCode.RightAlt; --You select the key itself
- }, function()
- print("Key pressed") --Prints out when the button is pressed
- end)
- Wally's example:
- w:Bind("Kill Player", {
- flag = "killbind";
- kbonly = true;
- default = Enum.KeyCode.RightAlt;
- }, function()
- game.Players.LocalPlayer.Character:BreakJoints()
- end)
- ------------------------------------------------------------------------------------------------------------
- _ _
- | | | |
- ___ | |_| |__ ___ _ __
- / _ \| __| '_ \ / _ \ '__|
- | (_) | |_| | | | __/ |
- \___/ \__|_| |_|\___|_|
- So if you want to get the line under the header of the Window to be RAINBOW then just add this:
- library.options.underlinecolor = "rainbow"
- ------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment