You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
A Creator Of Hinge Constraints
- What is the issue? Include screenshots / videos if possible!
i’m try to set the cframe but positionates far of the expected position
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
yes i’m search
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
this is my code
local a1 = lastpart:FindFirstChild("Attachment") or Instance.new("Attachment") local a2 = v:FindFirstChild("Attachment") or Instance.new("Attachment") a1.Parent = lastpart a2.Parent = v local c1 = lastpart.CFrame:Inverse()*v.CFrame local c2 = v.CFrame:Inverse()*lastpart.CFrame local p1 = lastpart.Position local p2 = v.Position local Distance = (v.Position-lastpart.Position).Magnitude local s1 = v.Size.Magnitude local s2 = lastpart.Size.Magnitude a1.CFrame = CFrame.new(p1,p2) a2.CFrame = CFrame.new(p2,p1)
- Note: the extra variables is for before tryes for positionate correctly
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.