Lemme explain. lol
I'm trying to code grass to make it look more realistic (in Roblox), but for some reason the grass doesn't sync up with the different size changes. I'm trying to get it so that the grass doesn't stay the same size, but instead changes it up. (1x1x1>1x2x1>2x2x1>.65x1.4x.9>etc)
<Boi y u tryna code grass>
B/c I'm bored.
<Any errors?>
Nope, no errors. I'm not quite sure what I'm doing wrong either.
This's the grass script:
local grass = script.Parent:WaitForChild('Mesh') local num1, num2 = 1, 1 while true do for i = num2, num1 do grass.Scale = Vector3.new(.6+(.4/50*i),.6+(.4/50*i),1.9+(.4/50*i)) wait(1/20) end num1 = num2 num2 = Random.new():NextInteger(1, 60) if num1 > num2 then num2 = num1-num2 end if num2 > num1 then num2 = num2-num1 end for i = num1, num2, -1 do grass.Scale = Vector3.new(.6+(.4/50*i),.6+(.4/50*i),1.9+(.4/50*i)) wait(1/20) end end
If you have any questions, please let me know. :)
<EDIT> I just rewrote the script. :P