✓ Accepted answer
Lol, you used the repeat function WAY bad (no offense). Here's some help:
What you're looking for is a "for loop." For loops (in the way you need them) have an index (the number that changes), a goal number (the second number), and an optional increment (third number, default is 1).
Here's how the for loop you need works:
for index=1, 4 do
print"Hello world!"
end
This code prints "Hello world!" 4 times. You can also access the index:
for index=1, 4 do
print("This message was printed "..index.." times.")
end
(I think you can tell what this prints)
The index can be any string, like "b," "boba," "bobafett3544isthegreatestpersonever," etc.
All you need to do is remove the repeat(4), the wait(), and add a "for i=1, 4 do" at the beginning, and don't forget the "end."
If this is a good answer, please upvote!
If you have any questions, feel free to comment!
4 comments
That is not the purpose of repeat.
Why down-vote this post. He didn't know how to use repeat correctly so he asked on a help website. There is no valid reason to say this was a bad post, even though it may have an obvious answer.
He down voted because there is something called a wiki that ROBLOX programmers use to get better at scripting. This person obviously did not pay any attention to the wiki
I do not know of the Wiki you speak of. Can you at least give me a link before making my reputation bad because I don't know how to use something?