I want to give a newly created part momentum in a direction based on where the Player is facing, but I found nothing on the DevForum or DevHub about momentum. Currently, my code defines the bullet’s properties but I do not know how to give it momentum in the direction the player is facing.
local bullet = Instance.new("Part")
bullet.Name = "Bullet"
bullet.Parent = game.Workspace.SummonedThings
bullet.Position = Handle.Parent.SmallerBarrelPart.Position
bullet.Size = Vector3.new(0.05, 0.05, 0.05)
bullet.Shape = Enum.PartType.Ball
bullet.Material = Enum.Material.SmoothPlastic
bullet.Color = Color3.fromRGB(91, 93, 105)
print("fired") --debug print; disable later
local tag = Instance.new("StringValue")
tag.Parent = bullet
tag.Value = playerinstance.Name
tag.Name = "BulletOwner"
canFire = false
wait(0.2)
canFire = true