Problem: I am trying to create bullet trails that originate from the viewmodel’s gun. But when I shoot the bullet trail is going in random places not in mouse position
VIDEO:
SCRIPT:
local newbullet = replicatedstorage.OTHEROBJECTS.Bullet:Clone()
newbullet.Parent = workspace
newbullet.Position = viewmodel.Barrel.Position
newbullet.CFrame *= CFrame.lookAt(newbullet.Position, mouse.Hit.Position, newbullet.CFrame.UpVector)
local linearvelocity = newbullet.VelocityHolder.LinearVelocity
linearvelocity.MaxForce = math.huge
linearvelocity.VectorVelocity = newbullet.CFrame.LookVector * 100