Hey so I’m making a game and whenever the lava resizes it goes up instead of down I tried using -'s but didn’t work, anyway to fix this?
Can you provide the code you use?
local Lava = game.Workspace.Lava
local LavaInfo = TweenInfo.new(
500,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local LavaTween = TweenService:Create(Lava, LavaInfo, {Size = Lava.Size + Vector3.new(0, 100, 0)}):Play()
in the part properties there is a property called size:
notice how when i increase its Y value the part goes up this is what you need to do in your script:
No…it resizes through script +
no idea what that means post your script if you want debugging
i did already post the script lol wdym
Are you trying to resize the lava back down after you make it bigger?
No. Instead of resizing up it resizes down on the Y axis.
well try using the opposite Y value then?
local LavaTween = TweenService:Create(Lava, LavaInfo, {Size = Lava.Size + Vector3.new(0, -100, 0)}):Play()
-'s dont work, I said that in my post.
Unfortunately this is quite confusing, as in your title you describe the lava as going down instead of up, but in your post you say it goes up instead of down. Additionally, when providing your code please use code blocks by surrounding your code with " ``` ". It makes it much easier to read.
Like This
One thing to note is that when resizing something on the y-axis, as in making its size 100 more on the y-axis, half of the distance extends downward while the other half extends upward (Changing values is not like the scale tool, it changes both sides of the y-axis). This may be your problem.
Also, why not just make the lava tall enough that you can just tween it upwards? No re-sizing, and you’re already going to have to move it up anyways.
EDIT: I’m assuming that you want it to move upwards, like rising lava or something.
When you resize the object it gets bigger both up and down this is because the object retains its position if you want the lava to only go up you will also have to tween the lava upwards by half the amount of the size. Example:
local Lava = game.Workspace.Lava
local LavaInfo = TweenInfo.new(
500,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local LavaTween = game.TweenService:Create(Lava, LavaInfo, {Size = Lava.Size + Vector3.new(0, 100, 0), Position = Lava.Position + Vector3.new(0,50,0)}):Play()
Yes I want to move it up instead of down like rising lava.