Advertisement
anphu04

ROBLOX Steal Places Script 1.5 (STEP 1)

Feb 28th, 2020
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.18 KB | None | 0 0
  1. -- 27/2/2020: AUTOHOTKEY RULES!!! --
  2. local plr = game:GetService("Players").LocalPlayer
  3. local mouse = plr:GetMouse()
  4. wait(1)
  5.  
  6. local gui = Instance.new('ScreenGui')
  7. gui.Name = "PLACE STEALER GUI by Konethorix"
  8. gui.DisplayOrder = 999
  9. gui.ResetOnSpawn = false
  10. local scroll = Instance.new('ScrollingFrame')
  11. scroll.Size = UDim2.new(0.7,0,0.7,0)
  12. scroll.Position = UDim2.new(0.15,0,0.15,0)
  13. scroll.BackgroundColor3 = Color3.new(0,0,0)
  14. scroll.BackgroundTransparency = 0.5
  15. scroll.ScrollingDirection = Enum.ScrollingDirection.Y
  16. scroll.CanvasSize = UDim2.new(0,0,5,0)
  17. scroll.Parent = gui
  18. local gridlayout = Instance.new('UIGridLayout')
  19. gridlayout.CellPadding = UDim2.new(0,0,0,5)
  20. gridlayout.CellSize = UDim2.new(0.2,0,0.03,0)
  21. gridlayout.SortOrder = "LayoutOrder"
  22. gridlayout.Parent = scroll
  23.  
  24.  
  25.  
  26. local boxes = {}
  27. local boxnum = 1
  28.  
  29. function makebox()
  30.     local boz = Instance.new('TextBox')
  31.     boz.Name = boxnum
  32.     boz.Size = UDim2.new(0,250,1,-12)
  33.     boz.PlaceholderText = "output goes here"
  34.     boz.BackgroundColor3 = Color3.new(1,1,1)
  35.     --boz.TextWrapped = true
  36.     boz.TextSize = 12
  37.     boz.ClearTextOnFocus = false
  38.     boz.TextWrapped = true
  39.     boz.Text = ''
  40.     boz.Parent = scroll
  41.     boxes[boxnum] = boz
  42.     local page = Instance.new('TextLabel')
  43.     page.BackgroundColor3 = Color3.new(0,0,0)
  44.     page.BackgroundTransparency = 0.5
  45.     page.TextScaled = true
  46.     page.TextColor3 = Color3.new(1,1,1)
  47.     page.TextStrokeTransparency = 0
  48.     page.Size = UDim2.new(0,25,0,25)
  49.     page.Position = UDim2.new(0,0,1,-25)
  50.     page.Text = boxnum
  51.     page.Parent = boz
  52.     return boz
  53. end
  54.  
  55.  
  56. function scan(par)
  57.     for i,p in pairs(par:GetDescendants()) do
  58.         local localstr = ''
  59.         local ok = false
  60.        
  61.         function cout(str) -- lmao
  62.             localstr = localstr .. str
  63.         end
  64.         function str(s)
  65.             local isAsset = string.find(s, "http://www.roblox.com/asset/?id=", 1, true)
  66.             if not isAsset then
  67.                 return '"' ..s.. '"'
  68.             else
  69.                 return '"' .. "rbxassetid://" ..string.sub(s, 33).. '"'
  70.             end
  71.         end
  72.         function vector3(vec)
  73.             local x,y,z = vec.X, vec.Y, vec.Z
  74.             local function round(num)
  75.                 return tostring(math.floor(num*1000)/1000)
  76.             end
  77.             return "Vector3.new(" ..round(x).. ',' ..round(y).. ',' ..round(z).. ")"
  78.         end
  79.         function vector2(vec)
  80.             local x,y = vec.X, vec.Y
  81.             local function round(num)
  82.                 return tostring(math.floor(num*1000)/1000)
  83.             end
  84.             return "Vector2.new(" ..round(x).. ',' ..round(y).. ")"
  85.         end
  86.         function color3(col)
  87.             return "Color3.fromRGB(" ..tostring(math.floor(col.r*255)).. ',' ..tostring(math.floor(col.g*255)).. ',' ..tostring(math.floor(col.b*255)).. ")"
  88.         end
  89.         function cframe(cf)
  90.             local x,y,z, xx,yx,zx, xy,yy,zy, xz,yz,zz = cf:GetComponents()
  91.             local function round(num)
  92.                 return tostring(math.floor(num*10000)/10000)
  93.             end
  94.             return "CFrame.new(" ..
  95.                 round(x).. ',' ..round(y).. ',' ..round(z).. ',' ..
  96.                 round(xx).. ',' ..round(yx).. ',' ..round(zx).. ',' ..
  97.                 round(xy).. ',' ..round(yy).. ',' ..round(zy).. ',' ..
  98.                 round(xz).. ',' ..round(yz).. ',' ..round(zz)..
  99.              ")"
  100.         end
  101.         function udim2(dim)
  102.             return "UDim2.new(" ..dim.X.Scale.. ',' ..dim.X.Offset.. ',' ..dim.Y.Scale.. ',' ..dim.Y.Offset.. ")"
  103.         end
  104.        
  105.        
  106.                
  107.         if p:IsA("BasePart") and not p:IsA("Terrain") then
  108.             ok = true
  109.             cout('{')
  110.             cout(str(p.ClassName)..',')
  111.             cout(str(p.Name) ..',')
  112.            
  113.             cout(color3(p.BrickColor.Color) ..',')
  114.             cout(tostring(p.Material) ..',') -- remove the Enum.Material.
  115.             cout(tostring(p.Reflectance) .. ',')
  116.             cout(tostring(p.Transparency) .. ',')
  117.             cout(tostring(p.Anchored) .. ',')
  118.             cout(tostring(p.CanCollide) .. ',')
  119.             if p:IsA("Part") then -- only normal parts have the shape property
  120.                 cout(tostring(p.Shape) .. ',') -- remove the Enum.PartType.
  121.             elseif p:IsA("MeshPart") then
  122.                 cout(str(p.MeshId) .. ',')
  123.                 cout(str(p.TextureID) .. ',')
  124.             end
  125.             cout(vector3(p.Size) .. ',')
  126.             cout(cframe(p.CFrame) .. ',') -- 3/11: cframe best boi
  127.         end
  128.        
  129.         if ok then
  130.             cout("CH={") -- childrens
  131.                
  132.             for i,mp in pairs(p:GetChildren()) do
  133.                 local ok2 = false
  134.                
  135.                 if mp:IsA("BlockMesh") or mp:IsA("CylinderMesh") or mp:IsA("SpecialMesh") then
  136.                     ok2 = true
  137.                     cout('{')
  138.                     cout(str(mp.ClassName)..',')
  139.                     cout(str(mp.Name) ..',')
  140.                    
  141.                     cout(vector3(mp.Scale) .. ',')
  142.                     cout(vector3(mp.VertexColor) .. ',')
  143.                    
  144.                     if mp:IsA("SpecialMesh") then
  145.                         cout(tostring(mp.MeshType) .. ',')
  146.                         cout(str(mp.MeshId) .. ',')
  147.                         cout(str(mp.TextureId) .. ',')
  148.                     end
  149.                 elseif mp:IsA("Decal") or mp:IsA("Texture") then
  150.                     ok2 = true
  151.                     cout('{')
  152.                     cout(str(mp.ClassName)..',')
  153.                     cout(str(mp.Name) ..',')
  154.                    
  155.                     cout(str(mp.Texture) .. ',')
  156.                     cout(tostring(mp.Transparency) .. ',') 
  157.                     cout(tostring(mp.Face) .. ',')
  158.                    
  159.                     if mp:IsA("Texture") then
  160.                         cout(tostring(mp.StudsPerTileU) .. ',')
  161.                         cout(tostring(mp.StudsPerTileV) .. ',')
  162.                     end
  163.                 elseif mp:IsA("SurfaceGui") or mp:IsA("BillboardGui") then
  164.                     ok2 = true
  165.                     cout('{')
  166.                     cout(str(mp.ClassName)..',')
  167.                     cout(str(mp.Name) ..',')
  168.                    
  169.                     cout(tostring(mp.AlwaysOnTop) .. ',')
  170.                    
  171.                     if mp:IsA("BillboardGui") then
  172.                         cout(udim2(mp.Size) .. ',')
  173.                         cout(vector2(mp.SizeOffset) .. ',')
  174.                         cout(vector3(mp.StudsOffset) .. ',')
  175.                     elseif mp:IsA("SurfaceGui") then
  176.                         cout(tostring(mp.Face) .. ',')
  177.                     end
  178.                 elseif mp:IsA("PointLight") then
  179.                     ok2 = true
  180.                     cout('{')
  181.                     cout(str(mp.ClassName)..',')
  182.                     cout(str(mp.Name) ..',')
  183.                    
  184.                     cout(tostring(mp.Brightness) .. ',')
  185.                     cout(color3(mp.Color) .. ',')
  186.                     cout(tostring(mp.Range) .. ',')
  187.                 elseif mp:IsA("SpotLight") or mp:IsA("SurfaceLight") then
  188.                     ok2 = true
  189.                     cout('{')
  190.                     cout(str(mp.ClassName)..',')
  191.                     cout(str(mp.Name) ..',')
  192.                    
  193.                     cout(tostring(mp.Brightness) .. ',')
  194.                     cout(color3(mp.Color) .. ',')
  195.                     cout(tostring(mp.Range) .. ',')
  196.                     cout(tostring(mp.Angle) .. ',')
  197.                     cout(tostring(mp.Face) .. ',')
  198.                 elseif mp:IsA("Fire") or mp:IsA("Sparkles") or mp:IsA("Smoke") then
  199.                     ok2 = true
  200.                     cout('{')
  201.                     cout(str(mp.ClassName)..',')
  202.                     cout(str(mp.Name) ..',')
  203.                    
  204.                     cout(color3(mp.Color) .. ',')
  205.                    
  206.                     if mp:IsA("Fire") then
  207.                         cout(color3(mp.SecondaryColor) .. ',')
  208.                         cout(tostring(mp.Size) .. ',')
  209.                         cout(tostring(mp.Heat) .. ',')
  210.                     elseif mp:IsA("Smoke") then
  211.                         cout(tostring(mp.Opacity) .. ',')
  212.                         cout(tostring(mp.Size) .. ',')
  213.                         cout(tostring(mp.RiseVelocity) .. ',')
  214.                     end
  215.                 end
  216.                 if ok2 then
  217.                     cout('},')
  218.                 end
  219.             end
  220.                
  221.             cout('}},\n')
  222.                    
  223.                    
  224.            
  225.             local boz
  226.             if boxes[boxnum] == nil then
  227.                 boz = makebox()
  228.             elseif #boxes[boxnum].Text + #localstr > 128^2 then -- check if current box is full
  229.                 boxnum = boxnum + 1
  230.                 boz = makebox() -- set the boz var to the new box
  231.             else
  232.                 boz = boxes[boxnum] -- set the boz var to the existing box
  233.             end
  234.             boz.Text = boz.Text .. localstr
  235.         end
  236.  
  237.     end
  238. end
  239.  
  240. gui.Parent = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
  241. scan(workspace)
  242.  
  243.  
  244.  
  245.  
  246. local exitted = false
  247. mouse.KeyDown:Connect(function(key)
  248.     if key == 'x' then
  249.         exitted = true
  250.         gui:Destroy()
  251.     end
  252. end)
  253.  
  254. while not exitted do
  255.     plr.CameraMode = "Classic"
  256.     wait(.06)
  257. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement