Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you jump higher in a game without looking like you're moon jumping?

Asked by 7 years ago

I've tried to increase my jump height in a game, using setgrav, but It makes me look like Im space jumping instead of jumping high normally. I when I jump it's kind of ok but when I escalate down from the peak of my jump peak I slowly reach the floor form the air. Do you guys have anything that can help me solve this problem?

1
JumpPower? User#11440 120 — 7y

2 answers

Log in to vote
1
Answered by 7 years ago

What could you do?

Change the humanoid's JumpPower. That way the player can jump higher and fall at the same speed. You're going to have to use the PlayerAdded event to get each player and CharacterAdded to get the character to get the Humanoid.


JumpPower

JumpPower is the velocity you will move in the Y axis when you jump. It MUST be a number between 0-1000.


PlayerAdded

Is an event inside of the Player Service that will run whenever a player joins the server and returns the argument of the player.

game:GetService("Players").PlayerAdded:connect(function(player)
    print(player) --Prints the player's name
end)

CharacterAdded

After you locate the player you can use CharacterAdded to get the Character. This fires everytime the character spawns so if they die it still runs after they respawn.

game:GetService("Players").PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(char)
        print(char) --Prints the character's name
    end)
end)

Final Product

local strength = 500 --How high you'll jump

game:GetService("Players").PlayerAdded:connect(function(plyr)
    plyr.CharacterAdded:connect(function(char)
        repeat wait() until char:FindFirstChild("Humanoid")
        local h = char:FindFirstChild("Humanoid")
        h.JumpPower = strength
    end)
end)


Hope it helps!

Ad
Log in to vote
0
Answered by 7 years ago

Just change the jump power which is in the players humanoid -script- random player.Character.Humanoid.JumpPower = "how ever high you want to jump" 50 is default.

Answer this question