Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function makeblocks(i)
- local block = Instance.new("Part")
- block.Parent = workspace
- local i = 0;
- for k,v in next,workspace:GetDescendants() do
- if v:IsA"BasePart" then
- i = i+1;
- v.Name = i;
- end;
- end;
- end
- for i =1, 100 do
- makeblocks(i)
- end
- --function makeblocks(i)
- --
- -- local block = Instance.new("Part")
- -- block.Parent = workspace
- -- for _,v in pairs(workspace:GetChildren()) do
- -- if v:IsA("Part") then
- -- v.Name = tostring(i)
- -- end
- --end
- --end
- --
- --for i =1, 100 do
- -- makeblocks(i)
- -- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement