Loop text change without "while true do"

I want my loading text to change in a loop, but I don’t know how, as when I used as example:

while true do
--script
end

It was stuck in side this loop and other parts of the script did not execute, I want it all to run at once.

	LoadingText.Text = "Loading ."
	wait(.5)
	LoadingText.Text = "Loading . ."
	wait(.5)
	LoadingText.Text = "Loading . . ."
	wait(.5)```

I’ve fixed it, I think lol

local LoadingText = -- your loading text object here

local function updateLoadingText()
    while true do
        LoadingText.Text = "Loading ."
        wait(0.5)
        LoadingText.Text = "Loading . ."
        wait(0.5)
        LoadingText.Text = "Loading . . ."
        wait(0.5)
    end
end

spawn(updateLoadingText)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.