I am making a game where it requires the player to click twice? How do i do this?
script.Parent.ClickDetector.MouseClick:Connect(function(player) if script.Parent.ClickDetector.MouseClick:Connect(function(player) then print (5) end) end)
Please help!
You could probably get away with a single mouse click, but if you do need double click then you can do this:
local clicks = 0 script.Parent.ClickDetector.MouseClick:Connect(function(player) clicks = clicks + 1 if clicks >= 2 then --put here what you need clicks = 0 end end)
Should work.