You can write your topic however you want, but you need to answer these questions:
-
**What do you want to achieve?**A nuke button which only once then it’ll remove a ui and spawn a nuke
-
What is the issue? People spam click it een though i have anti spam click measure already
-
What solutions have you tried so far? Im currently using a tick() debouce where if tick() - lasttick > number then spawn a nuke and set the lasttick to tick()
local lastime = 0
script.Parent.MouseButton1Click:Connect(function(GetCar)
if tick() - lastime >= 76.4 then
lastime = tick()
Mod = game.ServerStorage.Tsar
clone = Mod:clone()
clone.Parent = workspace
clone:MakeJoints()
script.Parent.Parent.Parent.Parent:Remove()
end
end)
bear in mind this is a server script