Hello! I’m trying to make a gun, everything is fine, the only problem is that the bullet does not come out as it should, how can I solve it? Example Clip
Code
function Activated(Plr,target)
local Position = Handle.Position
local Bullet = Instance.new("Part")
Bullet.Anchored = false
Bullet.CanCollide = false
Bullet.Material = Enum.Material.Neon
Bullet.Size = Vector3.new(1.57, 0.213, 0.21)
Bullet.Color = Color3.fromRGB(255, 255, 0)
Bullet.CFrame = CFrame.new(Position,target)
Bullet.Parent = workspace
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BodyVelocity.velocity = Bullet.CFrame.LookVector * 100
BodyVelocity.Parent = Bullet
end
Yea the CFrame.new works with the front surfce CFrame.new(Pos,PosToLookAt)
the Cframe uses the part LookVector
The LookVector can be found by just adding a decal then just look for the high lighted part Then make sure use Z when u using CFrame for positioning parts/models on their back or front