The script below doesn't work. How do I improve it?
local Module = require(game.ReplicatedStorage.ModuleScript)
while true do
wait()
if Module.var == 1 then
while true do
wait(2)
Module.var2 = Module.var2 + 100
end
end
end
The script below doesn't work. How do I improve it?
local Module = require(game.ReplicatedStorage.ModuleScript)
while true do
wait()
if Module.var == 1 then
while true do
wait(2)
Module.var2 = Module.var2 + 100
end
end
end
Nvm! I just found it out. :D
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
What do you mean by check variables?
like if a variable equals 4 then do something