Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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
0
I suggest looking at the output next time. Majority of the time it’s an easy fix. SethHeinzman 284 — 3y

2 answers

Log in to vote
7
Answered by
Raccoonyz 1092 Donator Moderation Voter
3 years ago

.Value

0
PERFECT y3_th 176 — 3y
0
how did a raccoon just out-script me... well ok then YOUR ON IT >:) maxpax2009 340 — 3y
Ad
Log in to vote
0
Answered by 3 years ago
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.

Answer this question