I have been working on a game recently, and it currently requires mass renaming of parts. I have set up a script to do this mass renaming, and it works, except it is not permanent. The second I hit stop, the changes are reverted and everything goes back to the way it was. My question is, is there a way to make these changes permanent, or do I have to go through and rename everything manually?
This is the script, although I doubt that it will help much.
local bigGroup = script.Parent.Parent.Name
local group = script.Parent:GetDescendants()
local renameSplit = string.split(bigGroup, "e")
local rename = "TRTGL"
local split
for i, v in pairs(group) do
if v.Name ~= "MassNameChanger" then
split = string.split(v.Name, "_")
v.Name = rename .. renameSplit[2] .. "_" .. split[2]
end
end