Currently, I am making a double click script, but I am unable to do anything after making the gui clicked enable, but it doesn’t work. I’m trying to troubleshoot the issue via print scripts, but nothing is happening.
local GUIS = script.Parent.Parent.Parent
local YINGYANG = script.Parent
local MoveCre = GUIS.MoveCre
local PressedTwice = false
local curr = 0
local prev = 0
local Debounce = false
YINGYANG.MouseButton1Down:Connect(function()
if Debounce == false then
Debounce = true
if not MoveCre.Enabled then
MoveCre.Enabled = true
PressedTwice = true
print("Pressed")
end
curr = os.clock()
local PT = curr - prev
if PT < 1 and MoveCre.Enabled then
print("Boom")
MoveCre.Enabled = false
PressedTwice = false
end
end
end)