So pretty much I have lots more code but it is this part that doesn't work
if humanoid.Health <= 0 then
print("why")
local function work(player)
game.ReplicatedStorage.GiveFear:FireServer()
print("noob")
print(humanoid)
print(humanoid.Health)
end
print("work")
work()
end
However, it does work when you do this
if humanoid.Health >= 0 then
print("why")
local function work(player)
game.ReplicatedStorage.GiveFear:FireServer()
print("noob")
print(humanoid)
print(humanoid.Health)
end
print("work")
work()
end
Can someone please explain why and how to fix this.

4 comments
There is no difference between the two scripts.
oh yeah sry
k i changed it
I noticed you have a ":FireServer" Do you have script in your remote event? If so then try adding the "print("worked") Statement inside the Remote Event.