Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by Error_IDK
- --Edited By Heavy_SAS4
- -- Version: 1
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Aimbot = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Toggle = Instance.new("TextButton")
- local Drag = Instance.new("UIDragDetector")
- local UICorner = Instance.new("UICorner")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- Aimbot.Name = "Aimbot"
- Aimbot.Parent = ScreenGui
- Aimbot.BackgroundColor3 = Color3.new(0.113725, 0.113725, 0.113725)
- Aimbot.Position = UDim2.new(0.0599842146, 0, 0.358722359, 0)
- Aimbot.Size = UDim2.new(0, 126, 0, 152)
- Title.Name = "Title"
- Title.Parent = Aimbot
- Title.BackgroundColor3 = Color3.new(0.435294, 0.117647, 0.117647)
- Title.Size = UDim2.new(0, 126, 0, 50)
- Title.Font = Enum.Font.SpecialElite
- Title.Text = "AIM.ASSIST"
- Title.TextColor3 = Color3.fromRGB(130, 130, 130)
- Title.TextSize = 13.300
- Title.TextScaled = true
- Toggle.Name = "Toggle"
- Toggle.Parent = Aimbot
- Toggle.BackgroundColor3 = Color3.fromRGB(52, 52, 39)
- Toggle.BorderSizePixel = 0
- Toggle.Position = UDim2.new(0, 0, 0.473684222, 0)
- Toggle.Size = UDim2.new(0, 126, 0, 50)
- Toggle.Font = Enum.Font.SpecialElite
- Toggle.Text = "Enable"
- Toggle.TextColor3 = Color3.fromRGB(117, 31, 31)
- Toggle.TextSize = 40.000
- Toggle.TextScaled = true
- Drag.Parent = Aimbot
- UICorner.Parent = Aimbot
- -- Scripts:
- local function PNHLOYF_fake_script() -- Toggle.LocalScript
- local script = Instance.new('LocalScript', Toggle)
- _G.aimbot = false
- local camera = game.Workspace.CurrentCamera
- local localplayer = game:GetService("Players").LocalPlayer
- script.Parent.MouseButton1Click:Connect(function()
- if _G.aimbot == false then
- _G.aimbot = true
- script.Parent.TextColor3 = Color3.fromRGB(81, 117, 31)
- script.Parent.Text = "Enabled"
- function closestplayer()
- local dist = math.huge -- math.huge means a really large number, 1M+.
- local target = nil --- nil means no value
- for i,v in pairs (game.Workspace.Zombies:GetChildren()) do
- if v ~= nil then
- if v and v:FindFirstChild("Head") and _G.aimbot and v.Zombie.Health > 0 then --- creating the checks
- local magnitude = (v.Head.Position - localplayer.Character.Head.Position).magnitude
- if magnitude < dist then
- dist = magnitude
- target = v
- end
- end
- end
- end
- return target
- end
- else
- _G.aimbot = false
- script.Parent.TextColor3 = Color3.fromRGB(117, 31, 31)
- script.Parent.Text = "Enable"
- end
- end)
- local settings = {
- keybind = Enum.UserInputType.MouseButton2
- }
- local UIS = game:GetService("UserInputService")
- local aiming = false --- this toggle will make it so we lock on to the person when we press our keybind
- UIS.InputBegan:Connect(function(inp)
- if inp.UserInputType == settings.keybind then
- aiming = true
- end
- end)
- UIS.InputEnded:Connect(function(inp)
- if inp.UserInputType == settings.keybind then ---- when we stop pressing the keybind it would unlock off the player
- aiming = false
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- if aiming and script.Parent.Text == "Enabled" then
- camera.CFrame = CFrame.new(camera.CFrame.Position,closestplayer().Head.Position) -- locks into the HEAD
- end
- end)
- end
- coroutine.wrap(PNHLOYF_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement