Increasing JumpPower Value per Second:

Hello, everyone! How are you guys?

So, recently, I have been discovering a lot of new games made within tiny deadlines with fun gameplay, and it was starting as for the title: “Roblox but every second the jump gets higher”/something similar… As while discovering these experiences, it truly kept increasing my JumpPower value!

With my little curiosity, I begin to think about how is it possible to do so… I created a LocalScript (putting under ServerScriptService) and a few codes lines:

local Players = game:GetService(”Players”) ;

local function increaseJumpValue(the_player)
local humanoid = the_player.FindFirstChildWhichIsA(”Humanoid”)
local JumpPower = humanoid.JumpPower
end

Players.PlayerAdded.Connect:(function(player)
print(player.Name .. “ joined the experience)
while increaseJumpValue == true do
print(”JumpPower will increase”)
task.wait(1)
for 1, 1, 1 do
increaseJumpValue
      end
    end
end)

Although, I believe something might be missing… Leading to give immerse errors once outputting at Roblox Studio. If anyone can help me with this, I would sincerely appreciate it!

Thank you :bowing_man:

Firstly, the IncreaseJumpValue boolean doesn’t exist, second, you are using for incorrectly, you are never actually firing the increaseJumpValue function, and the increaseJumpValue function doesn’t actually increase it, here is the code but fixed

local Players = game:GetService("Players")

local increaseJumpValue = true
local IncrementBy = 5 --change to how much you want it to raise by

local function PlayerAdded(Player)
   local function CharacterAdded(Character)
      local Humanoid = Character:WaitForChild("Humanoid")
      while increaseJumpValue then
           Humanoid.JumpPower += IncrementBy 
           task.wait(1)
      end
   end
   Player.CharacterAdded:Connect(CharacterAdded)
   if Player.Character then CharacterAdded(Player.Character) end
end

Players.PlayerAdded:Connect(PlayerAdded)
for i,v in pairs(Players:GetPlayers()) do PlayerAdded(v) end
  • Normal Script inside ServerScriptService
    This is not the best script
1 Like

First off, I started with 22 errors and 7 Warnings, so there’s 0% chance that your script will work (Fixing them all.).

Put a ScreenGui, once you done putting the ScreenGui, put a TextLabel inside of it.
Inside of the TextLabel put a LocalScript and copy this:

local Players = game:GetService("Players") ;

local humanoid = Players.LocalPlayer.Character:WaitForChild("Humanoid")
local JumpPower = humanoid.JumpPower

JumpPower = 0

Players.PlayerAdded:Connect(function(player)
	print(player.Name .. " joined the experience")

	while task.wait(1) do
		JumpPower = JumpPower+1
		script.Parent.Text = "JumpPower: "..JumpPower
		if JumpPower >= 1499.99 then
			break
		end
	end
end)

Well, never mind it didn’t worked for me.

Because it’s an bandicam 2022-10-27 18-54-01-674.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.