Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 4 months 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 285 — 4mo

2 answers

Log in to vote
6
Answered by
Raccoonyz 893 Donator Moderation Voter
4 months ago

.Value

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