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

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

Asked by 6 years ago

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.

0
give ur script pls User#23365 30 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

You can use Changed event:

humanoid.Changed:Connect(function(changedProperty)
    if changedProperty == "Jump" then 
        humanoid.JumpPower = humanoid.Jumpower + 0.1
    end
end)
Ad
Log in to vote
-2
Answered by 6 years ago

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)
0
stop User#23365 30 — 6y
0
S T O P User#23365 30 — 6y
0
Whats your deal.... ^^^^ He just wants rep greatneil80 2647 — 6y
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. User#19524 175 — 6y
View all comments (2 more)
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. Verscile 0 — 6y
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] green271 635 — 6y

Answer this question