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

My jump boost script resets after the player dies or resets, the script does not work, any ideas?

so this is my current script

JumpPower = 100		

HumanPart = "Torso"		




wait()

player = game.Players.LocalPlayer
while player.Character == nil do wait() end
part = player.Character:FindFirstChild(HumanPart)
hum = player.Character:FindFirstChild("Humanoid")

bv = script["JumpBoost"]:clone()
bv.Parent = part

function falling()
	bv.maxForce = Vector3.new(0, 0, 0)
end

function jumped()
	bv.maxForce = Vector3.new(0, 1e7, 0)
	bv.velocity = Vector3.new(0, JumpPower, 0)
	wait(0.1)
	falling()
end

hum.Jumping:connect(jumped)

3 comments

0

Place the script into OnCharacterAdded

0

Scratch that.. Place the script into StarterCharacterScripts

0

@SamelHemsworth type your answer so you I can give you reputation and close this question because you just solved my problem, thank you!

1 answer

✓ Accepted answer

Simple! Just place your script into StarterCharacterScripts, meaning that it will run every time the player dies!

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