I successfully got the function to work, but the position of the part will not change after waiting 3 seconds. Can you help me?
01 | function myPart(myPosition) |
02 | local part = Instance.new( "Part" ) |
03 | part.Anchored = true |
04 | part.BrickColor = BrickColor.new( "Black" ) |
05 | part.Position = myPosition |
06 | part.Parent = workspace |
07 |
08 | return myPart |
09 | end |
10 |
11 | local myPartData = myPart(Vector 3. new( 2 , 7 , 1 )) |
12 | wait( 3 ) |
13 | myPartData.Position = Vector 3. new( 2 , 7 , 2 ) |