Hey guys im trying to make a footprint decal system.
It works well but the only issue is that sometimes if you get to the edge of the snow the decal may overlap onto the concrete instead of the snow.
I’m currently using raycasting to place the footprints but does anyone know how i can stop the footprints overlapping the concrete?
Thanks.
local Result = workspace:Raycast(foot.Position, Vector3.new(0,-2,0))
if Result then
local LookVector = Result.Normal:Cross(humanoid.Parent:WaitForChild("HumanoidRootPart").CFrame.RightVector)
footprint = footprint[side]:Clone()
footprint.CFrame = CFrame.lookAt(Result.Position, Result.Position+LookVector, Result.Normal) * CFrame.Angles(0,-110,0)
footprint.Parent = workspace