Hi! I have a big problem with the click detector mechanic.. 2 days ago it worked flawless but today my gamers are experiencing a trouble that breaks almost the entire game.
Click Detector in a model fires twice. It only happens in server or team test, but no in solo play in editor.
Here's the code:
local click = script.Parent.ClickDetector
local debounce = false
function OnClickMe(player) print("help.. :(") end
click.MouseClick:connect(function(player) wait() if debounce == false then debounce = true OnClickMe(player) debounce = false end end)
The outcome is "help.. :(" printed twice in the server output. Any ideas? i'm having a big problem because it affects gamepasses :S Thank you all!