Hi, I’m making a projectile ability in Roblox. When the slime ball lands, it creates a puddle on the ground. Right now the puddle always stays flat/horizontal, but I want it to rotate so it matches the exact slope/angle of the part or road surface it landed on.
For example, if the projectile lands on a slightly tilted road or ramp, the puddle should align to that surface instead of staying level.
What is the correct way to do this?
Should I use Raycast and surface normals, and if so, how do I convert that into the puddle’s CFrame/orientation properly?
If possible, I’d also like the puddle to work on uneven track pieces and angled parts.