So I’ve made an auto clicker for my game and it works fine until I start clicking myself.
To explain this video, when I turn on my autoclicker, the stats go up just fine but when I click while it’s activated, for some reason, the value of “Heads” goes down to however many times I clicked. Can anyone tell me whats wrong with this?
Autoclicker Script - Local Script inside a ScreenGui
local activated = false btn.Activated:Connect(function() if activated == false then activated = true print("Activated") repeat wait(0.5) heads.Value = heads.Value + 1*headMultiplier.Value until heads.Value == inventory.Value or activated == false else activated = false end end)
Click Script - Inside ServerScriptService activated by Remote Event
event.OnServerEvent:Connect(function(player) h.Value += 1*m.Value -- h is the head value and m is just a multiplier end)