This is what I have to make the script detect the players health constantly. But I dont know how to make it work over and over
local player = game.Players.LocalPlayer
local workplayer = game.Workspace:WaitForChild(player.Name)
local humanoid = workplayer.Humanoid
local remote = game.ReplicatedStorage.Playerhealth0
repeat wait()
until humanoid.Health <= 0
remote:FireServer()

1 comment
MAKE SURE TO PUT IT IN STARTER CHARACTER FOLDER!