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
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?