Unknown Error with Cooldown with duplicating GUI

I have a Gui in my tool, and it gets replicated every time the tool is equipped.
I’m trying to make a cooldown system, but for some unknown reason it keeps erroring as it calls it nil?
Any help is appreciated, thanks.

It would be nice if you would send your code in a codeblock:
image

Solution found, simple mistake. Had to call it from the frame instead of the list.