You can write your topic however you want, but you need to answer these questions:
I am trying to make a fun admin command
But when setting jumpPower to 0, I can still jump, but I also added 0 walkspeed, and that worked.
I dont feel like I need to include code.
Please help, Thanks!
Are you sure jump power is being set to 0
Yes, I am sure, I am working on making the video work
Check off one
For two, I am making it work for one player, temporary.
You will see what I mean in the video
For three: I made all scripts, and I know nothing is messing with it.
Just checking, do you get any errors from your code?
Another option could be to just anchor the character’s HumanoidRootPart.
I don’t want to anchor the player, because I would like the effect of the player dying after the train goes by.
Also no errors.
Alright, and the walkspeed code works?
The walkspeed code works.
character.Humanoid.WalkSpeed = 0
character.Humanoid.JumpPower = 0
The only thing I can think of then would be that you aren’t using JumpPower, but rather JumpHeight. Try adding this code right before the JumpPower = 0 part:
character.Humanoid.UseJumpPower = true
Let me know if that doesn’t work, but I am honestly confused if that doesn’t work
I just tested setting the walkspeed and jumppower and both seem to work fine so I have no idea what the problem is.
Surprised that worked! Thank you, I never known that was a thing!
No problem! Glad it got fixed
You can also go to Explorer → StarterPlayer then in the Properties tab, make sure CharacterUseJumpPower is on.
This worked! they should make that more obvious on their documentation.
In game settings / world, you can set it to Jump Power … then all jump power calls work fine.