By storing Humanoid.JumpHeight in a variable, the value of this variable changes when I change the jump height. How can I store the number value of jump height instead of the object. (Sorry if this makes no sense I’m tired).
local lastHeight = Humanoid.JumpHeight
Humanoid.JumpHeight = 16
wait(10)
Humanoid.JumpHeight = lastHeight -- This will set the jump height to 16 not the original height
Hi!
local lastHeight = Humanoid.JumpHeight
Will save the value of the Jumpheight.
To Store a Value, you must call the value like
local SomeVal = Something.Value
Try this
local lastHeight = Humanoid.JumpHeight.Value
Hope it helps 
1 Like
Adding to what said above,
When you want to use any value again, in the simplest condition, you’ll need to have a variable of it before changing it.
Here is an example -
local Player_Current_Position = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position
local Delay_Time = 6
task.wait(Delay_Time)
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position = Vector3.new(15,0,2)
task.wait(Delay_Time)
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position = Player_Current_Position
Hi!
.JumpHeight is a property, so is .Value. So you cannot say JumpHeight.Value, since they’re both a property. (Well, .Value is not really a property in Humanoid, but rather a property in a lot of other objects like a BoolValue)
I made this mistake a lot in the past. 
I see. But in the first post you have sent the exact same line of code as the op put in his first line. He wanted to call the value (number) not the object. I just dont understand that part.
Sorry, I just realised this was not the problem with my code. I tried this (the code at the top of the post) in Roblox and it worked fine. Thank you for all your help though :).