Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UI = game:GetObjects("rbxassetid://2485897094")[1]
- local UIS = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local Camera = workspace.CurrentCamera
- local CF = CFrame.new
- local V2 = Vector2.new
- local RunService = game:GetService("RunService")
- local MoveMouse = Input and Input.MoveMouse or mousemoverel
- local ScreenCenter = Camera.ViewportSize/2
- local TodaysCode = game:GetService("HttpService"):GenerateGUID()
- local OriginalDeltaSensitivity = UIS.MouseDeltaSensitivity
- local a = function()
- local Plrs = Players:GetPlayers()
- local Dist = 800
- local Head
- local TeamCheck = UI.TeamCheck.State.Text == "ON"
- for i = 1,#Plrs do
- local v = Plrs[i]
- local PlayerHead = v.Character and (v.Character:FindFirstChild("Head") or v.Character.PrimaryPart)
- if (v ~= Players.LocalPlayer and PlayerHead) and ((TeamCheck and v.TeamColor ~= Players.LocalPlayer.TeamColor) or (not TeamCheck)) then
- local Point,HeadVisible = Camera:WorldToViewportPoint(PlayerHead.Position)
- local Distance = (V2(Point.X,Point.Y) - ScreenCenter).Magnitude
- if Distance < Dist and HeadVisible then
- Dist = Distance
- Head = PlayerHead
- end
- end
- end
- return Head
- end
- local b = function(i,bool)
- i.Text = bool and "ON" or "OFF"
- i.TextColor3 = bool and Color3.new(0,1,0) or Color3.new(1,0,0)
- i.TextStrokeColor3 = i.TextColor3
- end
- for i,v in pairs(UI:GetChildren()) do
- if v.ClassName == "TextButton" and v:FindFirstChild("State") then
- if v.Name:find("Key",#v.Name-3) then
- v.MouseButton1Click:Connect(function()
- wait()
- v.State.Text = "Press any key..."
- end)
- else
- v.MouseButton1Click:Connect(function()
- b(v.State,v.State.Text == "OFF")
- end)
- end
- end
- end
- UI.Aimbotting.State:GetPropertyChangedSignal("Text"):Connect(function()
- if UI.Aimbotting.State.Text == "ON" then
- local Head = a()
- if Head then
- OriginalDeltaSensitivity = UIS.MouseDeltaSensitivity
- local Smoothness = 1 - (tonumber(UI.Smoothness.State.Text) or 0)/100
- if UI.MouseMoveMethod.State.Text == "ON" and MoveMouse then
- UIS.MouseDeltaSensitivity = Smoothness
- RunService:BindToRenderStep(TodaysCode,100000,function(d)
- local PointV3 = Camera:WorldToViewportPoint(Head.Position)
- local PointV2 = V2(PointV3.X,PointV3.Y) - ScreenCenter
- MoveMouse(PointV2.X,PointV2.Y)
- end)
- else
- RunService:BindToRenderStep(TodaysCode,100000,function(d)
- Camera.CFrame = Camera.CFrame:Lerp(CF(Camera.CFrame.Position,Head.Position),Smoothness)
- end)
- end
- end
- else
- RunService:UnbindFromRenderStep(TodaysCode)
- UIS.MouseDeltaSensitivity = OriginalDeltaSensitivity
- end
- end)
- UIS.InputBegan:Connect(function(Key, g)
- local Input = Key.KeyCode.Name ~= "Unknown" and Key.KeyCode.Name or Key.UserInputType.Name
- if UI.AimKey.State.Text == Input and UI.Functionality.State.Text == "ON" then
- b(UI.Aimbotting.State,UI.Aimbotting.State.Text == "OFF")
- end
- end)
- UIS.InputEnded:Connect(function(Key,g)
- local Input = Key.KeyCode.Name ~= "Unknown" and Key.KeyCode.Name or Key.UserInputType.Name
- if UI.AimKey.State.Text == Input and UI.AimKeyToggles.State.Text == "OFF" then
- b(UI.Aimbotting.State,false)
- elseif UI.FunctionalityKey.State.Text == Input and not g then
- b(UI.Functionality.State,UI.Functionality.State.Text == "OFF")
- end
- if UI.FunctionalityKey.State.Text == "Press any key..." then
- UI.FunctionalityKey.State.Text = Input
- elseif UI.AimKey.State.Text == "Press any key..." then
- UI.AimKey.State.Text = Input
- end
- end)
- UI.Parent = game.CoreGui:FindFirstChildWhichIsA("ScreenGui",true) or Instance.new("ScreenGui", game.CoreGui)
- UI.Close.MouseButton1Click:connect(function()
- UI.Visible = false
- wait(0.2)
- loadstring(game:HttpGet('https://pastebin.com/raw/RXJqKnie', true))()
- end)
- wait(.1)
- loadstring(game:HttpGet('https://pastebin.com/raw/siWuAwyZ', true))()
Advertisement
Add Comment
Please, Sign In to add comment