i was making a game and in the starting i got again question and keeping this error for a while the script type is: script. so in Y position i tried to edit it and somehow it pop ups this error: 18:55:45.133 - Vector3 is not a valid member of Vector3. is that a bug or an real error? please explain me. heres the script:
wait(5)
local currPOS = script.Parent.Position
local infstring=1
repeat
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y + 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y + 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y + 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y + 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y - 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y - 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y - 0.25 , script.Parent.Position.Z)
wait(0.25)
currPOS.Vector3.new(script.Parent.Position.X , script.Parent.Position.Y - 0.25 , script.Parent.Position.Z)
until infstring == 0

5 comments
Vector3.new() is a constructor function, not a method. It is not a descendant of a Vector3. Use it by itself.
i understand but how the heck it happends like Vector3 is not valid member of Vector3?
It should be script.Parent.Position = Vector3.new(some x position, y position, z position ) You can also minimize your code with a loop
A Vector3 is a matrix that does not contain any other matrices. Its values are X, Y, Z, and 3D offset. It does not have other Vector3's because it is simply not a CFrame.
Your position is a Vector3 which means you're trying to get Vector3.Vector3 which doesn't exist