Thank you Azarth.Figured out debounce and made it work.
Here is my script.I tweaked some of it so i can add debounce to every one so im sure it deosnt get smaller.I know its messy.
local debounce = false
script.Parent.Parent.bly.MouseButton2Down:Connect(function()
script.Parent.Visible = true
debounce = false
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
wait(.1)
if not debounce then
script.Parent.Text = script.Parent.Text +0.1
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end)
script.Parent.Parent.bly.MouseButton2Up:Connect(function()
script.Parent.Visible = false
script.Parent.Text = 0
debounce = true
end)
3 comments
while held do
pretty much the same problem.maybe im a big noob but it s basically the same
Add an if statement on down to check if held is already true, don't run if true. Set the initial held on the top to false. Look up debounces, if you don't understand what I'm saying.