Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI_WIDTH = 400
- local GUI_HEIGHT = 400
- local HEADER_HEIGHT = 50
- local HEADER_COLOR = Color3.fromRGB(51, 51, 51)
- local HEADER_TEXT_COLOR = Color3.fromRGB(255, 255, 255)
- local GuiService = game:GetService("GuiService")
- local TweenService = game:GetService("TweenService")
- -- Check if the GUI already exists and delete it if it does
- local existingGui = game:GetService("CoreGui"):FindFirstChild("HelloWorldGui")
- if existingGui then
- existingGui:Destroy()
- end
- local gui = Instance.new("ScreenGui")
- gui.Name = "HelloWorldGui"
- gui.ResetOnSpawn = false
- gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- gui.Parent = game:GetService("CoreGui")
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, GUI_WIDTH, 0, GUI_HEIGHT)
- frame.Position = UDim2.new(0.5, -GUI_WIDTH / 2, 0.5, -GUI_HEIGHT / 2)
- frame.BackgroundTransparency = 0.5
- frame.BackgroundColor3 = Color3.new(1, 1, 1)
- frame.BorderSizePixel = 0
- frame.Active = true -- Enables mouse drag functionality
- frame.Draggable = true -- Makes the frame draggable
- frame.Parent = gui
- local header = Instance.new("Frame")
- header.Size = UDim2.new(1, 0, 0, HEADER_HEIGHT)
- header.BackgroundColor3 = HEADER_COLOR
- header.Parent = frame
- local headerLabel = Instance.new("TextLabel")
- headerLabel.Size = UDim2.new(1, -10, 1, 0)
- headerLabel.Position = UDim2.new(0, 5, 0, 0)
- headerLabel.BackgroundTransparency = 1
- headerLabel.Text = "A V.3 GUI"
- headerLabel.TextColor3 = HEADER_TEXT_COLOR
- headerLabel.Font = Enum.Font.SourceSansBold
- headerLabel.TextSize = 22
- headerLabel.TextXAlignment = Enum.TextXAlignment.Left
- headerLabel.Parent = header
- local textbox = Instance.new("TextBox")
- textbox.Size = UDim2.new(0, 50, 0, 50)
- textbox.Position = UDim2.new(0.5, 120, 0.5, -120)
- textbox.BackgroundTransparency = 0.5
- textbox.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- textbox.BorderSizePixel = 0
- textbox.Font = Enum.Font.SourceSansBold
- textbox.Text = "16"
- textbox.TextColor3 = Color3.fromRGB(0, 0, 0)
- textbox.TextSize = 18
- textbox.Parent = frame
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0, 200, 0, 50)
- button.Position = UDim2.new(0.5, -100, 0.5, -120)
- button.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- button.BorderSizePixel = 0
- button.Font = Enum.Font.SourceSansBold
- button.Text = "Click me for Walk Speed!"
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.TextSize = 18
- button.Parent = frame
- button.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = textbox.text
- end)
- local textbox2 = Instance.new("TextBox")
- textbox2.Size = UDim2.new(0, 50, 0, 50)
- textbox2.Position = UDim2.new(0.5, 120, 0.5, -65)
- textbox2.BackgroundTransparency = 0.5
- textbox2.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- textbox2.BorderSizePixel = 0
- textbox2.Font = Enum.Font.SourceSansBold
- textbox2.Text = "70"
- textbox2.TextColor3 = Color3.fromRGB(0, 0, 0)
- textbox2.TextSize = 18
- textbox2.Parent = frame
- local button2 = Instance.new("TextButton")
- button2.Size = UDim2.new(0, 200, 0, 50)
- button2.Position = UDim2.new(0.5, -100, 0.5, -65)
- button2.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- button2.BorderSizePixel = 0
- button2.Font = Enum.Font.SourceSansBold
- button2.Text = "Click me for Jump Height!"
- button2.TextColor3 = Color3.fromRGB(255, 255, 255)
- button2.TextSize = 18
- button2.Parent = frame
- button2.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = textbox2.text
- end)
- local button3 = Instance.new("TextButton")
- button3.Size = UDim2.new(0, 200, 0, 50)
- button3.Position = UDim2.new(0.5, -100, 0.5, -10)
- button3.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- button3.BorderSizePixel = 0
- button3.Font = Enum.Font.SourceSansBold
- button3.Text = "Click me to toggle Noclip!"
- button3.TextColor3 = Color3.fromRGB(255, 255, 255)
- button3.TextSize = 18
- button3.Parent = frame
- noclip = false
- game:GetService('RunService').Stepped:Connect (function()
- if noclip then
- button3.Text = "Noclip Toggled!"
- button3.BackgroundColor3 = Color3.new(0,255,0)
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- end
- end)
- button3.MouseButton1Click:Connect(function()
- noclip = not noclip
- if button3.Text == "Noclip Toggled!" then
- button3.Text = "Noclip Untoggled!"
- button3.BackgroundColor3 = Color3.new(255,0,0)
- game.Players.LocalPlayer.Character.Head.CanCollide = true
- game.Players.LocalPlayer.Character.Torso.CanCollide = true
- end
- end)
- local textbox3 = Instance.new("TextBox")
- textbox3.Size = UDim2.new(0, 50, 0, 50)
- textbox3.Position = UDim2.new(0.5, 120, 0.5, 45)
- textbox3.BackgroundTransparency = 0.5
- textbox3.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- textbox3.BorderSizePixel = 0
- textbox3.Font = Enum.Font.SourceSansBold
- textbox3.Text = "198"
- textbox3.TextColor3 = Color3.fromRGB(0, 0, 0)
- textbox3.TextSize = 18
- textbox3.Parent = frame
- local button4 = Instance.new("TextButton")
- button4.Size = UDim2.new(0, 200, 0, 50)
- button4.Position = UDim2.new(0.5, -100, 0.5, 45)
- button4.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- button4.BorderSizePixel = 0
- button4.Font = Enum.Font.SourceSansBold
- button4.Text = "Click me for Gravity!"
- button4.TextColor3 = Color3.fromRGB(255, 255, 255)
- button4.TextSize = 18
- button4.Parent = frame
- button4.MouseButton1Click:Connect(function()
- game.workspace.Gravity = textbox3.text
- end)
- local button5 = Instance.new("TextButton")
- button5.Size = UDim2.new(0, 200, 0, 50)
- button5.Position = UDim2.new(0.5, -100, 0.5, 100)
- button5.BackgroundColor3 = Color3.fromRGB(41, 127, 184)
- button5.BorderSizePixel = 0
- button5.Font = Enum.Font.SourceSansBold
- button5.Text = "Click me for Aimbot!"
- button5.TextColor3 = Color3.fromRGB(255, 255, 255)
- button5.TextSize = 18
- button5.Parent = frame
- button5.MouseButton1Click:Connect(function()
- local Camera = workspace.CurrentCamera
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- local Holding = false
- _G.AimbotEnabled = true
- _G.TeamCheck = true -- If set to true then the script would only lock your aim at enemy team members.
- _G.AimPart = "Torso" -- Where the aimbot script would lock at.
- _G.Sensitivity = 0 -- How many seconds it takes for the aimbot script to officially lock onto the target's aimpart.
- _G.CircleSides = 64 -- How many sides the FOV circle would have.
- _G.CircleColor = Color3.fromRGB(255, 255, 255) -- (RGB) Color that the FOV circle would appear as.
- _G.CircleTransparency = 0.7 -- Transparency of the circle.
- _G.CircleRadius = 150 -- The radius of the circle / FOV.
- _G.CircleFilled = false -- Determines whether or not the circle is filled.
- _G.CircleVisible = true -- Determines whether or not the circle is visible.
- _G.CircleThickness = 0 -- The thickness of the circle.
- local FOVCircle = Drawing.new("Circle")
- FOVCircle.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
- FOVCircle.Radius = _G.CircleRadius
- FOVCircle.Filled = _G.CircleFilled
- FOVCircle.Color = _G.CircleColor
- FOVCircle.Visible = _G.CircleVisible
- FOVCircle.Radius = _G.CircleRadius
- FOVCircle.Transparency = _G.CircleTransparency
- FOVCircle.NumSides = _G.CircleSides
- FOVCircle.Thickness = _G.CircleThickness
- local function GetClosestPlayer()
- local MaximumDistance = _G.CircleRadius
- local Target = nil
- for _, v in next, Players:GetPlayers() do
- if v.Name ~= LocalPlayer.Name then
- if _G.TeamCheck == true then
- if v.Team ~= LocalPlayer.Team then
- if v.Character ~= nil then
- if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
- if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
- local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
- if VectorDistance < MaximumDistance then
- Target = v
- end
- end
- end
- end
- end
- else
- if v.Character ~= nil then
- if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
- if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
- local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
- local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
- if VectorDistance < MaximumDistance then
- Target = v
- end
- end
- end
- end
- end
- end
- end
- return Target
- end
- UserInputService.InputBegan:Connect(function(Input)
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then
- Holding = true
- end
- end)
- UserInputService.InputEnded:Connect(function(Input)
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then
- Holding = false
- end
- end)
- RunService.RenderStepped:Connect(function()
- FOVCircle.Position = Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y)
- FOVCircle.Radius = _G.CircleRadius
- FOVCircle.Filled = _G.CircleFilled
- FOVCircle.Color = _G.CircleColor
- FOVCircle.Visible = _G.CircleVisible
- FOVCircle.Radius = _G.CircleRadius
- FOVCircle.Transparency = _G.CircleTransparency
- FOVCircle.NumSides = _G.CircleSides
- FOVCircle.Thickness = _G.CircleThickness
- if Holding == true and _G.AimbotEnabled == true then
- 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()
- end
- end)
- end)
- local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
- local startPos = UDim2.new(-1, -GUI_WIDTH / 2, 0.5, -GUI_HEIGHT / 2) --// Start position of the frame
- local endPos = UDim2.new(0.5, -GUI_WIDTH / 2, 0.5, -GUI_HEIGHT / 2) --// End position of the frame
- --// Set the starting position of the frame
- frame.Position = startPos
- --// Create the tween
- local tween = TweenService:Create(frame, tweenInfo, { Position = endPos })
- --// Open the frame
- GuiService:AddSelectionParent("GUI_TWEEN", frame) --// Disable controls while tweening
- tween:Play()
- tween.Completed:Wait() --// Wait for the tween to complete
- GuiService:RemoveSelectionGroup("GUI_TWEEN", frame) --// Re-enable controls
- local StarterGui = game:GetService("StarterGui")
- StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "Press V to toggle the gui on and off";
- Color = Color3.fromRGB(100,100,100);
- Font = Enum.Font.SourceSansBold;TextSize = 15
- })
- local toggle = true -- false is Off; true is On
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- if toggle == false then
- toggle = true
- frame.Visible = true -- INSERT Making GUI Visible
- else
- toggle = false
- frame.Visible = false -- INSERT making GUI Invisible
- end
- end
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.V)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement