Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you do a +1 Jump Power Jumping Script?

I'm interested in knowing how to do a script that makes it so when you jump your jump power goes up by 0.1. I believe that all you have to do is make a script that knows when the player jumps then go into their humanoid and upgrade their jump power by 0.1. I also want this to be separate for each person so one person can have a different jump power than the second. I don't know if the humanoid version is outdated but I'm hoping it still works that way. Thank you.

1 comment

0

give ur script pls

2 answers

You can use Changed event:

humanoid.Changed:Connect(function(changedProperty)
	if changedProperty == "Jump" then 
		humanoid.JumpPower = humanoid.Jumpower + 0.1
	end
end)

If you want to Change a person JumpPower Then you need to get there Humanoid. In there Humanoid There is a Something called JumpPower. Now all you need to do is set that to 0.1 of what it is originally was.So first we need to get the Players. Player then Character then the Humanoid. Once you get the Humanoid you can get the JumpPower and you plus it by 0.1. It will look like the Fowllowing.

--Variables--
local Player = game.Players.LocalPlayers
local char = Player.Character
local hum = char.Humanoid
local PJumpPower = hum.JumpPower

--Now lets change the Players JumpPower--
PJumpPower + 0.1

You could also do this where if a player touches a part it will change the jumpPower

--Let say the part you want to touch it called PartT
local Player = game.Players.LocalPlayers
local char = Player.Character
local hum = char.Humanoid
local PJumpPower = hum.JumpPower

workspace.PartT.Touched:Connect(function()
       PJumpPower + 0.1
end)

6 comments

0

stop

0

S T O P

0

Whats your deal.... ^^^^ He just wants rep

1

That doesn't work. Assigning a variable to a property doesn't assign it to the property itself. It only assigns it to the value of the property and doesn't change if the property changes.

0

Even So I just placed the script in game which works in Play but not in the 'Game' The client cant run local players since the player and client are separated. At least I think that's how that works.

0

That doesn't work. Assigning a variable to a property doesn't assign it to the property itself. It only assigns it to the value of the property and doesn't change if the property changes. [2]

This discussion is preserved as it was. New answers, comments, and votes are closed.