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

Why won't this work anymore?

Asked by 9 years ago

Trying to change the position of a brick with a script.

script.Parent.Position = 0, 0, 0

This used to work. Why won't it work now?

2
Position is a Vector3 value, you need to put the 0,0,0 in a Vector3 function. So it would look something like this Vector3.new(0,0,0) M39a9am3R 3210 — 9y

1 answer

Log in to vote
0
Answered by
rexbit 707 Moderation Voter
9 years ago

A part's position is modified through Vector3, a userdata that refers three values, x,y,z.

part.Position=Vector3.new(0,1.5,0) -- this makes it float.

To include, 0,0,0 is the center of the world.

0
Thanks! ziggygreen 17 — 9y
Ad

Answer this question