InfJump
Key RequiredUniversal

InfJump

Universal ScriptKosmaKosma 7.4K views 148 executesUpdated Jul 6, 2022
0.0/ 5(1 votes)
010% Positive
Lua Script•18 lines (740 chars)
local Player = game:GetService'Players'.LocalPlayer;
local UIS = game:GetService'UserInputService';

_G.JumpHeight = 50;

function Action(Object, Function) if Object ~= nil then Function(Object); end end

UIS.InputBegan:connect(function(UserInput)
    if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
        Action(Player.Character.Humanoid, function(self)
            if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
                Action(self.Parent.HumanoidRootPart, function(self)
                    self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
                end)
            end
        end)
    end
end)

Features & Information

Infinity Jump

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts