How to increase size in one direction?

How to increase size in one direction?

Hello. Normally to increase the size in one direction via tweenservice, id increase the size to x and the position to x/2. However, i am currently making a energy wave effect, and its quite tricky due to the part needing to be facing the same direction has the hrp. Ive tried alot of things but none were successful. Any tips?

Here is the code and a video of what the script currently does.
code:

local charge = game.ServerStorage:WaitForChild("KameCharge")
local wave = game.ServerStorage:WaitForChild("KameWave")
local ts = game:GetService("TweenService")


--tween

local info = TweenInfo.new(
	3,
	Enum.EasingStyle.Cubic,
	Enum.EasingDirection.Out,
	0,
	false,
	0.1
)



local GoalTransparency = {
	Transparency = 1
}





game.ReplicatedStorage.Kamehameha.OnServerEvent:Connect(function(player, MousePos)
	local character = player.Character
	local humanoid = character.HumanoidRootPart
	local rarm = character:FindFirstChild("Right Arm")
	
	local newcharge = charge:Clone()
	newcharge.Parent = rarm 
	newcharge.Position = rarm.Position - Vector3.new(0, 1, 0)
	
	
	local Weld = Instance.new("WeldConstraint")
	Weld.Parent = newcharge
	Weld.Part0 = rarm
	Weld.Part1 = newcharge
	
	wait(1)
	
	newcharge:Destroy()
	
	local newwave = wave:Clone()
	newwave.Parent = workspace
	newwave.CFrame = character.HumanoidRootPart.CFrame + Vector3.new(2,0,0)
	newwave.Orientation = character.Torso.Orientation
	local goal = {
		Size = Vector3.new(0, 0, 180),
		--Position = ?? 
	}
	
	local tween = ts:Create(newwave, info, goal)
	tween:play()

	
end)

video: 2022-06-16 18-58-21

Here are some articels -

I’d suggest trying all these and see which helps the most.
Although I believe the last would be the perfect one.

4 Likes

Thank you so much!! I was stuck for like 2 hours!