Advertisement
HiDad910

A V.3

Apr 16th, 2023 (edited)
998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.42 KB | None | 0 0
  1. local GUI_WIDTH = 400
  2. local GUI_HEIGHT = 400
  3. local HEADER_HEIGHT = 50
  4. local HEADER_COLOR = Color3.fromRGB(51, 51, 51)
  5. local HEADER_TEXT_COLOR = Color3.fromRGB(255, 255, 255)
  6. local GuiService = game:GetService("GuiService")
  7. local TweenService = game:GetService("TweenService")
  8.  
  9. -- Check if the GUI already exists and delete it if it does
  10. local existingGui = game:GetService("CoreGui"):FindFirstChild("HelloWorldGui")
  11. if existingGui then
  12.     existingGui:Destroy()
  13. end
  14.  
  15. local gui = Instance.new("ScreenGui")
  16. gui.Name = "HelloWorldGui"
  17. gui.ResetOnSpawn = false
  18. gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19. gui.Parent = game:GetService("CoreGui")
  20.  
  21. local frame = Instance.new("Frame")
  22. frame.Size = UDim2.new(0, GUI_WIDTH, 0, GUI_HEIGHT)
  23. frame.Position = UDim2.new(0.5, -GUI_WIDTH / 2, 0.5, -GUI_HEIGHT / 2)
  24. frame.BackgroundTransparency = 0.5
  25. frame.BackgroundColor3 = Color3.new(1, 1, 1)
  26. frame.BorderSizePixel = 0
  27. frame.Active = true -- Enables mouse drag functionality
  28. frame.Draggable = true -- Makes the frame draggable
  29. frame.Parent = gui
  30.  
  31. local header = Instance.new("Frame")
  32. header.Size = UDim2.new(1, 0, 0, HEADER_HEIGHT)
  33. header.BackgroundColor3 = HEADER_COLOR
  34. header.Parent = frame
  35.  
  36. local headerLabel = Instance.new("TextLabel")
  37. headerLabel.Size = UDim2.new(1, -10, 1, 0)
  38. headerLabel.Position = UDim2.new(0, 5, 0, 0)
  39. headerLabel.BackgroundTransparency = 1
  40. headerLabel.Text = "A V.3 GUI"
  41. headerLabel.TextColor3 = HEADER_TEXT_COLOR
  42. headerLabel.Font = Enum.Font.SourceSansBold
  43. headerLabel.TextSize = 22
  44. headerLabel.TextXAlignment = Enum.TextXAlignment.Left
  45. headerLabel.Parent = header
  46.  
  47. local textbox = Instance.new("TextBox")
  48. textbox.Size = UDim2.new(0, 50, 0, 50)
  49. textbox.Position = UDim2.new(0.5, 120, 0.5, -120)
  50. textbox.BackgroundTransparency = 0.5
  51. textbox.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  52. textbox.BorderSizePixel = 0
  53. textbox.Font = Enum.Font.SourceSansBold
  54. textbox.Text = "16"
  55. textbox.TextColor3 = Color3.fromRGB(0, 0, 0)
  56. textbox.TextSize = 18
  57. textbox.Parent = frame
  58.  
  59.  
  60. local button = Instance.new("TextButton")
  61. button.Size = UDim2.new(0, 200, 0, 50)
  62. button.Position = UDim2.new(0.5, -100, 0.5, -120)
  63. button.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  64. button.BorderSizePixel = 0
  65. button.Font = Enum.Font.SourceSansBold
  66. button.Text = "Click me for Walk Speed!"
  67. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. button.TextSize = 18
  69. button.Parent = frame
  70.  
  71. button.MouseButton1Click:Connect(function()
  72.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = textbox.text
  73. end)
  74.  
  75.  
  76. local textbox2 = Instance.new("TextBox")
  77. textbox2.Size = UDim2.new(0, 50, 0, 50)
  78. textbox2.Position = UDim2.new(0.5, 120, 0.5, -65)
  79. textbox2.BackgroundTransparency = 0.5
  80. textbox2.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  81. textbox2.BorderSizePixel = 0
  82. textbox2.Font = Enum.Font.SourceSansBold
  83. textbox2.Text = "70"
  84. textbox2.TextColor3 = Color3.fromRGB(0, 0, 0)
  85. textbox2.TextSize = 18
  86. textbox2.Parent = frame
  87.  
  88. local button2 = Instance.new("TextButton")
  89. button2.Size = UDim2.new(0, 200, 0, 50)
  90. button2.Position = UDim2.new(0.5, -100, 0.5, -65)
  91. button2.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  92. button2.BorderSizePixel = 0
  93. button2.Font = Enum.Font.SourceSansBold
  94. button2.Text = "Click me for Jump Height!"
  95. button2.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. button2.TextSize = 18
  97. button2.Parent = frame
  98.  
  99. button2.MouseButton1Click:Connect(function()
  100.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = textbox2.text
  101. end)
  102.  
  103. local button3 = Instance.new("TextButton")
  104. button3.Size = UDim2.new(0, 200, 0, 50)
  105. button3.Position = UDim2.new(0.5, -100, 0.5, -10)
  106. button3.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  107. button3.BorderSizePixel = 0
  108. button3.Font = Enum.Font.SourceSansBold
  109. button3.Text = "Click me to toggle Noclip!"
  110. button3.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. button3.TextSize = 18
  112. button3.Parent = frame
  113.  
  114. noclip = false
  115. game:GetService('RunService').Stepped:Connect (function()
  116.     if noclip then
  117.         button3.Text = "Noclip Toggled!"
  118.         button3.BackgroundColor3 = Color3.new(0,255,0)
  119.         game.Players.LocalPlayer.Character.Head.CanCollide = false
  120.         game.Players.LocalPlayer.Character.Torso.CanCollide = false
  121.     end
  122. end)
  123. button3.MouseButton1Click:Connect(function()
  124.     noclip = not noclip
  125.     if button3.Text == "Noclip Toggled!" then
  126.         button3.Text = "Noclip Untoggled!"
  127.         button3.BackgroundColor3 = Color3.new(255,0,0)
  128.         game.Players.LocalPlayer.Character.Head.CanCollide = true
  129.         game.Players.LocalPlayer.Character.Torso.CanCollide = true
  130.     end
  131. end)
  132.  
  133.  
  134. local textbox3 = Instance.new("TextBox")
  135. textbox3.Size = UDim2.new(0, 50, 0, 50)
  136. textbox3.Position = UDim2.new(0.5, 120, 0.5, 45)
  137. textbox3.BackgroundTransparency = 0.5
  138. textbox3.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  139. textbox3.BorderSizePixel = 0
  140. textbox3.Font = Enum.Font.SourceSansBold
  141. textbox3.Text = "198"
  142. textbox3.TextColor3 = Color3.fromRGB(0, 0, 0)
  143. textbox3.TextSize = 18
  144. textbox3.Parent = frame
  145.  
  146. local button4 = Instance.new("TextButton")
  147. button4.Size = UDim2.new(0, 200, 0, 50)
  148. button4.Position = UDim2.new(0.5, -100, 0.5, 45)
  149. button4.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  150. button4.BorderSizePixel = 0
  151. button4.Font = Enum.Font.SourceSansBold
  152. button4.Text = "Click me for Gravity!"
  153. button4.TextColor3 = Color3.fromRGB(255, 255, 255)
  154. button4.TextSize = 18
  155. button4.Parent = frame
  156.  
  157. button4.MouseButton1Click:Connect(function()
  158.     game.workspace.Gravity = textbox3.text
  159. end)
  160.  
  161. local button5 = Instance.new("TextButton")
  162. button5.Size = UDim2.new(0, 200, 0, 50)
  163. button5.Position = UDim2.new(0.5, -100, 0.5, 100)
  164. button5.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
  165. button5.BorderSizePixel = 0
  166. button5.Font = Enum.Font.SourceSansBold
  167. button5.Text = "Click me for Aimbot!"
  168. button5.TextColor3 = Color3.fromRGB(255, 255, 255)
  169. button5.TextSize = 18
  170. button5.Parent = frame
  171.  
  172. button5.MouseButton1Click:Connect(function()
  173. local Camera = workspace.CurrentCamera
  174. local Players = game:GetService("Players")
  175. local RunService = game:GetService("RunService")
  176. local UserInputService = game:GetService("UserInputService")
  177. local TweenService = game:GetService("TweenService")
  178. local LocalPlayer = Players.LocalPlayer
  179. local Holding = false
  180.  
  181. _G.AimbotEnabled = true
  182. _G.TeamCheck = true -- If set to true then the script would only lock your aim at enemy team members.
  183. _G.AimPart = "Torso" -- Where the aimbot script would lock at.
  184. _G.Sensitivity = 0 -- How many seconds it takes for the aimbot script to officially lock onto the target's aimpart.
  185.  
  186. _G.CircleSides = 64 -- How many sides the FOV circle would have.
  187. _G.CircleColor = Color3.fromRGB(255, 255, 255) -- (RGB) Color that the FOV circle would appear as.
  188. _G.CircleTransparency = 0.7 -- Transparency of the circle.
  189. _G.CircleRadius = 150 -- The radius of the circle / FOV.
  190. _G.CircleFilled = false -- Determines whether or not the circle is filled.
  191. _G.CircleVisible = true -- Determines whether or not the circle is visible.
  192. _G.CircleThickness = 0 -- The thickness of the circle.
  193.  
  194. local FOVCircle = Drawing.new("Circle")
  195. FOVCircle.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  196. FOVCircle.Radius = _G.CircleRadius
  197. FOVCircle.Filled = _G.CircleFilled
  198. FOVCircle.Color = _G.CircleColor
  199. FOVCircle.Visible = _G.CircleVisible
  200. FOVCircle.Radius = _G.CircleRadius
  201. FOVCircle.Transparency = _G.CircleTransparency
  202. FOVCircle.NumSides = _G.CircleSides
  203. FOVCircle.Thickness = _G.CircleThickness
  204.  
  205. local function GetClosestPlayer()
  206.     local MaximumDistance = _G.CircleRadius
  207.     local Target = nil
  208.  
  209.     for _, v in next, Players:GetPlayers() do
  210.         if v.Name ~= LocalPlayer.Name then
  211.             if _G.TeamCheck == true then
  212.                 if v.Team ~= LocalPlayer.Team then
  213.                     if v.Character ~= nil then
  214.                         if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
  215.                             if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  216.                                 local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
  217.                                 local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  218.                                
  219.                                 if VectorDistance < MaximumDistance then
  220.                                     Target = v
  221.                                 end
  222.                             end
  223.                         end
  224.                     end
  225.                 end
  226.             else
  227.                 if v.Character ~= nil then
  228.                     if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
  229.                         if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  230.                             local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
  231.                             local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  232.                            
  233.                             if VectorDistance < MaximumDistance then
  234.                                 Target = v
  235.                             end
  236.                         end
  237.                     end
  238.                 end
  239.             end
  240.         end
  241.     end
  242.  
  243.     return Target
  244. end
  245.  
  246. UserInputService.InputBegan:Connect(function(Input)
  247.     if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  248.         Holding = true
  249.     end
  250. end)
  251.  
  252. UserInputService.InputEnded:Connect(function(Input)
  253.     if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  254.         Holding = false
  255.     end
  256. end)
  257.  
  258. RunService.RenderStepped:Connect(function()
  259.     FOVCircle.Position = Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y)
  260.     FOVCircle.Radius = _G.CircleRadius
  261.     FOVCircle.Filled = _G.CircleFilled
  262.     FOVCircle.Color = _G.CircleColor
  263.     FOVCircle.Visible = _G.CircleVisible
  264.     FOVCircle.Radius = _G.CircleRadius
  265.     FOVCircle.Transparency = _G.CircleTransparency
  266.     FOVCircle.NumSides = _G.CircleSides
  267.     FOVCircle.Thickness = _G.CircleThickness
  268.  
  269.     if Holding == true and _G.AimbotEnabled == true then
  270.         TweenService:Create(Camera, TweenInfo.new(_G.Sensitivity, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = CFrame.new(Camera.CFrame.Position, GetClosestPlayer().Character[_G.AimPart].Position)}):Play()
  271.     end
  272. end)
  273.  
  274.  
  275. end)
  276.  
  277.  
  278. local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
  279. local startPos = UDim2.new(-1, -GUI_WIDTH / 2, 0.5, -GUI_HEIGHT / 2) --// Start position of the frame
  280. local endPos = UDim2.new(0.5, -GUI_WIDTH / 2, 0.5, -GUI_HEIGHT / 2) --// End position of the frame
  281.  
  282. --// Set the starting position of the frame
  283. frame.Position = startPos
  284.  
  285. --// Create the tween
  286. local tween = TweenService:Create(frame, tweenInfo, { Position = endPos })
  287.  
  288. --// Open the frame
  289. GuiService:AddSelectionParent("GUI_TWEEN", frame) --// Disable controls while tweening
  290. tween:Play()
  291. tween.Completed:Wait() --// Wait for the tween to complete
  292. GuiService:RemoveSelectionGroup("GUI_TWEEN", frame) --// Re-enable controls
  293.  
  294.  
  295. local StarterGui = game:GetService("StarterGui")
  296. StarterGui:SetCore("ChatMakeSystemMessage", {
  297.     Text = "Press V to toggle the gui on and off";
  298.     Color = Color3.fromRGB(100,100,100);
  299.     Font = Enum.Font.SourceSansBold;TextSize = 15
  300. })
  301.  
  302. local toggle = true -- false is Off; true is On
  303.  
  304.  
  305. function onKeyPress(actionName, userInputState, inputObject)
  306.     if userInputState == Enum.UserInputState.Begin then
  307.  
  308.         if toggle == false then
  309.             toggle = true
  310.             frame.Visible = true -- INSERT Making GUI Visible
  311.         else
  312.             toggle = false
  313.             frame.Visible = false -- INSERT making GUI Invisible
  314.         end
  315.     end
  316. end
  317.  
  318. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.V)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement