anphu04

ROBLOX Steal Places Script 2.0 (STEP 2)

Feb 28th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. -- 27/2/2020: AUTOHOTKEY RULES!!! --
  2. EVERYTHING = {
  3.  
  4. }
  5. EVERYTHING_FOLDER = Instance.new("Folder")
  6. EVERYTHING_FOLDER.Name = "EVERYTHING"
  7. EVERYTHING_FOLDER.Parent = workspace
  8.  
  9. function scan2(tab,par)
  10. if type(tab) == 'table' then
  11. for i,p in pairs(tab) do
  12. local pp = nil
  13. local isa = p[1]
  14. if (isa == "Part" or isa == "TrussPart" or isa == "WedgePart" or isa == "CornerWedgePart" or isa == "MeshPart" or isa == "UnionOperation") and isa ~= "Terrain" then
  15. pp = Instance.new(p[1])
  16. pp.Name = p[2]
  17. pp.Color = p[3]
  18. pp.Material = p[4]
  19. pp.Reflectance = p[5]
  20. pp.Transparency = p[6]
  21. pp.Anchored = p[7]
  22. pp.CanCollide = p[8]
  23. if pp:IsA("Part") then
  24. pp.Shape = p[9]
  25. pp.Size = p[10]
  26. pp.CFrame = p[11]
  27. elseif pp:IsA("MeshPart") then
  28. --pp.MeshId = p[9] -- no script access ?
  29. pp.TextureID = p[10]
  30. pp.Size = p[11]
  31. pp.CFrame = p[12]
  32. end
  33. elseif isa == "BlockMesh" or isa == "CylinderMesh" or isa == "SpecialMesh" then
  34. pp = Instance.new(p[1])
  35. pp.Name = p[2]
  36. pp.Scale = p[3]
  37. pp.VertexColor = p[4]
  38. if pp:IsA("SpecialMesh") then
  39. pp.MeshType = p[5]
  40. pp.MeshId = p[6]
  41. pp.TextureId = p[7]
  42. end
  43. elseif isa == "Decal" or isa == "Texture" then
  44. pp = Instance.new(p[1])
  45. pp.Name = p[2]
  46. pp.Texture = p[3]
  47. pp.Transparency = p[4]
  48. pp.Face = p[5]
  49. if pp:IsA("Texture") then
  50. pp.StudsPerTileU = p[6]
  51. pp.StudsPerTileV = p[7]
  52. end
  53. elseif isa == "SurfaceGui" or isa == "BillboardGui" then
  54. pp = Instance.new(p[1])
  55. pp.Name = p[2]
  56. pp.AlwaysOnTop = p[3]
  57. if pp:IsA("BillboardGui") then
  58. pp.Size = p[4]
  59. pp.SizeOffset = p[5]
  60. pp.StudsOffset = p[6]
  61. elseif pp:IsA("SurfaceGui") then
  62. pp.Face = p[4]
  63. end
  64. elseif isa == "PointLight" then
  65. pp = Instance.new(p[1])
  66. pp.Name = p[2]
  67. pp.Brightness = p[3]
  68. pp.Color = p[4]
  69. pp.Range = p[6]
  70. elseif isa == "SpotLight" or isa == "SurfaceLight" then
  71. pp = Instance.new(p[1])
  72. pp.Name = p[2]
  73. pp.Brightness = p[3]
  74. pp.Color = p[4]
  75. pp.Range = p[5]
  76. pp.Angle = p[6]
  77. pp.Face = p[7]
  78. elseif isa == "Fire" or isa == "Sparkles" or isa == "Smoke" then
  79. pp = Instance.new(p[1])
  80. pp.Name = p[2]
  81. pp.Color = p[3]
  82. if pp:IsA("Fire") then
  83. pp.SecondaryColor = p[4]
  84. pp.Size = p[5]
  85. pp.Heat = p[6]
  86. elseif pp:IsA("Smoke") then
  87. pp.Opacity = p[4]
  88. pp.Size = p[5]
  89. pp.RiseVelocity = p[6]
  90. end
  91.  
  92. elseif isa == "Model" or isa == "Folder" or isa == "LuaSourceContainer" then
  93. pp = Instance.new(p[1])
  94. pp.Name = p[2]
  95. end
  96.  
  97. if pp then
  98. pp.Parent = par
  99. scan2(p.CH, pp) -- childrens, the parent of those children
  100. end
  101. end
  102. end
  103. end
  104.  
  105.  
  106. scan2(EVERYTHING, EVERYTHING_FOLDER)
  107. game.ChangeHistoryService:SetWaypoint("AUTOHOTKEY RULES")
Add Comment
Please, Sign In to add comment