I got this script on a brick (part1) for pointing another brick(part2)
part1 = script.Parent.parent.part1
part2 = script.Parent.parent.part2
CFrame.new(part1.Position,part2.Position)
and in the workspace i got two normal bricks called part1 and part2 with anchor and collisions on.
I preferred to use relative object selection because then i can store the parts where I want when I fix the problem.
the script would be theorically correct but when i start the game it doesnt change the orientation

3 comments
is roblox case sensitive?
When defining specific locations of parts and properties, yes, you need to be exact in your wording, or else it will not work correctly (potentially returning "nil")
ROBLOX Lua is very case sensitive, if you make a mistake with capitalization then it will error no matter what.