I've been trying for like a week to fix this, instead of only the beam moving forwards where the character is looking it moves the character too
ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
local righthand = player.Character.RightHand
local humanoidroot = player.Character.HumanoidRootPart
wait(0.5)
local Beam = ServerStorage.BeamPart:Clone()
Beam.Parent = game.Workspace
Beam.Anchored = false
Beam.CFrame = righthand.CFrame + humanoidroot.CFrame.lookVector * 1.5
Beam.Parent = game.Workspace
Beam.BrickColor = BrickColor.new("Bright orange")
Beam.Size = Vector3.new(3,3,3)
Beam.Material = Enum.Material.Neon
Beam.CanCollide = false
Beam.Massless = true
Beam.Transparency = 0
local weld = Instance.new("Weld")
weld.Part0 = righthand
weld.Part1 = Beam
weld.Parent = Beam
for i = 1,10 do
wait()
Beam.CFrame = Beam.CFrame + humanoidroot.CFrame.lookVector * 0.5
Beam.Transparency = Beam.Transparency + 0.1
Beam.Size = Beam.Size + Vector3.new(0,1,0)
end
end)

2 comments
It may be the weld
Okay but how to I make it move forward without moving my character too?