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

Trying to make it so once pritntext (variable) will be the value of == 3 it will print and break?

Asked by
ZO0PPY 25
4 years ago
Edited 4 years ago
local pritntext = 5


















--Looping the Printing Statements

while true do
    wait()
if pritntext == 3 then
    print("It equals to 3")
elseif
 pritntext == 5.1 then
    print("It equals to 5.1")
else
    print("None of the statements ran!")
    end
end



    wait(5)
    print("Value is going down to 3")
while true do
    wait(0.5)
    pritntext = pritntext - 0.1
    if pritntext == 3 then
        break
    end
end
0
this is infinite “none” Spiritlotus 151 — 4y

1 answer

Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago
local pritntext = 5

--Looping the Printing Statements

while true do
    wait()
    if pritntext == 3 then
        print("It equals to 3")
    elseif pritntext == 5.1 then
        print("It equals to 5.1")
    else
        print("None of the statements ran!")
    end
    wait(5)
    print("Value is going down to 3")
    while true do
        wait(0.5)
        pritntext = pritntext - 0.1
        if pritntext == 3 then
            break
        end
    end
end

please tell us what the problem is next them

Ad

Answer this question