function game.ReplicatedStorage.MV.M1.Fire:OnServerInvoke(player) local b3 = Instance.new("Part") b3.Shape = "Cylinder" b3.Material = "Metal" b3.Transparency = 0.5 b3.Size = Vector3.new(1,4,4) b3.Anchored = true b3.CanCollide = false b3.BrickColor = BrickColor.new("Really red") b3.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,1,-2) *CFrame.Angles(0,51.8,0) b3.Parent = game.Workspace for i = 1,25 do wait(0.01) b3.Size = b3.Size + Vector3.new(1,0,0) b3.CFrame = b3.CFrame - Vector3.new(0,0,1) end wait(1) b3:Destroy() end
Basically the issue is it goes to the wrong direction as it gets longer, anyway I can fix this?