I want to create this for one of my upcoming games, but I am currently at a halt since I need this to further develop. The local fulltext is the text that prints in game, but that isn't necessary I need the part that loops the scrolling process repeatedly with no end
1 | local fulltext = "Please stay off the platform" -- change to the text you want |
2 | local text = "" |
3 |
4 | for i = 1 ,#fulltext do |
5 | text = fulltext:sub( 1 ,i) |
6 | script.Parent.Text = text |
7 | wait() |
8 | end |
Wrap you code up in a while loop.
That will run the code inside of the loop forever. Make sure you put a wait in the loop because if you don't it will error. Here is the wiki page on loops:
https://www.robloxdev.com/articles/Roblox-Coding-Basics-Loops
Example:
1 | while true do |
2 | -- your code here |
3 |
4 | wait( 0.01 ) |
5 | end |