Basically what I want to do is to use values to do some math. Something like Prime Factorization to find out the index notations of a number. Here is my script.
Number = 200
Divide = 2
for i = 1,5 do
wait(0.5)
local result = print(Number/Divide)
local Divide = Divide + 1
end
The output is just 100 and multiple of it. I do know that line 7 is the cause as it doesn't add up. Any way to add a number to a value? Thanks in advance.

1 comment
Change line 1 and 2 into local variables and then don't use local in line 7.