Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Position is not a valid member of Part?

Asked by 3 years ago
Edited 3 years ago

Getting this error in my script: Position is not a valid member of Part. I'm not quite sure how this is even possible. . . as a Part always has have a position in the world space. I ran the script a few times to make sure it wasn't just a flaw, but I keep getting the same error. The script that it occurs in is quite massive, so I'll just post the line in which it occurred. If you need the full script, I can post it upon request.

vehicle.TopRightHinge.BodyGyro.CFrame = CFrame.new(vehicle.TopRightHinge.Position, vehicle.TopRightHinge.Right.Position)

Is there something here I'm missing or not seeing?

Any help is appreciated.

0
CFrame.new requires 3 parameters CreationNation1 459 — 3y
1
@CreationNation1 Not according to Roblox API reference. https://developer.roblox.com/en-us/api-reference/class/BodyGyro TheEthanMaverick 7 — 3y
0
CFrame can have 2 Vector3 parameters to form a Vector3 located at pos and pointing at lookTo RAFA1608 543 — 3y
0
CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5,0)) --points up but its located at 0,0,0 RAFA1608 543 — 3y
0
Also, regarding your question, I've never encountered that error, like, ever. That's weird, for sure. Perhaps try part.CFrame.Position if the problem persists? RAFA1608 543 — 3y

Answer this question