So it all works, changes the Gui etc, but it doesn't do it smoothly. It just skips straight to 12, rather than waiting and changing it by 1 every 0.1 of a second. What is wrong with my code?
mouse.KeyDown:connect(function(key)
local key = string.lower(key)
if key == "r" then
if ammo < 12 then
repeat
ammo = ammo + 1
clone.Ammo.Text = ammo.."/12"
wait(0.1)
until
ammo == 12
end --end if ammo < 12
end --end if key == "r"
end) --end keydown function
