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

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

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

1 comment

0

this is infinite “none”

1 answer

✓ Accepted answer
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

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