Thank you it works!
30 Characters
Thank you it works!
30 Characters
Just as a tip, since you said you’re new to CFrames, your table probably seems pretty confusing so I’d like to simplify it for you.
local PartFace = {
North = Part.CFrame * Vector3.new(0, 0, Part.Size.Z/2),
South = Part.CFrame * Vector3.new(0, 0, -Part.Size.Z/2),
West = Part.CFrame * Vector3.new(Part.Size.X/2, 0, 0),
East = Part.CFrame * Vector3.new(-Part.Size.X/2, 0, 0)
}
The :PointToWorldSpace()
function is essentially just a fancy way of saying CFrame * Vector3
Since you’re multiplying a CFrame by a Vector3, the result is going to be a Position Vector3.
When I was learning CFrames a long time ago those functions always confused me so I hope this helps you understand them a bit more.