Invalid argument #1 (Vector3 expected, got nil)

I’m trying to use TweenService to create the effect of wind moving a bush, but I keep receiving errors in relation to changing the position.
Error is: invalid argument #1 (Vector3 expected, got nil)
Image (hopefully it works, this is my first time posting on here):

goal.Position is nil so you cant add a vector3 to it

you are doing goal.Position(nil) = goal.Position(nil) + Vector3.new(10,0,0)

2 Likes

When you post code, please use this format instead of pasting a screenshot of code:

```lua
(code here)
```

To expand on @kylerzong’s answer, you probably just meant:

goal.Position = part.Position + Vector3.new(10, 0, 0)
--              ^^^^ Here. That is, if goal is supposed to be 
--                   10 studs in +X dir of the part's start position.
3 Likes