How to make lava go up like TD

Like ya know the repeated Back out tween? just wanna know how to keep on making it go up instead of just one time.

1 Like

you may need to have many lavas
but idk
like lava 1 rises to like a certain poont
then water 2 rises higher
unsure tho

what the heck is td lol

technological destruction

only script the lava, dont have any special script

hmmmm

you need a lava rise script and also a color change script then spam it 786543786834674987435 times i think

also you can use a for loop for repeating it

How? how do you do that?

How to do that?

a while true do or a spawn(function() script?

Idk if this will work but ill give you the solution badge

Currently on mobile so indents don’t exist, here’s spaces instead
If you wish to use native EventScript, replace Lib.Map with script.Parent

If you have this following line before…
local TweenService = game:GetService("TweenService")
Replace game.TweenService with TweenService

spawn(function()
 for i = 1, 10 do --if indefinite, replace with while true do
  local water = Lib.Map._Water1
  game.TweenService:Create(water, TweenInfo.new(0.25, Enum.EasingStyle.Back), {CFrame = water.CFrame * CFrame.new(0, 5)}):Play()
  wait() -- first argument must be a number, in seconds
 end
end)
1 Like