Advertisement
BobMe

Roblox Minecraft XRAY (Visible blocks)

Oct 1st, 2020 (edited)
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. print("Running..")
  2. local blocks = workspace:FindFirstChild("Blocks")
  3. local fold = workspace:FindFirstChild("Sil")
  4. local teb
  5. if fold == nil then
  6. fold = Instance.new("Folder",workspace)
  7. fold.Name = "Sil"
  8. end
  9. print('hi')
  10. clone = Instance.new("Part")
  11. BillboardGui0 = Instance.new("BillboardGui")
  12. TextLabel1 = Instance.new("TextLabel")
  13. BillboardGui0.Parent = clone
  14. BillboardGui0.LightInfluence = 1
  15. BillboardGui0.Size = UDim2.new(2.5, 0, 2.5, 0)
  16. BillboardGui0.Active = true
  17. BillboardGui0.ClipsDescendants = true
  18. BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19. BillboardGui0.AlwaysOnTop = true
  20. TextLabel1.Parent = BillboardGui0
  21. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  22. TextLabel1.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  23. TextLabel1.BackgroundTransparency = 0.5
  24. TextLabel1.Font = Enum.Font.GothamBlack
  25. TextLabel1.FontSize = Enum.FontSize.Size14
  26. TextLabel1.Text = ""
  27. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  28. TextLabel1.TextScaled = true
  29. TextLabel1.TextSize = 14
  30. TextLabel1.TextWrap = true
  31. TextLabel1.TextWrapped = true
  32. --[[SurfaceGui1 = Instance.new("SurfaceGui")
  33. Frame2 = Instance.new("Frame")
  34. SurfaceGui3 = Instance.new("SurfaceGui")
  35. Frame4 = Instance.new("Frame")
  36. SurfaceGui5 = Instance.new("SurfaceGui")
  37. Frame6 = Instance.new("Frame")
  38. SurfaceGui7 = Instance.new("SurfaceGui")
  39. Frame8 = Instance.new("Frame")
  40. SurfaceGui9 = Instance.new("SurfaceGui")
  41. Frame10 = Instance.new("Frame")
  42. SurfaceGui11 = Instance.new("SurfaceGui")
  43. Frame12 = Instance.new("Frame")]]
  44. clone.Name = "Highlight"
  45. clone.CFrame = CFrame.new(437, 0.500010014, -368.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  46. clone.Position = Vector3.new(437, 0.500010014, -368.5)
  47. clone.Size = Vector3.new(3, 3, 3)
  48. clone.Anchored = true
  49. clone.BottomSurface = Enum.SurfaceType.Smooth
  50. clone.TopSurface = Enum.SurfaceType.Smooth
  51. clone.Transparency = 1
  52. clone.CanCollide = false
  53. --[[
  54. SurfaceGui1.Name = "Front"
  55. SurfaceGui1.Parent = clone
  56. SurfaceGui1.ClipsDescendants = true
  57. SurfaceGui1.CanvasSize = Vector2.new(100, 100)
  58. SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  59. SurfaceGui1.AlwaysOnTop = true
  60. Frame2.Parent = SurfaceGui1
  61. Frame2.Size = UDim2.new(1, 0, 1, 0)
  62. Frame2.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  63. Frame2.BackgroundTransparency = 0.75
  64. SurfaceGui3.Name = "Bottom"
  65. SurfaceGui3.Parent = clone
  66. SurfaceGui3.Face = Enum.NormalId.Bottom
  67. SurfaceGui3.ClipsDescendants = true
  68. SurfaceGui3.CanvasSize = Vector2.new(100, 100)
  69. SurfaceGui3.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  70. SurfaceGui3.AlwaysOnTop = true
  71. Frame4.Parent = SurfaceGui3
  72. Frame4.Size = UDim2.new(1, 0, 1, 0)
  73. Frame4.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  74. Frame4.BackgroundTransparency = 0.75
  75. SurfaceGui5.Name = "Back"
  76. SurfaceGui5.Parent = clone
  77. SurfaceGui5.Face = Enum.NormalId.Back
  78. SurfaceGui5.ClipsDescendants = true
  79. SurfaceGui5.CanvasSize = Vector2.new(100, 100)
  80. SurfaceGui5.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  81. SurfaceGui5.AlwaysOnTop = true
  82. Frame6.Parent = SurfaceGui5
  83. Frame6.Size = UDim2.new(1, 0, 1, 0)
  84. Frame6.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  85. Frame6.BackgroundTransparency = 0.75
  86. SurfaceGui7.Name = "Left"
  87. SurfaceGui7.Parent = clone
  88. SurfaceGui7.Face = Enum.NormalId.Left
  89. SurfaceGui7.ClipsDescendants = true
  90. SurfaceGui7.CanvasSize = Vector2.new(100, 100)
  91. SurfaceGui7.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  92. SurfaceGui7.AlwaysOnTop = true
  93. Frame8.Parent = SurfaceGui7
  94. Frame8.Size = UDim2.new(1, 0, 1, 0)
  95. Frame8.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  96. Frame8.BackgroundTransparency = 0.75
  97. SurfaceGui9.Name = "Right"
  98. SurfaceGui9.Parent = clone
  99. SurfaceGui9.Face = Enum.NormalId.Right
  100. SurfaceGui9.ClipsDescendants = true
  101. SurfaceGui9.CanvasSize = Vector2.new(100, 100)
  102. SurfaceGui9.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  103. SurfaceGui9.AlwaysOnTop = true
  104. Frame10.Parent = SurfaceGui9
  105. Frame10.Size = UDim2.new(1, 0, 1, 0)
  106. Frame10.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  107. Frame10.BackgroundTransparency = 0.75
  108. SurfaceGui11.Name = "Top"
  109. SurfaceGui11.Parent = clone
  110. SurfaceGui11.Face = Enum.NormalId.Top
  111. SurfaceGui11.ClipsDescendants = true
  112. SurfaceGui11.CanvasSize = Vector2.new(100, 100)
  113. SurfaceGui11.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  114. SurfaceGui11.AlwaysOnTop = true
  115. Frame12.Parent = SurfaceGui11
  116. Frame12.Size = UDim2.new(1, 0, 1, 0)
  117. Frame12.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  118. Frame12.BackgroundTransparency = 0.75]]
  119. warn("Ran.")
  120.  
  121. local function dothething()
  122. local teb = blocks:GetChildren()
  123. print(#teb,teb[1])
  124. for i,v in pairs(teb) do
  125. local tebby = v:GetChildren()
  126. for ii=1,#tebby do
  127. if tebby[ii].Name == "DiamondOre" then
  128. local clon = clone:Clone()
  129. clon.Position = tebby[ii].Position
  130. clon.Size = tebby[ii].Size
  131. clon.Parent = fold
  132. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(140, 0, 255)
  133. elseif tebby[ii].Name == "IronOre" then
  134. local clon = clone:Clone()
  135. clon.Position = tebby[ii].Position
  136. clon.Size = tebby[ii].Size
  137. clon.Parent = fold
  138. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 229, 193)
  139. elseif tebby[ii].Name == "CoalOre" then
  140. local clon = clone:Clone()
  141. clon.Position = tebby[ii].Position
  142. clon.Size = tebby[ii].Size
  143. clon.Parent = fold
  144. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0,0,0)
  145. elseif tebby[ii].Name == "Chest" then
  146. local clon = clone:Clone()
  147. clon.Position = tebby[ii].Position
  148. clon.Size = tebby[ii].Size
  149. clon.Parent = fold
  150. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(55,255,55)
  151. elseif tebby[ii].Name == "IronBlock" then
  152. local clon = clone:Clone()
  153. clon.Position = tebby[ii].Position
  154. clon.Size = tebby[ii].Size
  155. clon.Parent = fold
  156. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0,145,255)
  157. elseif tebby[ii].Name == "DiamondBlock" then
  158. local clon = clone:Clone()
  159. clon.Position = tebby[ii].Position
  160. clon.Size = tebby[ii].Size
  161. clon.Parent = fold
  162. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255,0,255)
  163. elseif tebby[ii].Name == "CoalBlock" then
  164. local clon = clone:Clone()
  165. clon.Position = tebby[ii].Position
  166. clon.Size = tebby[ii].Size
  167. clon.Parent = fold
  168. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255,125,0)
  169. end
  170. end
  171. tebby = {}
  172. end
  173. teb = {}
  174. return
  175. end
  176. while wait(5) do
  177. fold:ClearAllChildren()
  178. dothething()
  179. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement