local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local jumping = false RunService.Heartbeat:Connect(function() if not jumping then return end local character = player.Character if not character then return end local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.FloorMaterial ~= Enum.Material.Air then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end) if not UserInputService.TouchEnabled then UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.Space then jumping = true end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then jumping = false end end) return end local gui = Instance.new("ScreenGui") gui.Name = "ForceJumpGui" gui.ResetOnSpawn = false gui.Parent = game:GetService("CoreGui") local button = Instance.new("TextButton") button.Parent = gui button.Size = UDim2.fromScale(0.1, 0.2) button.Position = UDim2.fromScale(0.85, 0.75) button.BackgroundColor3 = Color3.new(0, 0, 0) button.BackgroundTransparency = 0.4 button.Text = " " button.AutoButtonColor = false local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = button button.MouseButton1Down:Connect(function() jumping = true end) button.MouseButton1Up:Connect(function() jumping = false end) local dragging = false local dragStart local startPos button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = button.Position end end) button.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) UserInputService.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.Touch 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)