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

How do I put 2 values in greater equal or less equal?

How do I put 2 values within a radius

for example

I have a value of 12,000 and another value of 13,000

what I need is that within (12,000) and (13,000) be executed

and I do not know how it is

local iluminacion = game.Lighting.ClockTime -- variable

while true do
	wait (10) -- verifica cada 10 segundos si es la hora 08:00 AM
	if iluminacion >= 8.000 or <= 9.000 then
		dinero.Value = dinero.Value + 350 -- dolares
	end
end

end

HELP PLS!!!

1 comment

0

you need to compare "iluminacion" agains your range

1 answer

✓ Accepted answer

You need to write full expressions between operators in conditional statements.

if iluminacion >= 8.000 and iluminacion <= 9.000 then
    ...
end

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