local player = game.Players.LocalPlayer
game.Workspace:WaitForChild(player.Name).Humanoid.Died:connect(function()
repeat wait() until game.Workspace[player.Name].Humanoid ~= nil
if game.Workspace[player.Name].Humanoid ~= nil then
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 442799450) or player.Name == "uwot_m9" or player.Name == "Player1" or player.Name == "Ractrium" or player.Name == "Ravogan" then
--Double health
game.Workspace:WaitForChild(player.Name).Humanoid.MaxHealth = 200
game.Workspace:WaitForChild(player.Name).Humanoid.Health = 200
else
end
if game.Workspace:WaitForChild(player.Name):WaitForChild("Health") then
game.Workspace:WaitForChild(player.Name).Health:Remove()
script.Health.Parent = game.Workspace[player.Name]
wait()
game.Workspace[player.Name]:WaitForChild("Health").Disabled = false
end
end
end)
There's my script, what is happening is it checks if the player is died, and repeats wait() until humanoid isn't nil, and checks if they own the gamepass and gives them double health, and inserts a modified health script, also.
But...none of it works, how do you check when the player is living again after he/she dies? Thanks for all help!
