What solutions have you tried so far?
I have looked around at this devforum and tried some solutions which didnt work. I have also tried asking ChatGPT with no succes (it ususally helps) and i have tried changing up some CFrames in the script, but i just wont understand how they work.
Here is the part of my script:
local newAnglesCFrame = CFrame.Angles(0, math.rad(yOrientationSnapped), 0)
local newCFrame = CFrame.new(math.round(position.X), position.Y, math.round(position.Z))
local offsetCFrame = CFrame.new(normal * clientStructure.Hitbox.Size * 0.5)
offsetCFrame *= newAnglesCFrame
newCFrame *= offsetCFrame