local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer RunService.RenderStepped:Connect(function() if UserInputService:IsKeyDown(Enum.KeyCode.Space) then local character = player.Character if character then local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.FloorMaterial ~= Enum.Material.Air then humanoid.Jump = true end end end end)