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

How to start function with wait() at tick without wait() if i use for i? [closed]

Asked by
Shaehl -11
6 years ago

So...

I use function

function Funct()
-- Function with
wait(1)
end

And i use "for i"

for i = 1, 10 do
Funct()
end

If i want use function at one tick, what i must to do?

0
What do you mean by one tick? User#19524 175 — 6y

Closed as Non-Descriptive by Vulkarin and User#19524

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

I don't know what you mean, but if you mean if i is equal to 1 and you want to run code then do this

for i = 1, 10 do
    if i == 1 then
        Funct()
    end
end

Ad