Attempt to index nil with 'x'

alright how about this

if saved.tramsform then
    loadedModel:PivotTo(CFrame.new(saved.tramsform.x, saved.tramsform.y, saved.tramsform.z)*CFrame.Angles(0, math.rad(saved.tramsform.r), 0))
elseif saved.transform then
   loadedModel:PivotTo(CFrame.new(saved.transform.x, saved.transform.y, saved.transform.z)*CFrame.Angles(0, math.rad(saved.transform.r), 0))
else
   warn("nothing was done")
   table.foreach(saved,print)
end
1 Like

thank you so much saving works now

it just printed either nothing or nil when i loaded

1 Like

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