Hi, I’m making a script and I found a problem, this script needs the position of a model:
local Parent = script.Parent
local Ball = workspace.ball
while true do task.wait()
Parent:MoveTo(Vector3.new(
Parent.???.X,
Ball.Position.Y,
Parent.???.Z
))
end
but I can’t put the [“Origin Position”] in the script because my output says that Origin Position is not a valid model member.
Does anyone know what I do?
As thanksrobama said “models” dont have positions and the parts in it do. I would recommend you to check out the GetPivot function of the model since its pretty much same as the Origin Position thing
GetPivot returns a CFrame which is basically Vector3 but with rotation data. Vector3.new function requires 3 arguments x y and z values of the position, we use the Cframe’s x and z value and create Vector3 with that.