script.Parent.Fire.OnServerEvent:Connect(function()
local bullet = Instance.new("Part",workspace)
bullet.BrickColor = BrickColor.Random()
bullet.Position = script.Parent.Handle.Pointer.Position
bullet.Anchored = true
bullet.Size = Vector3.new(0.5, 0.5, 1)
bullet.Shape = "Cylinder"
for i = 1,100 do
if bullet == nil then
break
end
print (bullet.Position)
bullet.CFrame = bullet.CFrame + Vector3.new(0,0,1.22)
if i == 99 then
bullet:Destroy()
end
wait ()
end
end)
Problem with the script is when i aim at a other direction it keeps aimming to south even if i point the gun to east,north,west

2 comments
I think you should change this line of code "bullet.CFrame = bullet.CFrame + Vector3.new(0,0,1.22)"
I dont know anything to change there. Can you try helping out