CC:SetPrimaryPartCFrame(cC.PrimaryPart.CFrame + CFrame.new(Vector3.new(0,80-11.15,0)))
I cant set CFrame. why?
CC is model, cc has parts , cc has primary part.
cC is same the CC
CC:SetPrimaryPartCFrame(cC.PrimaryPart.CFrame + CFrame.new(Vector3.new(0,80-11.15,0)))
I cant set CFrame. why?
CC is model, cc has parts , cc has primary part.
cC is same the CC
Why not just do CC
then? Also are you getting any errors on the Output at all?
writes in the title. I said I can’t set frame. And when I say the same, it’s not exactly the same.
Could you try doing
CC:SetPrimaryPartCFrame(cC.PrimaryPart.CFrame + CFrame.new(Vector3.new(0, (80 - 11.15),0)))
And see if that makes any difference?
its same. so same (80-11.15) = 80-11.15
Make sure the Model has a PrimaryPart, also if there are any errors tell us what they are.
Firstly CFrame.new takes 3 vector values, so you don’t do Vector3.new as one of the values. It should look like CFrame.new(1,2,3)
Secondly you want to add a Vector3 to the current PrimaryPart CFrame so you should do:
CC:SetPrimaryPartCFrame(cC.PrimaryPart.CFrame + Vector3.new(0,80-11.15,0))
Depending on what youre trying to do
Either do
cC.PrimaryPart.CFrame + Vector3.new(0,80-11.15,0)
Like Essence said (this just adds to the position globally)
or
cC.PrimaryPart.CFrame * CFrame.new(0,80-11.15,0)
(This moves it based on the rotation of the part)