I'm making a gun and I've been trying to figure this out for an hour now. I need the bullet hole on the wall when I shoot my mildly good gun. Any help would be appreciated. (this is part of the code by the way)
if shootable == true and script.Parent.CurrentMag.Value > 0 then
script.Parent.Remotes.Shot:FireServer()
local hole = Instance.new("Part",workspace)
hole.Color = Color3.fromRGB(27, 42, 53)
hole.Anchored = true
hole.CanCollide = false
hole.Size = Vector3.new(0.46, 0.05, 0.56)
hole.CFrame = mouse.Hit
hole.Material = Enum.Material.Granite
hole.Orientation = Vector3.new(mouse.Target)
Debris:AddItem(hole, 7)
It perfectly goes onto the wall but I can't figure out the Orientation.
hole.Orientation = Vector3.new(mouse.Target)
