Advertisement
anphu04

ROBLOX Steal Places Script (STEP 1)

Nov 2nd, 2019
1,339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. -- 2/11/2019: by Konethorix on ROBLOX --
  2. -- 164 is the average length of a brick's infos --
  3. local gui = Instance.new('ScreenGui')
  4. gui.Name = 'place stealer gui'
  5. local scroll = Instance.new('ScrollingFrame')
  6. scroll.Size = UDim2.new(0.8,0,0.8,0)
  7. scroll.Position = UDim2.new(0.1,0,0.1,0)
  8. scroll.BackgroundColor3 = Color3.new(0,0,0)
  9. scroll.BackgroundTransparency = 0.5
  10. scroll.ScrollingDirection = Enum.ScrollingDirection.X
  11. scroll.CanvasSize = UDim2.new(0,20000,0,0)
  12. scroll.Parent = gui
  13. local listlayout = Instance.new('UIListLayout')
  14. listlayout.FillDirection = Enum.FillDirection.Horizontal
  15. listlayout.Parent = scroll
  16.  
  17.  
  18.  
  19. local boxes = {}
  20. local boxnum = 1
  21.  
  22. function makebox()
  23. local boz = Instance.new('TextBox')
  24. boz.Size = UDim2.new(0,250,1,-12)
  25. boz.PlaceholderText = "output goes here"
  26. boz.BackgroundColor3 = Color3.new(1,1,1)
  27. --boz.TextWrapped = true
  28. boz.TextSize = 12
  29. boz.ClearTextOnFocus = false
  30. boz.Text = ''
  31. boz.Parent = scroll
  32. boxes[boxnum] = boz
  33. local page = Instance.new('TextLabel')
  34. page.BackgroundColor3 = Color3.new(0,0,0)
  35. page.BackgroundTransparency = 0.5
  36. page.TextScaled = true
  37. page.Size = UDim2.new(0,40,0,40)
  38. page.Position = UDim2.new(0,0,1,-40-6)
  39. page.Text = boxnum
  40. page.Parent = boz
  41. return boz
  42. end
  43.  
  44. local services = {"Workspace", "Lighting", "ReplicatedStorage"}
  45.  
  46. for i,serv in pairs(services) do
  47. for i,p in pairs(game:GetService(serv):GetDescendants()) do
  48. local boz
  49. if boxes[boxnum] == nil then
  50. boz = makebox()
  51. elseif #boxes[boxnum].Text + 384 > 128^2 then -- check if current box is full
  52. boxnum = boxnum + 1
  53. boz = makebox() -- set the boz var to the new box
  54. else
  55. boz = boxes[boxnum] -- set the boz var to the existing box
  56. end
  57.  
  58.  
  59. function cout(str) -- lmao
  60. boz.Text = boz.Text .. str
  61. end
  62.  
  63. if p:IsA("BasePart") and not p:IsA("Terrain") then
  64. cout('{\n')
  65. cout(p.ClassName..'\n')
  66. cout(p.Name ..'\n')
  67.  
  68. cout(tostring(p.BrickColor.Color) ..'\n')
  69. cout(string.sub(tostring(p.Material), 15) ..'\n') -- remove the Enum.Material.
  70. cout(tostring(p.Reflectance) .. '\n')
  71. cout(tostring(p.Transparency) .. '\n')
  72.  
  73. --[[cout(tostring(p.Orientation) .. '\n')
  74. cout(tostring(p.Position) .. '\n')
  75. cout(tostring(p.RotVelocity) .. '\n')
  76. cout(tostring(p.Velocity) .. '\n')]]
  77. cout(tostring(p.CFrame) .. '\n') -- 3/11: cframe best boi
  78.  
  79. cout(tostring(p.Anchored) .. '\n')
  80. --cout(tostring(p.Archivable) .. '\n')
  81. cout(tostring(p.CanCollide) .. '\n')
  82. --cout(tostring(p.Locked) .. '\n')
  83.  
  84. if p:IsA("Part") then -- only normal parts have the shape property
  85. cout(string.sub(tostring(p.Shape), 15) .. '\n') -- remove the Enum.PartType.
  86. end
  87. cout(tostring(p.Size) .. '\n')
  88.  
  89. --[[cout(tostring(p.BackSurface) .. '\n')
  90. cout(tostring(p.BottomSurface) .. '\n')
  91. cout(tostring(p.FrontSurface) .. '\n')
  92. cout(tostring(p.LeftSurface) .. '\n')
  93. cout(tostring(p.RightSurface) .. '\n')
  94. cout(tostring(p.TopSurface) .. '\n')]]
  95.  
  96.  
  97.  
  98. -- 3/11/2019 --
  99. local mesh
  100. if p:FindFirstChildWhichIsA("BlockMesh") then
  101. mesh = p:FindFirstChildWhichIsA("BlockMesh")
  102. elseif p:FindFirstChildWhichIsA("CylinderMesh") then
  103. mesh = p:FindFirstChildWhichIsA("CylinderMesh")
  104. elseif p:FindFirstChildWhichIsA("SpecialMesh") then
  105. mesh = p:FindFirstChildWhichIsA("SpecialMesh")
  106. end
  107. if mesh ~= nil then
  108. cout('[\n')
  109. cout(mesh.ClassName .. '\n')
  110. cout(mesh.Name .. '\n')
  111. if mesh:IsA("SpecialMesh") then
  112. cout(string.sub(tostring(mesh.MeshType), 15) .. '\n') -- remove the Enum.MeshType.
  113. if mesh.MeshType == Enum.MeshType.FileMesh then
  114. cout(mesh.MeshId .. '\n')
  115. cout(mesh.TextureId .. '\n')
  116. end
  117. end
  118. cout(tostring(mesh.Scale) .. '\n')
  119. --cout(tostring(mesh.VertexColor) .. '\n')
  120. cout(']\n')
  121. end
  122.  
  123.  
  124.  
  125.  
  126. cout('}\n')
  127.  
  128. end
  129. end
  130. end
  131.  
  132. gui.Parent = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement