Features:
- Aimlock
- Press "q" to activeate/deactivate
Script:
local Settings = {rewrittenmain = {Enabled = true,Key = "q",DOT = true,AIRSHOT = true,NOTIF = true,AUTOPRED = false,FOV = math.huge,RESOVLER = false}}local SelectedPart = "HumanoidRootPart"local Prediction = truelocal PredictionValue = 0.146local AnchorCount = 0local MaxAnchor = 50local CC = game:GetService"Workspace".CurrentCameralocal Plr;local enabled = falselocal accomidationfactor = 0.139local mouse = game.Players.LocalPlayer:GetMouse()local placemarker = Instance.new("Part", game.Workspace)function makemarker(Parent, Adornee, Color, Size, Size2)local e = Instance.new("BillboardGui", Parent)e.Name = "PP"e.Adornee = Adorneee.Size = UDim2.new(Size, Size2, Size, Size2)e.AlwaysOnTop = Settings.rewrittenmain.DOTlocal a = Instance.new("Frame", e)if Settings.rewrittenmain.DOT == true thena.Size = UDim2.new(1, 0, 1, 0)elsea.Size = UDim2.new(0, 0, 0, 0)endif Settings.rewrittenmain.DOT == true thena.Transparency = 0a.BackgroundTransparency = 0elsea.Transparency = 1a.BackgroundTransparency = 1enda.BackgroundColor3 = Colorlocal g = Instance.new("UICorner", a)if Settings.rewrittenmain.DOT == false theng.CornerRadius = UDim.new(0, 0)elseg.CornerRadius = UDim.new(1, 1)endreturn(e)endlocal data = game.Players:GetPlayers()function noob(player)local characterrepeat wait() until player.Characterlocal handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(107, 184, 255), 0.3, 3)handler.Name = player.Nameplayer.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)spawn(function()while wait() doif player.Character thenendendend)endfor i = 1, #data doif data[i] ~= game.Players.LocalPlayer thennoob(data[i])endendgame.Players.PlayerAdded:connect(function(Player)noob(Player)end)spawn(function()placemarker.Anchored = trueplacemarker.CanCollide = falseif Settings.rewrittenmain.DOT == true thenplacemarker.Size = Vector3.new(8, 8, 8)elseplacemarker.Size = Vector3.new(0, 0, 0)endplacemarker.Transparency = 0.75if Settings.rewrittenmain.DOT thenmakemarker(placemarker, placemarker, Color3.fromRGB(232, 186, 200), 0.40, 0)endend)game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled thenif enabled == true thenenabled = falseif Settings.rewrittenmain.NOTIF == true thenPlr = getClosestPlayerToCursor()game.StarterGui:SetCore("SendNotification", {Title = "";Text = "Unlocked :)",Duration = 5})endelsePlr = getClosestPlayerToCursor()enabled = trueif Settings.rewrittenmain.NOTIF == true thengame.StarterGui:SetCore("SendNotification", {Title = "";Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName),Duration = 5})endendendend)function getClosestPlayerToCursor()local closestPlayerlocal shortestDistance = Settings.rewrittenmain.FOVfor i, v in pairs(game.Players:GetPlayers()) doif v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") thenlocal pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitudeif magnitude < shortestDistance thenclosestPlayer = vshortestDistance = magnitudeendendendreturn closestPlayerendlocal pingvalue = nil;local split = nil;local ping = nil;game:GetService"RunService".Stepped:connect(function()if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") thenplacemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))elseplacemarker.CFrame = CFrame.new(0, 9999, 0)endif Settings.rewrittenmain.AUTOPRED == true thenpingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()split = string.split(pingvalue,'(')ping = tonumber(split[1])if ping < 130 thenPredictionValue = 0.151elseif ping < 125 thenPredictionValue = 0.149elseif ping < 110 thenPredictionValue = 0.146elseif ping < 105 thenPredictionValue = 0.138elseif ping < 90 thenPredictionValue = 0.136elseif ping < 80 thenPredictionValue = 0.134elseif ping < 70 thenPredictionValue = 0.131elseif ping < 60 thenPredictionValue = 0.1229elseif ping < 50 thenPredictionValue = 0.1225elseif ping < 40 thenPredictionValue = 0.1256endendend)local mt = getrawmetatable(game)local old = mt.__namecallsetreadonly(mt, false)mt.__namecall = newcclosure(function(...)local args = {...}if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then-- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)--[[if Settings.rewrittenmain.AIRSHOT == true thenif game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall--// Airshotargs[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)elseargs[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)endelseargs[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)end]]if Prediction == true thenargs[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)elseargs[3] = Plr.Character[SelectedPart].Positionendreturn old(unpack(args))endreturn old(...)end)game:GetService("RunService").RenderStepped:Connect(function()if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.rewrittenmain.Enabled thenif Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil thenif game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall--// Airshot--// Anchor Checkif Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true thenAnchorCount = AnchorCount + 1if AnchorCount >= MaxAnchor thenPrediction = falsewait(2)AnchorCount = 0;endelsePrediction = trueAnchorCount = 0;endSelectedPart = "LeftFoot"else--// Anchor Checkif Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true thenAnchorCount = AnchorCount + 1if AnchorCount >= MaxAnchor thenPrediction = falsewait(2)AnchorCount = 0;endelsePrediction = trueAnchorCount = 0;endSelectedPart = "HumanoidRootPart"endelse--// Anchor Checkif Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true thenAnchorCount = AnchorCount + 1if AnchorCount >= MaxAnchor thenPrediction = falsewait(2)AnchorCount = 0;endelsePrediction = trueAnchorCount = 0;endSelectedPart = "HumanoidRootPart"endelseSelectedPart = "HumanoidRootPart"endend)
Post a Comment (0)