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

Why is if statements only working with loops when I use them??

Halp SH It never works without a loop

2 comments

0

What are you trying to do? If you don't have something like a connected event, code will only run as soon as it is loaded (or as soon as waits end). Do you intend your code to run once at the beginning or sometime else?

0

Its already answered I made this so SHdrivingmenuts could answer it.

1 answer

✓ Accepted answer
enabled = true

while enabled = true do
	if RandomValue == false then
		print("whatever")
		enabled = false
	end
wait()
end

This should do..I wrote it straight in the answer box but I can't see any errors..

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