So i want to make a bullethole when a bullet touches a wall but i dont know how to calculate the position so it looks like it got sprayed on the wall, also my bullet is not raycasted
elseif hit.Name == "wall" then
-- make bullethole
local newbullethole = game.ServerStorage.bullethole:Clone()
newbullethole.Parent = game.Workspace.BulletHoles
newbullethole.CFrame = -- enter cframe here
end
well to do something like this you need the position of where the bullet hit, and since you said it wasnt raycast im assuming it was an actual part so you detect when the bullet touches something then get the position of the bullet before deleting it and put the bullethole’s cframe right there