Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tick delay debounce not working?

Asked by 2 years ago
Edited 2 years ago

Hi so I have a tick() delay debounce code, Then I test my serverlist and i joined a server which a player spam click a button and it worked heres my code

```lua

local lastime = 0

script.Parent.MouseButton1Click:Connect(function(GetCar)
    if tick() - lastime >= 76.4 then
        lastime = tick()
        Mod = game.ServerStorage.Tsar --Change test to whatever you have named the item you want to spawn
        clone = Mod:clone()
        clone.Parent = workspace
    clone:MakeJoints()
    script.Parent.Parent.Parent.Parent:Remove()
    end
end)

``` thankyo

Answer this question