[UNSOLVED] Saving & Loading Models

Can you print out what does dataTable consist of? Print the table itself.

Screen Shot 2024-05-18 at 1.09.58 AM
It’s now spawning the saved elements, but it isn’t at the same time. It’s only spawning the FIRST one, and any other is disregarded.

There’s the problem.

If you do .Name, it throws an error because there is no such key named as that in your saved table. Try v.UtilName.

I did. This is after I did that. My problem now is it’s only creating the first element in the table, and any other just isn’t created.

There’s probably something wrong with your saving function, as it seems like it only saved one element. To make sure more than one element is saved, use a print statement inside the for loop which prints each element’s name that is being saved.

Huh. I seemed to have not taken into account that models don’t have CFrames… Yikes. In the LocalScript, I did util.CFrame instead of util.PrimaryPart.CFrame. Really stupid of me. Well, this problem is solved! Thanks for all your help. :slight_smile:

1 Like

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