Model:SetPrimaryPartCFrame() failed

This error is thrown every time you load the game.

This is the script referenced in the error
image

When I find all/replace all with what is mentioned in the error, it only returns this


image

Any help would be appreciated. :slight_smile:

That is indicating that the Model.PrimaryPart property was never assigned, meaning that you cannot use Model:SetPrimaryPartCFrame() on it.

However, because Model:SetPrimaryPartCFrame() has been deprecated for some time now, it’s recommended to use Model:PivotTo() in place of that.

You shouldn’t even be using :SetPrimaryPartCFrame(), just use :PivotTo(), the former is deprecated, it won’t work soon anyways.

1 Like