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

I am trying to set jump power to 100 but I can't?

Asked by 3 years ago
Edited 3 years ago
local Player = game:GetService("Players")
local human = 'Workspace:WaitForChild("Humanoid")'

Player.PlayerAdded:Connect(function(player)
    player.Name.human.JumpPower = 100
end)

2 answers

Log in to vote
0
Answered by 3 years ago
game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        Character.Humanoid.UseJumpPower = true
        Character.Humanoid.JumpPower = 300
    end)
end)
Ad
Log in to vote
0
Answered by 3 years ago

Your code has some serious problems. First of all, humanoid is not in workspace. It is in a model. player.Name is also referencing the player name. Not the character. If you wanted to do this you would have to put this in:

local Player = game:GetService("Players")

Player.PlayerAdded:Connect(function(player)
    player.Character.Humanoid.JumpPower = 100
end)

I'm not sure if there is a limit on jump power but I am pretty sure that you can set it above 100.

0
ALso, just change the jump power value to whatever you want, too high will make the player jump into the sky and die, not sure if that was intended by Roblox. poop07393cfhi3n2222 4 — 3y

Answer this question