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

is PrimaryPartCframe removed because i get an error when i use it?

Asked by 4 years ago

I'm using the command bar and i typed:

game.Workspace["Eden Elevator"].PrimaryPart.PrimaryPartCframe = CFrame.new(18.7076664, 10.1785641, 44.1331825)

and I got this error:

17:53:14.351 - PrimaryPartCframe is not a valid member of Part

i think its because they removed primarypartcframe if this is true then please tell me

0
Try PrimaryPartCFrame I think it has to be spelled like that.. if not then i'm sorry. Asherharding10 12 — 4y

1 answer

Log in to vote
2
Answered by
Roger111 347 Moderation Voter
4 years ago
Edited 4 years ago

ANSWER: PrimaryPart.PrimaryPartCframe is not a thing.

FIX: use PrimaryPart.CFrame = CFrame.new(Vector3.new(18.7076664, 10.1785641, 44.1331825))

Note: You can also use Model:SetPrimaryPartCFrame()

Ad

Answer this question