I’m in need of assistance. How do you know whether the player hasn’t taken any damage in the last five seconds? and if that player takes damage again within the 5s it’ll have to wait another 5 seconds for the script to do something,.
This script works fine but it continues even though the player has taken damage within 5s, it doesn’t wait again for 5s. I’m not sure if this explanation made sense but hopefully you got some of it.
-- Variables are already added, just didn't include it in this script. humanoid.HealthChanged:Connect(function(CurrentHealth) wait(5) print("Test") end