BlinkingStars

Aimbot V2 GUI

Jun 6th, 2023
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.56 KB | Gaming | 0 0
  1. --// Cache
  2.  
  3. local loadstring, game, getgenv, setclipboard = loadstring, game, getgenv, setclipboard
  4.  
  5. --// Loaded check
  6.  
  7. if getgenv().Aimbot then return end
  8.  
  9. --// Load Aimbot V2 (Raw)
  10.  
  11. loadstring(game:HttpGet("https://raw.githubusercontent.com/Exunys/Aimbot-V2/main/Resources/Scripts/Raw%20Main.lua"))()
  12.  
  13. --// Variables
  14.  
  15. local Aimbot = getgenv().Aimbot
  16. local Settings, FOVSettings, Functions = Aimbot.Settings, Aimbot.FOVSettings, Aimbot.Functions
  17.  
  18. local Library = loadstring(game:GetObjects("rbxassetid://7657867786")[1].Source)() -- Pepsi's UI Library
  19.  
  20. local Parts = {"Head", "HumanoidRootPart", "Torso", "Left Arm", "Right Arm", "Left Leg", "Right Leg", "LeftHand", "RightHand", "LeftLowerArm", "RightLowerArm", "LeftUpperArm", "RightUpperArm", "LeftFoot", "LeftLowerLeg", "UpperTorso", "LeftUpperLeg", "RightFoot", "RightLowerLeg", "LowerTorso", "RightUpperLeg"}
  21.  
  22. --// Frame
  23.  
  24. Library.UnloadCallback = Functions.Exit
  25.  
  26. local MainFrame = Library:CreateWindow({
  27.     Name = "Aimbot V2",
  28.     Themeable = {
  29.         Image = "7059346386",
  30.         Info = "Made by Exunys\nPowered by Pepsi's UI Library",
  31.         Credit = false
  32.     },
  33.     Background = "",
  34.     Theme = [[{"__Designer.Colors.section":"ADC7FF","__Designer.Colors.topGradient":"1B242F","__Designer.Settings.ShowHideKey":"Enum.KeyCode.RightShift","__Designer.Colors.otherElementText":"54637D","__Designer.Colors.hoveredOptionBottom":"38667D","__Designer.Background.ImageAssetID":"","__Designer.Colors.unhoveredOptionTop":"407495","__Designer.Colors.innerBorder":"2C4168","__Designer.Colors.unselectedOption":"4E6EA0","__Designer.Background.UseBackgroundImage":true,"__Designer.Files.WorkspaceFile":"Aimbot V2","__Designer.Colors.main":"23A0FF","__Designer.Colors.outerBorder":"162943","__Designer.Background.ImageColor":"FFFFFF","__Designer.Colors.tabText":"C9DFF1","__Designer.Colors.elementBorder":"111D26","__Designer.Colors.sectionBackground":"0E141C","__Designer.Colors.selectedOption":"558AC2","__Designer.Colors.background":"11182A","__Designer.Colors.bottomGradient":"202B42","__Designer.Background.ImageTransparency":95,"__Designer.Colors.hoveredOptionTop":"4885A0","__Designer.Colors.elementText":"7692B8","__Designer.Colors.unhoveredOptionBottom":"5471C4"}]]
  35. })
  36.  
  37. --// Tabs
  38.  
  39. local SettingsTab = MainFrame:CreateTab({
  40.     Name = "Settings"
  41. })
  42.  
  43. local FOVSettingsTab = MainFrame:CreateTab({
  44.     Name = "FOV Settings"
  45. })
  46.  
  47. local FunctionsTab = MainFrame:CreateTab({
  48.     Name = "Functions"
  49. })
  50.  
  51. --// Settings - Sections
  52.  
  53. local Values = SettingsTab:CreateSection({
  54.     Name = "Values"
  55. })
  56.  
  57. local Checks = SettingsTab:CreateSection({
  58.     Name = "Checks"
  59. })
  60.  
  61. local ThirdPerson = SettingsTab:CreateSection({
  62.     Name = "Third Person"
  63. })
  64.  
  65. --// FOV Settings - Sections
  66.  
  67. local FOV_Values = FOVSettingsTab:CreateSection({
  68.     Name = "Values"
  69. })
  70.  
  71. local FOV_Appearance = FOVSettingsTab:CreateSection({
  72.     Name = "Appearance"
  73. })
  74.  
  75. --// Functions - Sections
  76.  
  77. local FunctionsSection = FunctionsTab:CreateSection({
  78.     Name = "Functions"
  79. })
  80.  
  81. --// Settings / Values
  82.  
  83. Values:AddToggle({
  84.     Name = "Enabled",
  85.     Value = Settings.Enabled,
  86.     Callback = function(New, Old)
  87.         Settings.Enabled = New
  88.     end
  89. }).Default = Settings.Enabled
  90.  
  91. Values:AddToggle({
  92.     Name = "Toggle",
  93.     Value = Settings.Toggle,
  94.     Callback = function(New, Old)
  95.         Settings.Toggle = New
  96.     end
  97. }).Default = Settings.Toggle
  98.  
  99. Settings.LockPart = Parts[1]; Values:AddDropdown({
  100.     Name = "Lock Part",
  101.     Value = Parts[1],
  102.     Callback = function(New, Old)
  103.         Settings.LockPart = New
  104.     end,
  105.     List = Parts,
  106.     Nothing = "Head"
  107. }).Default = Parts[1]
  108.  
  109. Values:AddTextbox({ -- Using a Textbox instead of a Keybind because the UI Library doesn't support Mouse inputs like Left Click / Right Click...
  110.     Name = "Hotkey",
  111.     Value = Settings.TriggerKey,
  112.     Callback = function(New, Old)
  113.         Settings.TriggerKey = New
  114.     end
  115. }).Default = Settings.TriggerKey
  116.  
  117. --[[
  118. Values:AddKeybind({
  119.     Name = "Hotkey",
  120.     Value = Settings.TriggerKey,
  121.     Callback = function(New, Old)
  122.         Settings.TriggerKey = stringmatch(tostring(New), "Enum%.[UserInputType]*[KeyCode]*%.(.+)")
  123.     end,
  124. }).Default = Settings.TriggerKey
  125. ]]
  126.  
  127. Values:AddSlider({
  128.     Name = "Sensitivity",
  129.     Value = Settings.Sensitivity,
  130.     Callback = function(New, Old)
  131.         Settings.Sensitivity = New
  132.     end,
  133.     Min = 0,
  134.     Max = 1,
  135.     Decimals = 2
  136. }).Default = Settings.Sensitivity
  137.  
  138. --// Settings / Checks
  139.  
  140. Checks:AddToggle({
  141.     Name = "Team Check",
  142.     Value = Settings.TeamCheck,
  143.     Callback = function(New, Old)
  144.         Settings.TeamCheck = New
  145.     end
  146. }).Default = Settings.TeamCheck
  147.  
  148. Checks:AddToggle({
  149.     Name = "Wall Check",
  150.     Value = Settings.WallCheck,
  151.     Callback = function(New, Old)
  152.         Settings.WallCheck = New
  153.     end
  154. }).Default = Settings.WallCheck
  155.  
  156. Checks:AddToggle({
  157.     Name = "Alive Check",
  158.     Value = Settings.AliveCheck,
  159.     Callback = function(New, Old)
  160.         Settings.AliveCheck = New
  161.     end
  162. }).Default = Settings.AliveCheck
  163.  
  164. --// Settings / ThirdPerson
  165.  
  166. ThirdPerson:AddToggle({
  167.     Name = "Enable Third Person",
  168.     Value = Settings.ThirdPerson,
  169.     Callback = function(New, Old)
  170.         Settings.ThirdPerson = New
  171.     end
  172. }).Default = Settings.ThirdPerson
  173.  
  174. ThirdPerson:AddSlider({
  175.     Name = "Sensitivity",
  176.     Value = Settings.ThirdPersonSensitivity,
  177.     Callback = function(New, Old)
  178.         Settings.ThirdPersonSensitivity = New
  179.     end,
  180.     Min = 0.1,
  181.     Max = 5,
  182.     Decimals = 1
  183. }).Default = Settings.ThirdPersonSensitivity
  184.  
  185. --// FOV Settings / Values
  186.  
  187. FOV_Values:AddToggle({
  188.     Name = "Enabled",
  189.     Value = FOVSettings.Enabled,
  190.     Callback = function(New, Old)
  191.         FOVSettings.Enabled = New
  192.     end
  193. }).Default = FOVSettings.Enabled
  194.  
  195. FOV_Values:AddToggle({
  196.     Name = "Visible",
  197.     Value = FOVSettings.Visible,
  198.     Callback = function(New, Old)
  199.         FOVSettings.Visible = New
  200.     end
  201. }).Default = FOVSettings.Visible
  202.  
  203. FOV_Values:AddSlider({
  204.     Name = "Amount",
  205.     Value = FOVSettings.Amount,
  206.     Callback = function(New, Old)
  207.         FOVSettings.Amount = New
  208.     end,
  209.     Min = 10,
  210.     Max = 300
  211. }).Default = FOVSettings.Amount
  212.  
  213. --// FOV Settings / Appearance
  214.  
  215. FOV_Appearance:AddToggle({
  216.     Name = "Filled",
  217.     Value = FOVSettings.Filled,
  218.     Callback = function(New, Old)
  219.         FOVSettings.Filled = New
  220.     end
  221. }).Default = FOVSettings.Filled
  222.  
  223. FOV_Appearance:AddSlider({
  224.     Name = "Transparency",
  225.     Value = FOVSettings.Transparency,
  226.     Callback = function(New, Old)
  227.         FOVSettings.Transparency = New
  228.     end,
  229.     Min = 0,
  230.     Max = 1,
  231.     Decimal = 1
  232. }).Default = FOVSettings.Transparency
  233.  
  234. FOV_Appearance:AddSlider({
  235.     Name = "Sides",
  236.     Value = FOVSettings.Sides,
  237.     Callback = function(New, Old)
  238.         FOVSettings.Sides = New
  239.     end,
  240.     Min = 3,
  241.     Max = 60
  242. }).Default = FOVSettings.Sides
  243.  
  244. FOV_Appearance:AddSlider({
  245.     Name = "Thickness",
  246.     Value = FOVSettings.Thickness,
  247.     Callback = function(New, Old)
  248.         FOVSettings.Thickness = New
  249.     end,
  250.     Min = 1,
  251.     Max = 50
  252. }).Default = FOVSettings.Thickness
  253.  
  254. FOV_Appearance:AddColorpicker({
  255.     Name = "Color",
  256.     Value = FOVSettings.Color,
  257.     Callback = function(New, Old)
  258.         FOVSettings.Color = New
  259.     end
  260. }).Default = FOVSettings.Color
  261.  
  262. FOV_Appearance:AddColorpicker({
  263.     Name = "Locked Color",
  264.     Value = FOVSettings.LockedColor,
  265.     Callback = function(New, Old)
  266.         FOVSettings.LockedColor = New
  267.     end
  268. }).Default = FOVSettings.LockedColor
  269.  
  270. --// Functions / Functions
  271.  
  272. FunctionsSection:AddButton({
  273.     Name = "Reset Settings",
  274.     Callback = function()
  275.         Functions.ResetSettings()
  276.         Library.ResetAll()
  277.     end
  278. })
  279.  
  280. FunctionsSection:AddButton({
  281.     Name = "Restart",
  282.     Callback = Functions.Restart
  283. })
  284.  
  285. FunctionsSection:AddButton({
  286.     Name = "Exit",
  287.     Callback = function()
  288.         Functions:Exit()
  289.         Library.Unload()
  290.     end
  291. })
  292.  
  293. FunctionsSection:AddButton({
  294.     Name = "Copy Script Page",
  295.     Callback = function()
  296.         setclipboard("https://github.com/Exunys/Aimbot-V2")
  297.     end
  298. })
Tags: Roblox lua
Add Comment
Please, Sign In to add comment