No, this is NOT correct, as this is NOT a working code! As your code is, it does not work. Let me point out the mistakes:
1. Lines 1-6 script.Parent.workspace? Is there an Instance within the scripts Parent named Workspace? If not, that's one problem, and not necessary to create so many identifiers that are doing the same purpose; It just uses up code-space.
2. Lines 8-9 script.Parent.workspace = Value? You are making those into Identifiers, and also attempting to make them functions, when you are doing it incorrectly.
3. Line 10 if true then? That will always run, because 'true' is, well, true, but, however, an if statement allows a block of code to run if it's Condition is equal/met to it's Argument, or if it equals true, you may want to rethink that part.
4. Line 11 script.Parent.function = Value? Your once again trying to create a function that will not work.
As your code is, it will not work. This is fixable however, but, I am not going to create a full script for you, just an example;
1. This will require a for loop
2. Also will require the wait method
Now, let's rewrite your code;
for i = 5*60, 0, -1 do
print("Countdown:",i)
wait(1)
end
Hope this helped!
1 comment
Dang, that will take forever...