Hello.
I want to create a function that runs 1 time after I click the LeftMouseButton.
Problem is, whenever I click the Mouse the animation plays 1 time (as it should) but the function runs 14 times.
Here is the script that sends the button click to the other script:
local Debounce = true
script.Parent.MouseButton1Click:Connect(function()
if Debounce then
Debounce = false
print("test")
wait(3) -- make it any number except 0
Debounce = true
end
end)
like that convert your code into that
are you sure that the two events run it multiple times cause you can spam click right click and left click at the same time