TheFlamingBlaster

RBX LUA: Fix names in DataModel

Jun 26th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. --[[
  2.     This software has been deemed free software by it's creator("TheFlamingBlaster")
  3.     TheFlamingBlaster allows you to distribute this software, and any part of it to anyone without prior permission, and modify it under 2 conditions:
  4.     1. The software that is produced from the modification is deemed as free software.
  5.     2. This notice is retained, and those who use this software know that they have the right to modify it.
  6.    
  7.     By using this software, you agree to this.
  8. --]]
  9.  
  10. for i,v in pairs(game:GetChildren()) do
  11.     ypcall(function()
  12.         if v.Name ~= v.ClassName then
  13.             print(v.ClassName..' was '..v.Name..', now changing...')
  14.             v.Name = v.ClassName
  15.         end
  16.        
  17.     end)
  18.     wait()
  19. end
Add Comment
Please, Sign In to add comment