Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Random Bits Of Code [CITY LIBERATION]
- -Lib Progress
- enemies = Workspace["Enemies"]
- toe = {}
- function renameAI(table,location)
- i = 0
- for _,v in pairs(location:GetChildren()) do
- i = i + 1
- v.Name = "Enemy" .. i
- table.insert(table,v.Name)
- end end
- function removeTable(table,instance)
- if instance:IsA("StringValue") then
- for _,v in pairs(table) do
- if instance.Value:lower() == v:lower() then
- table.remove(table,v)
- end end end end
- script.ChildAdded:connect(function(p)
- removeTable(toe,p)
- end)
Advertisement
Add Comment
Please, Sign In to add comment