Still have questions? Join our Discord server and get real time help.
0

# Easy Question: How i make a variable but this variable is equal in all scripts?

--Example
local inttime = 30
for 0, 30, -1 --pls say my for error in answer
inttime.value = inttime.value-1
end



I want to show this in gui so i wanna use this variable in local script too

0

Also remember that when using for loops the first number, in this case it's 0 is the start, the second one, which is 30, is the end, and the third number, (for you it was -1, but it should of been 1) is the end.

If you're trying to make a countdown script, do something like this

local start = 30

for i = start, 0, -1 do
wait(1)
print(i)
end


This will countdown from 30

0
Also make sure you put a 'do' after your loop to specify that you're done writing the increment, etc. BIuehawks 62 — 4mo