Yeah, I was confused, replace it with the actual tree model you want to tween.
It is saying how CFrame is not part of the primary part even though it is, and I checked the spelling
Can you give me a screenshot of the error?
So apparently something inside your script is indexing the model’s CFrame… which doesn’t exist and hence throws an error. I checked the function which is clearly only indexing the Primary part’s CFrame. I advise you to look through your script and see if you can find anything like tree.CFrame
.
Ok i fixed it now it is saying how Positioon is not a valid member of CFrame
That’s impossible. CFrame has a position property that is returned as a Vector3.
I fixed that issue not is it sayinginvalid argument #1 (CFrame expected, got Vector3) on line 41
To access the position of a CFrame you do part.CFrame.Position
a CFrame includes both position and orientation, so while yes, it does include a position, it also includes an orientation. To change the Position of a CFrame, you use CFrame.New(0,0,0)
I used your earlyer script and it kinda worked, but i could not eddit the rotation of it and when ever eddited something it stayed the same outcome
local goal = {CFrame = script.Parent.CFrame * (CFrame.new(0,-3,0) * CFrame.Angles(0,0,math.rad(75)))}
Idk what you mean. Yes I know about CFrame’s components. Also to change a CFrame’s Position why would you use CFrame.new()
. All you have to is add a Vector 3 to it, and it will be translated.
Update. I got it to wortk, thankyou for trying!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.