How can a script check if a value is within a certain range of numbers?
How can I check to see if the currentDroplet value is within a certain range of numbers? For ex. 6-11 or 64-78.
~~~~~~~~~~~~~~~~~currentDroplet = 0
for i = 1, 100, 1 do
--Creates the droplet
droplet = Instance.new("Part")
02 | droplet.BrickColor = BrickColor.new( "Toothpaste" ) or BrickColor.new( "Teal" ) |
03 | droplet.Position = Vector 3. new(math.random( 13 , 30 ),math.random( 97 , 108 ),math.random( 33 , 40 )) |
04 | droplet.Anchored = true |
05 | droplet.Size = Vector 3. new( 1 , 2 , 1 ) |
06 | droplet.Transparency = 0.8 |
07 | currentDroplet = currentDroplet + 1 |
08 | droplet.Name = "Droplet" ..currentDroplet |
10 | droplet.Anchored = false |
12 | if currentDroplet < = 50 then |
13 | droplet.Parent = script.Parent [ "Droplets1-50" ] |
end
~~~~~~~~~~~~~~~~~