So basically I understand that CFrame keeps 2 parts moving together. However, I have two blocks. I want the blocks to stick to eachother but allowing the top one to move. The pole/stick moves where I point my mouse, but how can It stay in the same location if I move the bottom part in the game? I already defined some of the variable already above such as (look)
http://prntscr.com/703rrm
local Pos = CFrame.new(script.Parent.Parent.CFrame.p,(look).p) * CFrame.Angles(0,math.rad(-90),0) script.Parent.CFrame = Pos
So basically the pole moves where I am pointing my mouse, but if you move the bottom block, it slides out and the stick falls. I don't want this to happen. Would I have to use a motor weld or something?
Just make sure everything is welded (I'd suggest a weld plugin on the roblox website)that should make sure that when you move the bottom block the pole moves too.