Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I change something's CFrame?

script.Parent.Parent.CFrame = -5.46991014, 4.28009176, -13.5900183, 0.000226000004, 4.29999964e-05, 1, -1, 9.71799974e-09, 0.000226000004, 0, -1, 4.3e-05

I never really understood Vector3 or CFrame. The part is a union.

It prints this error when ran: https://gyazo.com/405bed976368e1b6487179c233d5a5ff

2 comments

0

This question only makes it look like you don't understand the most basic coding concepts so I recommend you learn basic Lua.

0

2 answers

--script's parent is union or part
--script.Parent.CFrame = CFrame.new(X,Y,Z)
script.Parent.CFrame = CFrame.new(5,5,5) --example 

If it is a part you can use

script.Parent.Parent:SetPrimaryPartCFrame()

then carry on with the script

This discussion is preserved as it was. New answers, comments, and votes are closed.