Vector library problem

I was using the lerp method on an object’s size and attempted to use the new vector library, but it resulted in a type error:

Type 'vector' could not be converted into 'Vector3'

Screenshot:
Screenshot 2025-02-11 210201

because it expects a Vector3, but you passed a vector which isn’t a Vector3

isn’t vector.create the ‘‘new’’ Vector3?

no vector.create is a luau built in type for handling vectors
while Vector3 is used for the Roblox engine,

Edit: to make it more clear vector is a part of Luau while Vector3 is specific to roblox

obj.Size = obj.Size:Lerp(Vector3.new(), alpha)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.