local btn = game.StarterGui:FindFirstChild("ScreenGui").DoldurBtn
local mik = game.StarterGui:FindFirstChild("ScreenGui").DepoDolum.Miktar
local depo = 10
local fuel = 0
btn.MouseButton1Click:Connect(function()
fuel = mik.Text
for i=fuel, 10 do
wait(1)
print(i)
i += 1
print(i)
if i == 10 then
break
end
end
end)
local btn = game.StarterGui:FindFirstChild("ScreenGui").DoldurBtn
local mik = game.StarterGui:FindFirstChild("ScreenGui").DepoDolum.Miktar
local depo = 10
local fuel = 0
btn.MouseButton1Click:Connect(function()
fuel = tonumber(mik.Text)
for i=fuel, 10 do
wait(1)
print("Interation Number:"..i)
mik.Text = tostring(fuel)
if i == 10 then
break
end
end
end)