Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by ilikelimeclips2
- original pastebin is: https://pastebin.com/j3uXPPHG
- ]]
- -- Instances: 35 | Scripts: 5 | Modules: 0 | Tags: 0
- local G2L = {};
- -- StarterGui.Button
- G2L["1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
- G2L["1"]["Name"] = [[Button]];
- G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
- G2L["1"]["ResetOnSpawn"] = false;
- -- StarterGui.Button.Home
- G2L["2"] = Instance.new("ScreenGui", G2L["1"]);
- G2L["2"]["Name"] = [[Home]];
- G2L["2"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
- G2L["2"]["ResetOnSpawn"] = false;
- -- StarterGui.Button.Home.Frame
- G2L["3"] = Instance.new("Frame", G2L["2"]);
- G2L["3"]["BorderSizePixel"] = 0;
- G2L["3"]["BackgroundColor3"] = Color3.fromRGB(76, 94, 255);
- G2L["3"]["Size"] = UDim2.new(0, 282, 0, 294);
- G2L["3"]["Position"] = UDim2.new(0.35675, 0, 0.27069, 0);
- G2L["3"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["3"]["BackgroundTransparency"] = 0.7;
- -- StarterGui.Button.Home.Frame.b
- G2L["4"] = Instance.new("TextButton", G2L["3"]);
- G2L["4"]["TextWrapped"] = true;
- G2L["4"]["BorderSizePixel"] = 0;
- G2L["4"]["TextSize"] = 31;
- G2L["4"]["TextColor3"] = Color3.fromRGB(178, 178, 178);
- G2L["4"]["BackgroundColor3"] = Color3.fromRGB(95, 95, 95);
- G2L["4"]["FontFace"] = Font.new([[rbxasset://fonts/families/FredokaOne.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["4"]["Size"] = UDim2.new(0, 265, 0, 50);
- G2L["4"]["BackgroundTransparency"] = 0.35;
- G2L["4"]["Name"] = [[b]];
- G2L["4"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["4"]["Text"] = [[SPEED]];
- G2L["4"]["Position"] = UDim2.new(0.02694, 0, 0.72391, 0);
- -- StarterGui.Button.Home.Frame.b.UICorner
- G2L["5"] = Instance.new("UICorner", G2L["4"]);
- -- StarterGui.Button.Home.Frame.c
- G2L["6"] = Instance.new("TextButton", G2L["3"]);
- G2L["6"]["TextWrapped"] = true;
- G2L["6"]["BorderSizePixel"] = 0;
- G2L["6"]["TextSize"] = 31;
- G2L["6"]["TextColor3"] = Color3.fromRGB(178, 178, 178);
- G2L["6"]["BackgroundColor3"] = Color3.fromRGB(95, 95, 95);
- G2L["6"]["FontFace"] = Font.new([[rbxasset://fonts/families/FredokaOne.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["6"]["Size"] = UDim2.new(0, 265, 0, 50);
- G2L["6"]["BackgroundTransparency"] = 0.35;
- G2L["6"]["Name"] = [[c]];
- G2L["6"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["6"]["Text"] = [[FLY]];
- G2L["6"]["Position"] = UDim2.new(0.02694, 0, 0.53166, 0);
- -- StarterGui.Button.Home.Frame.c.UICorner
- G2L["7"] = Instance.new("UICorner", G2L["6"]);
- -- StarterGui.Button.Home.Frame.d
- G2L["8"] = Instance.new("TextButton", G2L["3"]);
- G2L["8"]["TextWrapped"] = true;
- G2L["8"]["BorderSizePixel"] = 0;
- G2L["8"]["TextSize"] = 31;
- G2L["8"]["TextColor3"] = Color3.fromRGB(178, 178, 178);
- G2L["8"]["BackgroundColor3"] = Color3.fromRGB(95, 95, 95);
- G2L["8"]["FontFace"] = Font.new([[rbxasset://fonts/families/FredokaOne.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["8"]["Size"] = UDim2.new(0, 265, 0, 50);
- G2L["8"]["BackgroundTransparency"] = 0.35;
- G2L["8"]["Name"] = [[d]];
- G2L["8"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["8"]["Text"] = [[GOD + INFJUMP]];
- G2L["8"]["Position"] = UDim2.new(0.02694, 0, 0.3406, 0);
- -- StarterGui.Button.Home.Frame.d.UICorner
- G2L["9"] = Instance.new("UICorner", G2L["8"]);
- -- StarterGui.Button.Home.Frame.TextLabel
- G2L["a"] = Instance.new("TextLabel", G2L["3"]);
- G2L["a"]["TextWrapped"] = true;
- G2L["a"]["BorderSizePixel"] = 0;
- G2L["a"]["TextScaled"] = true;
- G2L["a"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
- G2L["a"]["TextSize"] = 30;
- G2L["a"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["a"]["TextColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["a"]["BackgroundTransparency"] = 1;
- G2L["a"]["Size"] = UDim2.new(0, 291, 0, 32);
- G2L["a"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["a"]["Text"] = [[OMAX HUB]];
- -- StarterGui.Button.Home.Frame.a
- G2L["b"] = Instance.new("TextButton", G2L["3"]);
- G2L["b"]["TextWrapped"] = true;
- G2L["b"]["BorderSizePixel"] = 0;
- G2L["b"]["TextSize"] = 31;
- G2L["b"]["TextColor3"] = Color3.fromRGB(178, 178, 178);
- G2L["b"]["BackgroundColor3"] = Color3.fromRGB(95, 95, 95);
- G2L["b"]["FontFace"] = Font.new([[rbxasset://fonts/families/FredokaOne.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["b"]["Size"] = UDim2.new(0, 265, 0, 50);
- G2L["b"]["BackgroundTransparency"] = 0.35;
- G2L["b"]["Name"] = [[a]];
- G2L["b"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["b"]["Text"] = [[AIMBOT]];
- G2L["b"]["Position"] = UDim2.new(0.02694, 0, 0.14879, 0);
- -- StarterGui.Button.Home.Frame.a.UICorner
- G2L["c"] = Instance.new("UICorner", G2L["b"]);
- -- StarterGui.Button.Home.Frame.UICorner
- G2L["d"] = Instance.new("UICorner", G2L["3"]);
- G2L["d"]["CornerRadius"] = UDim.new(0, 14);
- -- StarterGui.Button.Home.Frame.TextLabel
- G2L["e"] = Instance.new("TextLabel", G2L["3"]);
- G2L["e"]["BorderSizePixel"] = 0;
- G2L["e"]["TextTransparency"] = 0.47;
- G2L["e"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 68);
- G2L["e"]["TextSize"] = 14;
- G2L["e"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["e"]["TextColor3"] = Color3.fromRGB(253, 255, 54);
- G2L["e"]["BackgroundTransparency"] = 1;
- G2L["e"]["Size"] = UDim2.new(0, 200, 0, 24);
- G2L["e"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["e"]["Text"] = [[Made only by ilikelimeclips2]];
- G2L["e"]["Position"] = UDim2.new(0.14184, 0, 0.91837, 0);
- -- StarterGui.Button.Home.Frame.TextLabel.UIStroke
- G2L["f"] = Instance.new("UIStroke", G2L["e"]);
- G2L["f"]["Transparency"] = 0.55;
- -- StarterGui.Button.Home.Frame.UIDrag
- G2L["10"] = Instance.new("LocalScript", G2L["3"]);
- G2L["10"]["Name"] = [[UIDrag]];
- -- StarterGui.Button.Button
- G2L["11"] = Instance.new("TextButton", G2L["1"]);
- G2L["11"]["TextWrapped"] = true;
- G2L["11"]["BorderSizePixel"] = 0;
- G2L["11"]["TextSize"] = 14;
- G2L["11"]["TextColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["11"]["BackgroundColor3"] = Color3.fromRGB(90, 120, 255);
- G2L["11"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
- G2L["11"]["Size"] = UDim2.new(0, 72, 0, 72);
- G2L["11"]["BackgroundTransparency"] = 0.8;
- G2L["11"]["Name"] = [[Button]];
- G2L["11"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["11"]["Text"] = [[]];
- G2L["11"]["Position"] = UDim2.new(0, 0, 0.88725, 0);
- -- StarterGui.Button.Button.TextLabel
- G2L["12"] = Instance.new("TextLabel", G2L["11"]);
- G2L["12"]["TextWrapped"] = true;
- G2L["12"]["BorderSizePixel"] = 0;
- G2L["12"]["TextTransparency"] = 0.58;
- G2L["12"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
- G2L["12"]["TextSize"] = 100;
- G2L["12"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["12"]["TextColor3"] = Color3.fromRGB(69, 72, 126);
- G2L["12"]["BackgroundTransparency"] = 1;
- G2L["12"]["Size"] = UDim2.new(0, 72, 0, 72);
- G2L["12"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["12"]["Text"] = [[O]];
- -- StarterGui.Button.Button.UICorner
- G2L["13"] = Instance.new("UICorner", G2L["11"]);
- -- StarterGui.Button.LocalScript
- G2L["14"] = Instance.new("LocalScript", G2L["1"]);
- -- StarterGui.Button.SUBING
- G2L["15"] = Instance.new("TextLabel", G2L["1"]);
- G2L["15"]["BorderSizePixel"] = 0;
- G2L["15"]["TextTransparency"] = 0.39;
- G2L["15"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
- G2L["15"]["TextSize"] = 24;
- G2L["15"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["15"]["TextColor3"] = Color3.fromRGB(255, 0, 5);
- G2L["15"]["BackgroundTransparency"] = 1;
- G2L["15"]["Size"] = UDim2.new(0, 200, 0, 50);
- G2L["15"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["15"]["Text"] = [[SUB @omaganameMag-7-K on youtube!]];
- G2L["15"]["Name"] = [[SUBING]];
- G2L["15"]["Position"] = UDim2.new(0.39734, 0, 0.14655, 0);
- -- StarterGui.Button.SUBING.LocalScript
- G2L["16"] = Instance.new("LocalScript", G2L["15"]);
- -- StarterGui.Button.Aimbot
- G2L["17"] = Instance.new("ScreenGui", G2L["1"]);
- G2L["17"]["Enabled"] = false;
- G2L["17"]["Name"] = [[Aimbot]];
- G2L["17"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
- G2L["17"]["ResetOnSpawn"] = false;
- -- StarterGui.Button.Aimbot.Frame
- G2L["18"] = Instance.new("Frame", G2L["17"]);
- G2L["18"]["BorderSizePixel"] = 0;
- G2L["18"]["BackgroundColor3"] = Color3.fromRGB(73, 67, 255);
- G2L["18"]["Size"] = UDim2.new(0, 246, 0, 140);
- G2L["18"]["Position"] = UDim2.new(0.7048, 0, 0.32586, 0);
- G2L["18"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["18"]["LayoutOrder"] = 1;
- G2L["18"]["BackgroundTransparency"] = 0.4;
- -- StarterGui.Button.Aimbot.Frame.UICorner
- G2L["19"] = Instance.new("UICorner", G2L["18"]);
- -- StarterGui.Button.Aimbot.Frame.UIStroke
- G2L["1a"] = Instance.new("UIStroke", G2L["18"]);
- -- StarterGui.Button.Aimbot.Frame.TextLabel
- G2L["1b"] = Instance.new("TextLabel", G2L["18"]);
- G2L["1b"]["TextWrapped"] = true;
- G2L["1b"]["BorderSizePixel"] = 0;
- G2L["1b"]["TextTransparency"] = 0.15;
- G2L["1b"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
- G2L["1b"]["TextSize"] = 32;
- G2L["1b"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["1b"]["TextColor3"] = Color3.fromRGB(228, 228, 228);
- G2L["1b"]["BackgroundTransparency"] = 1;
- G2L["1b"]["Size"] = UDim2.new(0, 246, 0, 25);
- G2L["1b"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["1b"]["Text"] = [[FART AIMBOT]];
- -- StarterGui.Button.Aimbot.Frame.TextLabel.UIStroke
- G2L["1c"] = Instance.new("UIStroke", G2L["1b"]);
- G2L["1c"]["Transparency"] = 0.54;
- -- StarterGui.Button.Aimbot.Frame.TextButton
- G2L["1d"] = Instance.new("TextButton", G2L["18"]);
- G2L["1d"]["BorderSizePixel"] = 0;
- G2L["1d"]["TextSize"] = 26;
- G2L["1d"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
- G2L["1d"]["BackgroundColor3"] = Color3.fromRGB(27, 9, 131);
- G2L["1d"]["FontFace"] = Font.new([[rbxasset://fonts/families/FredokaOne.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["1d"]["Size"] = UDim2.new(0, 200, 0, 50);
- G2L["1d"]["BackgroundTransparency"] = 0.45;
- G2L["1d"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["1d"]["Text"] = [[AIMBOT :]];
- G2L["1d"]["Position"] = UDim2.new(0.0935, 0, 0.32143, 0);
- -- StarterGui.Button.Aimbot.Frame.TextButton.UICorner
- G2L["1e"] = Instance.new("UICorner", G2L["1d"]);
- -- StarterGui.Button.Aimbot.Frame.TextButton.UIStroke
- G2L["1f"] = Instance.new("UIStroke", G2L["1d"]);
- -- StarterGui.Button.Aimbot.Frame.TextLabel
- G2L["20"] = Instance.new("TextLabel", G2L["18"]);
- G2L["20"]["TextWrapped"] = true;
- G2L["20"]["BorderSizePixel"] = 0;
- G2L["20"]["TextTransparency"] = 0.15;
- G2L["20"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
- G2L["20"]["TextSize"] = 12;
- G2L["20"]["FontFace"] = Font.new([[rbxasset://fonts/families/SourceSansPro.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
- G2L["20"]["TextColor3"] = Color3.fromRGB(228, 228, 228);
- G2L["20"]["BackgroundTransparency"] = 1;
- G2L["20"]["Size"] = UDim2.new(0, 246, 0, 15);
- G2L["20"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
- G2L["20"]["Text"] = [[Made only by ilikelimeclips2]];
- G2L["20"]["Position"] = UDim2.new(0, 0, 0.89286, 0);
- -- StarterGui.Button.Aimbot.Frame.TextLabel.UIStroke
- G2L["21"] = Instance.new("UIStroke", G2L["20"]);
- G2L["21"]["Transparency"] = 0.54;
- -- StarterGui.Button.Aimbot.Frame.LocalScript
- G2L["22"] = Instance.new("LocalScript", G2L["18"]);
- -- StarterGui.Button.Aimbot.Frame.SmoothDrag
- G2L["23"] = Instance.new("LocalScript", G2L["18"]);
- G2L["23"]["Name"] = [[SmoothDrag]];
- -- StarterGui.Button.Home.Frame.UIDrag
- local function C_10()
- local script = G2L["10"];
- local UIS = game:GetService('UserInputService')
- local frame = script.Parent
- local dragToggle = nil
- local dragSpeed = 0.25
- local dragStart = nil
- local startPos = nil
- local function updateInput(input)
- local delta = input.Position - dragStart
- local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
- startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
- end
- frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
- dragToggle = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- UIS.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- if dragToggle then
- updateInput(input)
- end
- end
- end)
- end;
- task.spawn(C_10);
- -- StarterGui.Button.LocalScript
- local function C_14()
- local script = G2L["14"];
- local gui = script.Parent
- local buton = gui.Button
- local figui = gui.Home
- local Mainframe = figui.Frame
- local AntiFart = Mainframe.a
- local speed = Mainframe.b
- local fly = Mainframe.c
- local infjump = Mainframe.d
- local aim = script.Parent.Aimbot
- AntiFart.MouseButton1Click:Connect(function()
- if aim.Enabled then
- aim.Enabled = false
- else
- aim.Enabled = true
- end
- end)
- fly.MouseButton1Click:Connect(function()
- loadstring("\108\111\97\100\115\116\114\105\110\103\40\103\97\109\101\58\72\116\116\112\71\101\116\40\40\39\104\116\116\112\115\58\47\47\103\105\115\116\46\103\105\116\104\117\98\117\115\101\114\99\111\110\116\101\110\116\46\99\111\109\47\109\101\111\122\111\110\101\89\84\47\98\102\48\51\55\100\102\102\57\102\48\97\55\48\48\49\55\51\48\52\100\100\100\54\55\102\100\99\100\51\55\48\47\114\97\119\47\101\49\52\101\55\52\102\52\50\53\98\48\54\48\100\102\53\50\51\51\52\51\99\102\51\48\98\55\56\55\48\55\52\101\98\51\99\53\100\50\47\97\114\99\101\117\115\37\50\53\50\48\120\37\50\53\50\48\102\108\121\37\50\53\50\48\50\37\50\53\50\48\111\98\102\108\117\99\97\116\111\114\39\41\44\116\114\117\101\41\41\40\41\10\10")()
- end)
- speed.MouseButton1Click:Connect(function()
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- while true do
- wait(0.1)
- humanoid.WalkSpeed = 80
- end
- end)
- infjump.MouseButton1Click:Connect(function()
- local InfiniteJumpEnabled = true
- game:GetService("UserInputService").JumpRequest:connect(function()
- if InfiniteJumpEnabled then
- game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
- end
- end)
- local poopPartCollider = workspace:FindFirstChild("PoopPartCollider")
- local poopPart = workspace:FindFirstChild("PoopPart")
- if poopPartCollider then
- poopPartCollider:Destroy()
- end
- if poopPart then
- poopPart:Destroy()
- end
- end)
- local function toggleContent()
- if figui.Enabled then
- figui.Enabled = false
- else
- figui.Enabled = true
- end
- end
- buton.MouseButton1Click:Connect(toggleContent)
- game.StarterGui:SetCore("SendNotification",{
- Title = "LOADED!";
- Text = "@omaganameMag-7-K on youtube go sub!";
- Icon = "";
- Duration = 5
- })
- warn("{-----------------------------------------}")
- warn("{ }")
- warn("{ Made by ilikelimeclips2 }")
- warn("{ }")
- warn("{-----------------------------------------}")
- end;
- task.spawn(C_14);
- -- StarterGui.Button.SUBING.LocalScript
- local function C_16()
- local script = G2L["16"];
- local textLabel = script.Parent
- local function fadeOut()
- for i = 0, 1, 0.05 do
- textLabel.TextTransparency = i
- textLabel.BackgroundTransparency = 1
- wait(0.2)
- end
- textLabel.Visible = false
- end
- fadeOut()
- end;
- task.spawn(C_16);
- -- StarterGui.Button.Aimbot.Frame.LocalScript
- local function C_22()
- local script = G2L["22"];
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Camera = workspace.CurrentCamera
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local toggleButton = script.Parent.TextButton
- local scriptActive = false
- local function getClosestPlayer()
- local closestPlayer = nil
- local closestDistance = math.huge
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") then
- local distance = (player.Character.Head.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude
- if distance < closestDistance then
- closestDistance = distance
- closestPlayer = player
- end
- end
- end
- return closestPlayer
- end
- local function canSeePlayer(player)
- local headPosition = player.Character.Head.Position
- local rootPosition = LocalPlayer.Character.HumanoidRootPart.Position
- local direction = (headPosition - rootPosition).unit
- local ray = Ray.new(rootPosition, direction * (headPosition - rootPosition).magnitude)
- local hitPart, _ = workspace:FindPartOnRay(ray, LocalPlayer.Character)
- return hitPart == nil or hitPart:IsDescendantOf(player.Character)
- end
- local function toggleScript()
- scriptActive = not scriptActive
- if scriptActive then
- toggleButton.Text = "AIMBOT: ON"
- else
- toggleButton.Text = "AIMBOT: OFF"
- end
- end
- toggleButton.MouseButton1Click:Connect(toggleScript)
- RunService.RenderStepped:Connect(function()
- if scriptActive then
- local closestPlayer = getClosestPlayer()
- if closestPlayer and canSeePlayer(closestPlayer) then
- Camera.CFrame = CFrame.new(Camera.CFrame.Position, closestPlayer.Character.Head.Position)
- end
- end
- end)
- end;
- task.spawn(C_22);
- -- StarterGui.Button.Aimbot.Frame.SmoothDrag
- local function C_23()
- local script = G2L["23"];
- local Drag = script.Parent
- gsCoreGui = game:GetService("CoreGui")
- gsTween = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- local dragTime = 0.04
- local SmoothDrag = {}
- SmoothDrag.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- local dragSmoothFunction = gsTween:Create(Drag, TweenInfo.new(dragTime, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), SmoothDrag)
- dragSmoothFunction:Play()
- end
- Drag.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = Drag.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- Drag.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging and Drag.Size then
- update(input)
- end
- end)
- end;
- task.spawn(C_23);
- return G2L["1"], require;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement