I Been Trying To Make Tween Function For Model With SetPrimaryPartCFrame
This What i Have Tried:
function Manima.TweenModel(Model,NPos,times)
local modelpri = Model.PrimaryPart ------------Set Model PrimaryPart
local moveto = NPos -----------Position Of Model PrimaryPart Vector3
local movedis = math.abs(modelpri.Position.Magnitude - NPos.Magnitude)
local speed = movedis/times
local FPS = 30
local loop = FPS*speed
for i = 1,loop do
wait(speed/FPS)
Model:SetPrimaryPartCFrame(CFrame.new()) <------ I Stuck Here
end
end