local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") local gui = Instance.new("ScreenGui") gui.ResetOnSpawn = false gui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui") local button = Instance.new("TextButton") button.Size = UDim2.new(0, 100, 0, 50) button.Position = UDim2.new(0.5, -50, 0.5, -25) button.Text = "Fling" button.Parent = gui local dragging = false local dragStart = nil local startPos = nil button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = button.Position end end) button.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then if dragging then local delta = input.Position - dragStart button.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) local hiddenfling = false button.MouseButton1Click:Connect(function() hiddenfling = not hiddenfling button.Text = hiddenfling and "Stop Fling" or "Fling" end) RunService.Heartbeat:Connect(function() if hiddenfling then local c = Players.LocalPlayer.Character if c and c.Parent then local hrp = c:FindFirstChild("HumanoidRootPart") if hrp then local vel = hrp.Velocity hrp.Velocity = hrp.Velocity.Unit * Vector3.new(100000066612410000, 0, 1000000004444455000) + Vector3.new(0, 250004444000046640000, 0) RunService.RenderStepped:Wait() if c and c.Parent and hrp and hrp.Parent then hrp.Velocity = vel end end end end end) local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = button local stroke = Instance.new("UIStroke") stroke.Thickness = 2 stroke.Color = Color3.new(1, 1, 1) stroke.Parent = button local gradient = Instance.new("UIGradient") gradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.new(1, 0, 0)), ColorSequenceKeypoint.new(1, Color3.new(0, 0, 1)) } gradient.Parent = button