I am working on a simple gun for a friend and at the moment all i'm trying to do is make it fire a bullet. The only thing that I can't figure out is why in the heck the bullet won't even fall to the ground. It just stays there like it's anchored but its not. I have tried everything, please help. (I am not anywhere near done with the gun.)
local handle = script.Parent.Handle
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
script.Parent.Activated:connect(function()
local bullet = Instance.new("Part",game.Workspace)
local bulletPos = script.Parent.FirePart.Position
local bodyVelocity = Instance.new("BodyVelocity",bullet)
bullet.FormFactor = "Custom"
bullet.Size = Vector3.new(.2,.2,.2)
bullet.CanCollide = false
bullet.Anchored = false
bullet.TopSurface = "Smooth"
bullet.BottomSurface = "Smooth"
bullet.CFrame = CFrame.new(bulletPos,mouse.Hit.p)
bullet.CFrame = bullet.CFrame + bullet.CFrame.lookVector * 3
bodyVelocity.velocity = bullet.CFrame.lookVector * 200
end)

2 comments
Why is the bullet suppose to fall to the ground?
No, it does not move at all. It just sits there like it is anchored.