And i don't know how to determine the humanoid and character in server script.
Here the code:
Humanoid = game.Workspace:FindFirstChild(game.Players:GetChildren{Name}):FindFirstChild("Humanoid")
Character = Humanoid.Parent
if Character.Humanoid.Health >= 67 then
Character.Head.face.Texture = "http://www.roblox.com/asset/?id=7506025"
print("Work1")
end
if Character.Humanoid.Health <= 66 then
Character.Head.face.Texture = "http://www.roblox.com/asset/?id=7046277"
print("Work2")
end
if Character.Humanoid.Health <= 24 then
Character.Head.face.Texture = "http://www.roblox.com/asset /?id=629906620"
print("Work3")
end
if Character.Humanoid.Health == 0 then
game.StarterPack.Stick.Handle.OuchEffect:Stop()
Character.Humanoid.BreakJointsOnDeath = false
Character.Head.face.Texture = "http://www.roblox.com/asset/?id=417334857"
print("Work4")
end

7 comments
you should use HealthChanged instead of a bunch of conditional statements
I used it and it doesn't work
how does it not work
I put the if statements inside health.changed and it doesn't work because i need to determind the humanoid first but i don't know how i determind humanoid in server side script
Humanoid.HealthChanged, not health.Changed
Thanks but it still doesn't work because it can't determind humanoid
alright I'll just post an answer