Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
1--Example
2local inttime = 30
3for 0, 30, -1 --pls say my for error in answer
4  inttime.value = inttime.value-1
5end

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

2 answers

Log in to vote
0
Answered by 4 years ago

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

1local start = 30
2 
3for i = start, 0, -1 do
4wait(1)
5print(i)
6end

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 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

oh i solved that why i dont make a int value named intermission lol

0
was about to say that OwOShiba 78 — 4y
0
thx Omerevkizel 27 — 4y

Answer this question