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

Less than a number but greater than a number?

So I'm making a day/night script and I was wondering about why the less or greater statement doesn't work?

	if Timer >= 6 and <= 17 then

So if the timer is more than 6 and less than 17 then it runs a code but under the <= 17 I get a red error

Workspace.Part.Script:11: Expected identifier when parsing expression, got '<='

1 comment

1

You Have To Put The Variable "Timer" Before Your "<= 17"

1 answer

✓ Accepted answer

You have to add another check, following the "and".

if Timer >= 6 and Timer <= 17 then

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