local Players = game:GetService("Players") local RunService = game:GetService("RunService") local GoogleURL = "https://raw.githubusercontent.com/Toluwerr/Google-UI/refs/heads/main/main.lua" local loaded, Google = pcall(function() return loadstring(game:HttpGet(GoogleURL))() end) if not loaded or type(Google) ~= "table" then error("Failed to load Google UI") end local LocalPlayer = Players.LocalPlayer local flingEnabled = false local flingPower = 100 local antiflingConnection = nil local function getRootPart(character) if not character then return nil end return character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso") end local function enableAntiFling() if antiflingConnection then antiflingConnection:Disconnect() antiflingConnection = nil end antiflingConnection = RunService.Stepped:Connect(function() for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then for _, object in pairs(player.Character:GetDescendants()) do if object:IsA("BasePart") then object.CanCollide = false end end end end end) end local function disableAntiFling() if antiflingConnection then antiflingConnection:Disconnect() antiflingConnection = nil end end local Window = Google:CreateWindow({ Title = "Fling, by Toluwerr", Subtitle = "Fling", Size = UDim2.fromOffset(400, 290), AllowMultiple = false }) local MainTab = Window:CreateTab({ Name = "Main", Icon = "home" }) local Controls = MainTab:CreateSection({ Name = "Controls", Icon = "sliders-horizontal" }) local function createToggle(parent, config) if parent.CreateToggle then return parent:CreateToggle(config) end if MainTab.CreateToggle then return MainTab:CreateToggle(config) end end local function createTextbox(parent, config) if parent.CreateTextbox then return parent:CreateTextbox(config) end if parent.CreateInput then return parent:CreateInput(config) end if MainTab.CreateTextbox then return MainTab:CreateTextbox(config) end if MainTab.CreateInput then return MainTab:CreateInput(config) end end createToggle(Controls, { Name = "Fling", Text = "Fling", Default = false, Value = false, CurrentValue = false, Callback = function(value) flingEnabled = value == true end }) createToggle(Controls, { Name = "Anti Fling", Text = "Anti Fling", Default = false, Value = false, CurrentValue = false, Callback = function(value) if value == true then enableAntiFling() else disableAntiFling() end end }) createTextbox(Controls, { Name = "Fling Power", Text = "Fling Power", Placeholder = "Enter power", Default = tostring(flingPower), Value = tostring(flingPower), CurrentValue = tostring(flingPower), Numeric = true, ClearButton = false, Callback = function(value) local parsed = tonumber(value) if parsed then flingPower = parsed end end }) local function getVelocity(part) return part.AssemblyLinearVelocity end local function setVelocity(part, velocity) part.AssemblyLinearVelocity = velocity end local function flingLoop() local currentCharacter = nil local rootPart = nil local savedVelocity = nil local verticalJitter = 0.1 while true do RunService.Heartbeat:Wait() if flingEnabled then if not currentCharacter or not currentCharacter.Parent or not rootPart or not rootPart.Parent then currentCharacter = LocalPlayer.Character rootPart = getRootPart(currentCharacter) end if currentCharacter and currentCharacter.Parent and rootPart and rootPart.Parent then savedVelocity = getVelocity(rootPart) setVelocity(rootPart, savedVelocity * flingPower + Vector3.new(0, flingPower, 0)) RunService.RenderStepped:Wait() if currentCharacter and currentCharacter.Parent and rootPart and rootPart.Parent then setVelocity(rootPart, savedVelocity) end RunService.Stepped:Wait() if currentCharacter and currentCharacter.Parent and rootPart and rootPart.Parent then setVelocity(rootPart, savedVelocity + Vector3.new(0, verticalJitter, 0)) verticalJitter = verticalJitter * -1 end end end end end task.spawn(flingLoop)