Attempt to index nil with Position

I don’t know why its doing this, Am i lerping wrong?

for i = 0,1,.01 do
		wait()
		PART.Position = PART.Position:Lerp(TARGET.Position, i)
end

image

The variable “PART” is nil (aka it doesn’t exist, therefore your code is erroring), make sure you are defining the right instance within the variable.

2 Likes

its either the part or the target that is basically not found, be sure that both exists.

2 Likes