How to get Model's position, while we still need Part's position

if t >= 1 then
		egg.Position = endPos -- or egg.BasePart.Position (idk why this things didnt work)
		return
	end
	
	local NewPos = ArcPos(StartPos, endPos, t, height)
	egg.Position = NewPos -- or egg.BasePart.Position (idk why this things didnt work)
end)

egg is a part, and its script from module script
how do i get the model’s position while get the Part’s part

models dont have a position property but they do have a PivotTo() method

if t >= 1 then
		-- egg.Position = endPos -- or egg.BasePart.Position (idk why this things didnt work)
		egg:PivotTo(CFrame.new(endPos))
		return
	end
	
	local NewPos = ArcPos(StartPos, endPos, t, height)
	-- egg.Position = NewPos -- or egg.BasePart.Position (idk why this things didnt work)
	egg:PivotTo(CFrame.new(NewPos))
end)
2 Likes

im using a lerp, and the model arent animated, unless its a part

1 Like

how do i make it work on Models and part