Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- pcall(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/WvF4aN6G', true))()
- end)
- ]]--
- local library = loadstring(game:HttpGet(('https://pastebin.com/raw/FsJak6AT')))()
- local first_w = library:CreateWindow('Universal Aimbot!')
- local first_f = first_w:CreateFolder('Aimbot settings')
- local aimbot = false
- local accAimbot = false
- local toggleKey = 'MouseButton2'
- first_f:Toggle('Aimbot', function(a)
- accAimbot = a
- if not a then
- aimbot = false
- end
- end)
- local ffa = false
- local espStuff = false
- first_f:Toggle('FFA', function(a)
- ffa = a
- espStuff = a
- end)
- local targetPrt = "Head"
- first_f:Dropdown('Target part', {"Head", "HumanoidRootPart"}, function(a)
- targetPrt = a
- end)
- local toggleEsp = false
- local esp_f = first_w:CreateFolder('Esp settings')
- esp_f:Toggle('Esp', function(a)
- toggleEsp = a
- end)
- local debugMode = false
- local debug_f = first_w:CreateFolder('Debug stuff')
- debug_f:Toggle('Debug mode', function(a)
- debugMode = a
- end)
- local cc = game.workspace.CurrentCamera
- function pos(a)
- return cc:WorldToViewportPoint(a)
- end
- local mouse = game.Players.LocalPlayer:GetMouse()
- game:GetService("UserInputService").InputBegan:connect(function(a)
- if (a.UserInputType == Enum.UserInputType[toggleKey]) and accAimbot then
- warn("a")
- aimbot = true
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(a)
- if (a.UserInputType == Enum.UserInputType[toggleKey]) and accAimbot then
- warn("b")
- aimbot = false
- end
- end)
- function getClosestMouse(trg_part)
- local nearest = nil
- local last = math.huge
- for i,v in pairs(game.Players:GetPlayers()) do
- if v ~= game.Players.LocalPlayer and game.Players.LocalPlayer.Character and v.Character and v.Character:FindFirstChild(trg_part) and (v.TeamColor ~= game.Players.LocalPlayer.TeamColor or espStuff) then
- if game.Players.LocalPlayer.Character:FindFirstChild(trg_part) then
- local lmao = true
- if checkIfObscured then
- local ignoreList = {game.Players.LocalPlayer.Character, v.Character}
- local cast = {game.Players.LocalPlayer.Character[trg_part].Position, v.Character[trg_part].Position}
- local parts = cc:GetPartsObscuringTarget(cast, ignoreList)
- if #parts ~= 0 then
- lmao = false
- end
- end
- local ePos = pos(v.Character[trg_part].Position)
- local AccPos = Vector2.new(ePos.x, ePos.y)
- local mousePos = Vector2.new(cc.ViewportSize.x / 2, cc.ViewportSize.y / 2)
- local distance = (AccPos - mousePos).magnitude
- if distance < last and lmao then
- last = distance
- nearest = v
- end
- end
- end
- end
- if nearest ~= nil then
- if game.PlaceId == 292439477 then
- for i,v in pairs(game.workspace.Players:GetChildren()) do
- if v:FindFirstChild(nearest.Name) then
- return nearest
- end
- end
- else
- return nearest
- end
- end
- end
- game:GetService('RunService').Stepped:connect(function()
- if aimbot then
- if getClosestMouse(targetPrt) ~= nil and getClosestMouse(targetPrt).Character ~= nil then
- local move, vis = pos(getClosestMouse(targetPrt).Character[targetPrt].Position)
- if vis then
- mousemoverel((move.x - mouse.x) * 0.2, ((move.y * 0.93) - mouse.y) * 0.2)
- end
- end
- end
- end)
- local test = {}
- local linePlrs = {}
- local textPlrs = {}
- game:GetService("RunService").RenderStepped:connect(function()
- if toggleEsp then
- for i,v in pairs(game.Players:GetPlayers()) do
- if test[v.Name] == nil then
- table.insert(linePlrs, Drawing.new('Line'))
- table.insert(textPlrs, Drawing.new('Text'))
- test[v.Name] = true
- end
- if v.Character and v.Character:FindFirstChild("HumanoidRootPart") and test[v.Name] ~= nil and v ~= game.Players.LocalPlayer and (v.TeamColor ~= game.Players.LocalPlayer.TeamColor or ffa) then
- local testing = false
- local hum, vis = pos(v.Character.HumanoidRootPart.Position)
- linePlrs[i].From = Vector2.new(cc.ViewportSize.x / 2, cc.ViewportSize.y)
- linePlrs[i].To = Vector2.new(hum.x, hum.y)
- linePlrs[i].Thickness = 2
- textPlrs[i].Size = 20
- if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
- textPlrs[i].Text = tostring(math.floor((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
- end
- textPlrs[i].Position = Vector2.new(hum.x, hum.y + 30)
- if v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- linePlrs[i].Color = Color3.new(255,0,0)
- textPlrs[i].Color = Color3.new(255,0,0)
- else
- linePlrs[i].Color = Color3.new(0,128,0)
- textPlrs[i].Color = Color3.new(0,128,0)
- end
- if game.PlaceId ~= 292439477 then
- linePlrs[i].Visible = vis
- textPlrs[i].Visible = vis
- end
- if game.PlaceId == 292439477 then
- for i2,v2 in pairs(game.workspace.Players:GetChildren()) do
- if v2:FindFirstChild(v.Name) then
- testing = true
- end
- end
- if not testing or not vis then
- linePlrs[i].Visible = false
- textPlrs[i].Visible = false
- elseif testing and vis then
- linePlrs[i].Visible = true
- textPlrs[i].Visible = true
- end
- end
- elseif v.Character and not v.Character:FindFirstChild("HumanoidRootPart") then
- linePlrs[i].Visible = false
- textPlrs[i].Visible = false
- elseif not ffa then --(v.TeamColor ~= game.Players.LocalPlayer.TeamColor or ffa)
- linePlrs[i].Visible = false
- textPlrs[i].Visible = false
- end
- end
- else
- for i,v in pairs(linePlrs) do
- v.Visible = false
- end
- for i,v in pairs(textPlrs) do
- v.Visible = false
- end
- end
- end)
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Position = UDim2.new(0.717458367, 0, 0.128992632, 0)
- Frame.Size = UDim2.new(0, 401, 0, 140)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.Position = UDim2.new(0.0994343385, 0, 0.22857143, 0)
- TextLabel.Size = UDim2.new(0, 320, 0, 75)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- Frame.Visible = false
- local run = true
- function check(a)
- local newTab = {}
- for i,v in pairs(test) do
- table.insert(newTab, i)
- if i == a then
- run = false
- --print(i, table.find(newTab, a), '\n')
- linePlrs[table.find(newTab, a)]:Remove()
- textPlrs[table.find(newTab, a)]:Remove()
- table.remove(linePlrs, table.find(newTab, a))
- table.remove(textPlrs, table.find(newTab, a))
- table.remove(newTab, table.find(newTab, a))
- if debugMode then
- TextLabel.Text = a .. "'s tracer should've gone away"
- wait(1)
- Frame.Visible = false
- end
- run = true
- end
- end
- end
- game.Players.PlayerRemoving:connect(function(a)
- repeat wait() until run
- if debugMode then
- Frame.Visible = true
- TextLabel.Text = a.Name .. " Left"
- end
- warn(a.Name, ' THIS WAS CALLED FROM SCRIPT OK ', '\n', 'lol')
- wait(1)
- check(a.Name)
- end)
Advertisement
Advertisement