xKingDoge
|
  |
| Joined: 03 Dec 2013 |
| Total Posts: 829 |
|
|
| 09 Oct 2015 10:43 AM |
I'm having problems with debounces to prevent click spamming.
Here is the first one: local debounce = false
function boop(Player) if not debounce then debounce = true wait (2.5) if not Player.PlayerGui:FindFirstChild("Gui") then local gui = script.Gui:clone() gui.Parent = Player.PlayerGui gui.LocalScript.Disabled = false end end) script.Parent.ClickDetector.MouseClick:connect(boop)
Here is the second one:
local debounce = false
function hi(x) if not debounce then debounce = true local y = x.Backpack local z = game.Lighting["Candy"] --Change "Tool1" --Change "Tool1" to the name of the item. wait (2.5) z:Clone().Parent = y debounce = false end end)
script.Parent.ClickDetector.MouseClick:connect(hi) |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 09 Oct 2015 10:56 AM |
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$83 Tx2,599 |
|
|
| Report Abuse |
|
|
xKingDoge
|
  |
| Joined: 03 Dec 2013 |
| Total Posts: 829 |
|
| |
|
xKingDoge
|
  |
| Joined: 03 Dec 2013 |
| Total Posts: 829 |
|
| |
|
xKingDoge
|
  |
| Joined: 03 Dec 2013 |
| Total Posts: 829 |
|
| |
|