So, my problem here is that the part I’m scripting expands for a second and then launches forward. I want it to move while expanding, I’ve tried moving the script after the body velocity thing but it still does that.
re.OnServerEvent:Connect(function(player, givenVector)
local AttackMClone = game:GetService("ReplicatedStorage"):WaitForChild("AttackM"):Clone()
AttackMClone.Position = player.Character.HumanoidRootPart.Position
AttackMClone.Parent = workspace
local BV = Instance.new("BodyVelocity")
BV.Parent = AttackMClone
BV.P = 100000000
BV.MaxForce = Vector3.new(1,1,1) * 100000000
BV.Velocity = (givenVector - player.Character.HumanoidRootPart.Position).Unit * 100
local tweenService = game:GetService("TweenService")
local goal = {Size = Vector3.new(19, 19, 19)}
local tweenInfo = TweenInfo.new(0.75, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
local tween = tweenService:Create(AttackMClone, tweenInfo, goal)
tween:Play()
game.Debris:AddItem(AttackMClone, 0.75)
end)```