Why is this small script not working?

Hello! I was wondering if anybody can tell me why this gui collision script is not working and how to fix it. I have the gui collision module in ReplicatedStorage and I have it required it in the script below.

Script:

local GuiCollisionService = require(game:GetService(“ReplicatedStorage”).GuiCollisionService)
local limiter = script.Parent
local human = script.Parent.Parent.ImageLabel.Human
if GuiCollisionService.isColliding(limiter, human) then
limiter:Destroy()
end

You made a typo with Frame1:Destoy, it should be Frame1:Destroy()

I know but that wasn’t it I just typed that script out now I didnt copy it

Is there any errors in the output?

let me check that right now
(:

No there was nothing
(::::::::

From what I can see, the code runs once and never again. If you want to have continuous checks if a collision happened, you’ll have to make a loop.

Well you see the thing is it has never worked at least once.

Try adding breakpoints or a print statement to verify that the script actually runs

local GuiCollisionService = require(game:GetService(“ReplicatedStorage”).GuiCollisionService)
local limiter = script.Parent
local human = script.Parent.Parent.ImageLabel.Human
if GuiCollisionService.isColliding(limiter, human) then
print(“Collided!”) --This is the only breakpoint I could find and it does nothing
limiter:Destroy()
end?