How to fix my wait trouble?

Hello!
This is my automatic weapon code, but for some reason, the cadence doesn’t works fine as it should

Mouse.Button1Down:Connect(function()
	
	if canshot then
	if Equipped then
	if Tool.Configurations.Ammo.Value > 0 then
		shooting = true
	if Tool.Configurations.Auto.Value == true then
	
   repeat
			if Equipped and (tick() - lastshot) >= Tool.Configurations.Cadence.Value then
		lastshot = tick()
			Shot()
		end
			wait(Tool.Configurations.Cadence.Value)
		
		until shooting == false or Tool.Configurations.Ammo.Value < 1
		
			elseif Tool.Configurations.Auto.Value == false and (tick() - lastshot) > Tool.Configurations.Cadence.Value then
				Shot()
				end
		end
		end
		end
end)

For some reason, it should shot really fast, (waiting 0.01 each round) but it doesn’t do that, the waiting time is more long, is there a way to fix it?

This is what happens: https://gyazo.com/a1ec7db22aeac66a939a217cbbe5f486 (it’s cleary not 0.01 cadence)
I can’t find any solution.
image
EDIT: Even when changing it to 0 it cadence doesn’t changes
https://gyazo.com/8ced31f382c9cdfc3e44851ba8c0ae4b

That’s because the lowest number wait() can take is 1/30, meanwhile you’re feeding it 1/100

Still is not waiting 1/30 so uhm…