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

How do I change the position property via script?

So I've been trying to change the position of a part and I tried this:

local part = script.Parent
part.Position = 198.92, 8.949, 345.3

but it shows me a script error and I don't know what to do.

1 answer

✓ Accepted answer

To change the position property of a part, you need to use Vector3.new():

local part = script.Parent
part.Position = Vector3.new(198.92, 8.949, 345.3)

I hope this helped!

1 comment

0

Thank you so much!

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