How do I go through a number ordered model and rename the children to also be number ordered?
Asked by
4 years ago Edited 4 years ago
I have the InCommand plugin to make my life easier but in a power user way but there's something I've never been tought to (I learned scripting through youtube tutorials) and that is... going through loops and doing things to make it ordered by adding an incremental number at the end.
so, I use a temporary script to check if there's any problems and there was but I fixed it and, it still didn't work because I literally don't know how to do that kind of thing, I was never tought that.
Script:
1 | local model = workspace.ServerRoom |
4 | for k, v in pairs (model [ "ServerPack" ] .. i:GetChildren()) do |
Error:
Runtime error in InCommand script: ServerPack is not a valid member of Model "Workspace.ServerRoom" (x2) - Studio