Pivity

Help me with some lua please!!!

Last read Never
#1

I'm not sure if this is where I can post this, or even if I'm allowed to. But I need some help when it comes to some changing text on a 3d2d ui. What I am trying to do is have a loop change text every 1 second. I want the text to cycle though. Here is what I have so far: Shit Code

Now before you roast me, I know it is not correct code, that is why I am here.

What it needs to do: every 1 second it needs to cycle through that list - text{}. So first Status will be set to "Words1" then "Words2" then "Words3" and back to "Words1" and so on. I am not sure how to do this. Please help, it would be appreciated.

#2

https://pastebin.com/tNryasuz

The variable "status" is your text changing every second.

Agree x 2Friendly x 1
#3

What Benn gave you will work. Although personally, I would have taken a slightly different approach to it. status is the string, although it's local so you'll need to access it from within that file.

https://pastebin.com/PybrH1KH

Agree x 2
#4

Thank you for the help, it's really appreciated! :)

Friendly x 1
Users viewing this thread
Nobody