I want the player to jump a certain hieght but i also want this script to keep running when they die...here is wha ti tried but wont work can u help me?
function onPlayerEntered(newPlayer)
newPlayer.Character.Humanoid.Jump = 40
end
game.Players.ChildAdded:connect(onPlayerEntered)
function onPlayerRespawned(newPlayer)
h = newPlayer:findFirstChild("Humanoid")
if h ~= nil then
if game.Workspace:findFirstChild(h.Parent.Name) ~= nil then
h.Jump = 40 --Make sure this number is the same as the number above.
end
end
end
game.Workspace.ChildAdded:connect(onPlayerRespawned)

6 comments
You've already asked this question earlier today. If the answers on there aren't what you are seeking, ask for clarification instead of creating new requests.
well i made it more clearer here so
The only way to do this is to give the character some body force.
and how to do that?
Look it up
...