anphu04

ROBLOX Steal Places Script 2.5 (STEP 1)

Feb 28th, 2020
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 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:GetChildren()) do
  58. local localstr = ''
  59.  
  60. function cout(str) -- lmao
  61. localstr = localstr .. str
  62. end
  63. function str(s)
  64. local isAsset = string.find(s, "http://www.roblox.com/asset/?id=", 1, true)
  65. if not isAsset then
  66. return '"' ..s.. '"'
  67. else
  68. return '"' .. "rbxassetid://" ..string.sub(s, 33).. '"'
  69. end
  70. end
  71. function vector3(vec)
  72. local x,y,z = vec.X, vec.Y, vec.Z
  73. local function round(num)
  74. return tostring(math.floor(num*1000)/1000)
  75. end
  76. return "Vector3.new(" ..round(x).. ',' ..round(y).. ',' ..round(z).. ")"
  77. end
  78. function vector2(vec)
  79. local x,y = vec.X, vec.Y
  80. local function round(num)
  81. return tostring(math.floor(num*1000)/1000)
  82. end
  83. return "Vector2.new(" ..round(x).. ',' ..round(y).. ")"
  84. end
  85. function color3(col)
  86. return "Color3.fromRGB(" ..tostring(math.floor(col.r*255)).. ',' ..tostring(math.floor(col.g*255)).. ',' ..tostring(math.floor(col.b*255)).. ")"
  87. end
  88. function cframe(cf)
  89. local x,y,z, xx,yx,zx, xy,yy,zy, xz,yz,zz = cf:GetComponents()
  90. local function round(num)
  91. return tostring(math.floor(num*10000)/10000)
  92. end
  93. return "CFrame.new(" ..
  94. round(x).. ',' ..round(y).. ',' ..round(z).. ',' ..
  95. round(xx).. ',' ..round(yx).. ',' ..round(zx).. ',' ..
  96. round(xy).. ',' ..round(yy).. ',' ..round(zy).. ',' ..
  97. round(xz).. ',' ..round(yz).. ',' ..round(zz)..
  98. ")"
  99. end
  100. function udim2(dim)
  101. return "UDim2.new(" ..dim.X.Scale.. ',' ..dim.X.Offset.. ',' ..dim.Y.Scale.. ',' ..dim.Y.Offset.. ")"
  102. end
  103.  
  104. local ok = false
  105. if p:IsA("BasePart") and not p:IsA("Terrain") then
  106. ok = true
  107. cout('{')
  108. cout(str(p.ClassName)..',')
  109. cout(str(p.Name) ..',')
  110.  
  111. cout(color3(p.BrickColor.Color) ..',')
  112. cout(tostring(p.Material) ..',') -- remove the Enum.Material.
  113. cout(tostring(p.Reflectance) .. ',')
  114. cout(tostring(p.Transparency) .. ',')
  115. cout(tostring(p.Anchored) .. ',')
  116. cout(tostring(p.CanCollide) .. ',')
  117. if p:IsA("Part") then -- only normal parts have the shape property
  118. cout(tostring(p.Shape) .. ',') -- remove the Enum.PartType.
  119. elseif p:IsA("MeshPart") then
  120. cout(str(p.MeshId) .. ',')
  121. cout(str(p.TextureID) .. ',')
  122. end
  123. cout(vector3(p.Size) .. ',')
  124. cout(cframe(p.CFrame) .. ',') -- 3/11: cframe best boi
  125. elseif p:IsA("BlockMesh") or p:IsA("CylinderMesh") or p:IsA("SpecialMesh") then
  126. ok = true
  127. cout('{')
  128. cout(str(p.ClassName)..',')
  129. cout(str(p.Name) ..',')
  130.  
  131. cout(vector3(p.Scale) .. ',')
  132. cout(vector3(p.VertexColor) .. ',')
  133.  
  134. if p:IsA("SpecialMesh") then
  135. cout(tostring(p.MeshType) .. ',')
  136. cout(str(p.MeshId) .. ',')
  137. cout(str(p.TextureId) .. ',')
  138. end
  139. elseif p:IsA("Decal") or p:IsA("Texture") then
  140. ok = true
  141. cout('{')
  142. cout(str(p.ClassName)..',')
  143. cout(str(p.Name) ..',')
  144.  
  145. cout(str(p.Texture) .. ',')
  146. cout(tostring(p.Transparency) .. ',')
  147. cout(tostring(p.Face) .. ',')
  148.  
  149. if p:IsA("Texture") then
  150. cout(tostring(p.StudsPerTileU) .. ',')
  151. cout(tostring(p.StudsPerTileV) .. ',')
  152. end
  153. elseif p:IsA("SurfaceGui") or p:IsA("BillboardGui") then
  154. ok = true
  155. cout('{')
  156. cout(str(p.ClassName)..',')
  157. cout(str(p.Name) ..',')
  158.  
  159. cout(tostring(p.AlwaysOnTop) .. ',')
  160.  
  161. if p:IsA("BillboardGui") then
  162. cout(udim2(p.Size) .. ',')
  163. cout(vector2(p.SizeOffset) .. ',')
  164. cout(vector3(p.StudsOffset) .. ',')
  165. elseif p:IsA("SurfaceGui") then
  166. cout(tostring(p.Face) .. ',')
  167. end
  168. elseif p:IsA("PointLight") then
  169. ok = true
  170. cout('{')
  171. cout(str(p.ClassName)..',')
  172. cout(str(p.Name) ..',')
  173.  
  174. cout(tostring(p.Brightness) .. ',')
  175. cout(color3(p.Color) .. ',')
  176. cout(tostring(p.Range) .. ',')
  177. elseif p:IsA("SpotLight") or p:IsA("SurfaceLight") then
  178. ok = true
  179. cout('{')
  180. cout(str(p.ClassName)..',')
  181. cout(str(p.Name) ..',')
  182.  
  183. cout(tostring(p.Brightness) .. ',')
  184. cout(color3(p.Color) .. ',')
  185. cout(tostring(p.Range) .. ',')
  186. cout(tostring(p.Angle) .. ',')
  187. cout(tostring(p.Face) .. ',')
  188. elseif p:IsA("Fire") or p:IsA("Sparkles") or p:IsA("Smoke") then
  189. ok = true
  190. cout('{')
  191. cout(str(p.ClassName)..',')
  192. cout(str(p.Name) ..',')
  193.  
  194. cout(color3(p.Color) .. ',')
  195.  
  196. if p:IsA("Fire") then
  197. cout(color3(p.SecondaryColor) .. ',')
  198. cout(tostring(p.Size) .. ',')
  199. cout(tostring(p.Heat) .. ',')
  200. elseif p:IsA("Smoke") then
  201. cout(tostring(p.Opacity) .. ',')
  202. cout(tostring(p.Size) .. ',')
  203. cout(tostring(p.RiseVelocity) .. ',')
  204. end
  205.  
  206. elseif p:IsA("Model") or p:IsA("Folder") or p:IsA("LuaSourceContainer") then
  207. ok = true
  208. cout('{')
  209. cout(str(p.ClassName)..',')
  210. cout(str(p.Name) ..',')
  211. end
  212.  
  213. if ok then
  214. cout("CH={") -- childrens
  215.  
  216. local boz
  217. if boxes[boxnum] == nil then
  218. boz = makebox()
  219. elseif #boxes[boxnum].Text + #localstr > 128^2 then -- check if current box is full
  220. boxnum = boxnum + 1
  221. boz = makebox() -- set the boz var to the new box
  222. else
  223. boz = boxes[boxnum] -- set the boz var to the existing box
  224. end
  225. boz.Text = boz.Text .. localstr
  226.  
  227. scan(p)
  228.  
  229. local boz
  230. if boxes[boxnum] == nil then
  231. boz = makebox()
  232. elseif #boxes[boxnum].Text + #localstr > 128^2 then -- check if current box is full
  233. boxnum = boxnum + 1
  234. boz = makebox() -- set the boz var to the new box
  235. else
  236. boz = boxes[boxnum] -- set the boz var to the existing box
  237. end
  238. boz.Text = boz.Text .. '},},'
  239. end
  240. end
  241. end
  242.  
  243. gui.Parent = game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
  244. scan(workspace)
  245.  
  246.  
  247.  
  248.  
  249. local exitted = false
  250. mouse.KeyDown:Connect(function(key)
  251. if key == 'x' then
  252. exitted = true
  253. gui:Destroy()
  254. end
  255. end)
  256.  
  257. while not exitted do
  258. plr.CameraMode = "Classic"
  259. wait(.06)
  260. end
Add Comment
Please, Sign In to add comment