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

How can I set the value of a CFrame?

Asked by 2 years ago

How can I set the value of a CFrame?

I tried doing this but I got an error saying it expected CFrame but got String.

script.Parent.CFrame = "12.5, 5, 13.5"

I also tried doing this:

 script.Parent.CFrame = 12.5, 5, 13.5

But I got a blue line under the whole thing so that means in doesn't work right?

I know its a very very very simple question but I just cant find an answer online for it.

1 answer

Log in to vote
0
Answered by 2 years ago

I found the answer https://developer.roblox.com/en-us/api-reference/datatype/CFrame

0
delete the question or have [solved] in the title greatneil80 2647 — 2y
Ad

Answer this question