The script I am working on is supposed print a message when a specific instance named ‘isPlaying’ is removed. However, the script does not seem to function.
(Note: The Instance is removed when the Humanoid dies)
local isPlaying = player:FindFirstChild("isPlaying")
if isPlaying == nil then
print("Player is not playing")