Hello, I created an effect with CFrame and TweenService, and he has a problem that I don’t know how I can solve, what happens is this, when I walk the effect is left behind, it is as if it was generated behind me, when I stand still the effect is generated in front of me, which is correct. I want the effect to be in front of me whenever I move, but I don’t know what to use to do this, so I’m asking for help. I already looked for tutorials, forums, etc. But I didn’t find anything related to this problem.
Script
game.ReplicatedStorage.BarrageEffectArms.OnServerEvent:Connect(function(player, hum)
local TweenService = game:GetService("TweenService")
local chr = hum.Parent
local plr = game.Players:GetPlayerFromCharacter(chr)
local char = player.Character
local Stand = char.Stand
local StandHRP = Stand:WaitForChild("StandHumanoidRootPart")
local pivotCFrame = StandHRP.CFrame * CFrame.new(0,.5,-8)
local LeftArm = Stand:WaitForChild("Stand Left Arm"):Clone()
LeftArm:ClearAllChildren()
LeftArm.CanCollide = false
LeftArm.Anchored = true
LeftArm.Parent = game.Workspace.OkStopNoEffects
game.Debris:AddItem(LeftArm, .40)
local RightArm = Stand:WaitForChild("Stand Right Arm"):Clone()
RightArm:ClearAllChildren()
RightArm.CanCollide = false
RightArm.Anchored = true
RightArm.Parent = game.Workspace.OkStopNoEffects
game.Debris:AddItem(RightArm, .40)
LeftArm.CFrame = CFrame.new((StandHRP.CFrame * CFrame.new(math.random(-2,-1.5),math.random(-2,2),-4)) .p, pivotCFrame.p) * CFrame.Angles(math.rad(90),0,0)
RightArm.CFrame = CFrame.new((StandHRP.CFrame * CFrame.new(math.random(1.5, 2),math.random(-2,2),-4)) .p, pivotCFrame.p) * CFrame.Angles(math.rad(90),0,0)
local tween1 = TweenService:Create(LeftArm,TweenInfo.new(.40), {Transparency = 1, CFrame = LeftArm.CFrame * CFrame.new(0, -3,0)}):Play()
local tween2 = TweenService:Create(RightArm,TweenInfo.new(.40), {Transparency = 1, CFrame = RightArm.CFrame * CFrame.new(0, -3,0)}):Play()
end)
Stopped (the effect is generated in the correct position)

Walking (the effect is generated behind me, the position is wrong. I want him to be in the same position when i’m standing.)

I tried to do an effect like this

I didn’t shoot a video, because it crashes a lot.
