Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does it keep on breaking the loop even though its false?

So i made a loading text screenGUI, but it does not function correctly?

local highest = 4
local CanBegin = false

if game.ReplicatedStorage.IsReadyFinished == true then		
while true do
	wait(2)
	local Texts = {
	".",
	"..",
	"..."}	
	for i, v in pairs(Texts) do
		script.Parent.Text = v
		wait(0.5)
	end
	if game.ReplicatedStorage.IsReadyFinished == false then
		break
		
	end
end

1 comment

0

I suggest looking at the output next time. Majority of the time it’s an easy fix.

2 answers

✓ Accepted answer

.Value

2 comments

0

PERFECT

0

how did a raccoon just out-script me... well ok then YOUR ON IT >:)

local highest = 4
local CanBegin = false

if game.ReplicatedStorage.IsReadyFinished.Value == true then      
while true do
    wait(2)
    local Texts = {
    ".",
    "..",
    "..."}  
    for i, v in pairs(Texts) do
        script.Parent.Text = v
        wait(0.5)
    end
    if game.ReplicatedStorage.IsReadyFinished.Value == false then
        break
    end
end
end

It May Be Because You Forgot A End And Because You Forgot To Put .Value So It Will Auto Error.

This discussion is preserved as it was. New answers, comments, and votes are closed.