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
1local Player = game:GetService("Players")
2local human = 'Workspace:WaitForChild("Humanoid")'
3 
4Player.PlayerAdded:Connect(function(player)
5    player.Name.human.JumpPower = 100
6end)

2 answers

Log in to vote
0
Answered by 3 years ago
1game.Players.PlayerAdded:Connect(function(Player)
2    Player.CharacterAdded:Connect(function(Character)
3        Character.Humanoid.UseJumpPower = true
4        Character.Humanoid.JumpPower = 300
5    end)
6end)
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:

1local Player = game:GetService("Players")
2 
3Player.PlayerAdded:Connect(function(player)
4    player.Character.Humanoid.JumpPower = 100
5end)

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