Prevent scripts/ cooldowns from ending after player death

hello, i need help running cooldowns after a players death, (cogs reappearing after players death)
time interval is 5 seconds just for testing
heres a video
(why did roblox make this a file???)

External Media