I had it working before it crashed but now I need to try and fix it...
here is my code:
local rndm1 = math.random()
local rndm2 = math.random()
local rndm3 = math.random()
local rndm4 = math.random()
local UIP = workspace.UIP.Value
while true do
if rndm1 == 0 then
rndm1 = math.random()
else
break
end
wait()
end
while true do
if rndm4 == 0 then
rndm4 = math.random()
else
break
end
wait()
end
local rndm11 = math.ceil(rndm1*254)
local rndm22 = math.ceil(rndm2*254)
local rndm33 = math.ceil(rndm3*254)
local rndm44 = math.ceil(rndm4*254)
local StaticLocalIP = rndm11.. ".".. rndm22.. ".".. rndm33.. ".".. rndm44
print(StaticLocalIP)
when I tried putting everything in a while loop it worked but when I took it out I just kept getting this number in the output:
100.33.234.106
Any ideas on why this is happening?
