Trying to deploy a landmine/spkestrip at slant of surface

Hi, we are trying to deploy a simple landmine/spike strip on a slanted area of ground.

We’ve tried unnumerable options. People have suggest many things. None of them really work as they should.

Do YOU have a WORKING method? Please share it with us.

Please do not share anything you do not personally use and find successful (do not comb the forum for all the broken methods we have already received and then repost them - please)

thank you

1 Like

I don’t know what you “guys” are trying to do but have you tried using a downwards Raycast’s normal? You specified you searched for a number things but haven’t said what things.

If you mean,

we

local deployment = workspace.spikestrip
local result = workspace:Raycast(origin, direction, params)

if result then
     deployment:PivotTo(CFrame.new(result.Position, result.Position + result.Normal))

end

but this doesn’t work. it works fine on flat ground, but does not work on a slanted object.

this is such a common thing to do in most any game, that I’m really surprised at how hard it has been too figure out how to do it in roblox…