function onClick(click)
for i,v in pairs (script.Parent:GetChildren()) do
if v.ClassName == "ScreenGui" then
c = v:Clone()
c.Parent = click.PlayerGui
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
How would I add a cooldown to this? https://gyazo.com/1a50b42fd23c99c0c32e1090132af3c1 - Inside of it Script i'm showing up here - https://gyazo.com/d116ff7d6e0d6a75acec3f05be34c5ac The script that might be causing the issues - https://gyazo.com/5ce102653073a10c0cf71d0e9b6c795f

1 comment
use a debounce