of     1   

Drogb4
#139898319Thursday, July 10, 2014 7:01 PM GMT

I have a function that runs many times at the same time. but I'd like the function to OVERWRITE this same function if its running already. Instead of running at the same time. I'd like to know if there is a way to do this Sorry if I'm not explaining myself. :/
DEVMAC101
#139898491Thursday, July 10, 2014 7:02 PM GMT

Code please.
Drogb4
#139901163Thursday, July 10, 2014 7:29 PM GMT

I just want to have one single that overwrites itself when it runs again instead of having several codes of the same type running at the same time.. ----- function onChange2() if timer.Value > 0 then wait(1) timer.Value = timer.Value -1 end end timer.Changed:connect(onChange2)
parasiticplant
#139903252Thursday, July 10, 2014 7:50 PM GMT

This is a good question. I, myself, have a problem like this.
RoflBread
#139904910Thursday, July 10, 2014 8:07 PM GMT

function onChange2() if running == true then return end running = true if timer.Value > 0 then wait(1) timer.Value = timer.Value -1 end running = false end timer.Changed:connect(onChange2)

    of     1