While making my game, I can’t find a way to change the player’s jump height. I read in the dev hub that jump power and jump height are read-only, but there must be some way to change them using scripts, right? I have tried switching from jump power from jump height and between server and client and nothing works.
Doesn’t Character.Humanoid.JumpPower = WhatEverJumpPower
or Character.Humanoid.JumpHeight = WhatEverJumpHeight
work?
Jumpheight is edited in StarterPlayer.
JumpPower is edited in humanoid.
Both are editable.
Humanoid.JumpPower = 100
--Path the Humanoid of course.
Its pretty easy u can do it through the humanoid and change the jump power through there. For a script its the same thing. Here is an example
game.Players.LocalPlayer.Character:waitforchild(‘Humanoid’).JumpPower = 0 — change 0 for different jump power
Hold on, you forgot to capitalize some stuff.
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
char:WaitForChild(“Humanoid”).JumpPower = 200 -- change 0 for different jump power
I copy and pasted the script into a brand new place and nothing happened. I even added a wait(5) to make sure I was loaded and stuff. Is my studio just broken or something? it was a local script
I tried to make that it waits to load the character first
local jumpPower = 69
local plr = game.Players.LocalPlayer
plr.CharacterAppearanceLoaded:Connect(function(char)
char:FindFirstChildWhichIsA("Humanoid").JumpPower = jumpPower
print("Jump power changed")
end)
Idk if it’ll work for you
If it doesn’t, try to put this in the command bar to see if your studio is broken
local jumpPower = 69
local plr = game.Players.LocalPlayer
local char = plr.Character
char:WaitForChild("Humanoid").JumpPower = jumpPower
print("Jump power changed")
It still doesn’t work. I thought of reinstalling studio but I am having this problem in a team create. Maybe it is because it is read-only or something. That’s what it says on the dev hub.
Yeah i think that setting does not allow u to change anything just read scripts and look at things. If it doesnt work in your own project u should probably reinstall studio.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.