while true do
local mesh = script.Parent
bruh = Vector3.new(69, 20, 89)
heh = Vector3.new(69, 10, 89)
if script.Parent.Size > bruh and script.Parent.Size < heh then
for i = 1,10 do
wait(1)
mesh.Size = mesh.Size + Vector3.new(0, 1, 0)
end
elseif script.Parent.Size <= bruh and script.Parent.Size >= heh then
for i = 1,10 do
wait(1)
mesh.Size = mesh.Size + Vector3.new(0, -1, 0)
end
So you see how other games that have water goes up and down, I am creating a lava and I want it to reach a certain Vector value and then go back down

1 comment
Any errors? Please properly indent your code to make it easier for us to read.