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

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

Asked by 7 years ago

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)
0
Place the script into OnCharacterAdded crywink 419 — 7y
0
Scratch that.. Place the script into StarterCharacterScripts crywink 419 — 7y
0
@SamelHemsworth type your answer so you I can give you reputation and close this question because you just solved my problem, thank you! FPSStudioDidi 1 — 7y

1 answer

Log in to vote
0
Answered by
crywink 419 Moderation Voter
7 years ago

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

Ad

Answer this question