local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = game:GetService("Players").LocalPlayer local holding = false UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then holding = true end end) UIS.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then holding = false end end) RunService.Heartbeat:Connect(function() if holding and player.Character then local humanoid = player.Character:FindFirstChild("Humanoid") if humanoid then humanoid.Jump = true end end end)