Advertisement
BobMe

xray roblos

Feb 28th, 2024 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. print("Running..")
  2. local blocks = workspace:FindFirstChild("Blocks")
  3. local folder = workspace:FindFirstChild("CLIENTFOLDER")
  4. local dingyer = workspace:FindFirstChild("dingyer")
  5. local enabled = true
  6. local special_effects = true
  7. -- ENABLE/DISABLE XRAY:
  8. local sapphire,diamond,steel,coal,ruby,gold,chest = true,false,false,false,false,false,false
  9. if dingyer == nil then
  10. dingyer = Instance.new("IntValue")
  11. dingyer.Parent = workspace
  12. dingyer.Name = "dingyer"
  13. else
  14. dingyer.Value = dingyer.Value + 1
  15. enabled = false
  16. end
  17. if folder == nil then
  18. folder = Instance.new("Folder")
  19. folder.Parent = workspace
  20. folder.Name = "CLIENTFOLDER"
  21. else
  22. folder:ClearAllChildren()
  23. end
  24. clone = Instance.new("Part")
  25. BillboardGui0 = Instance.new("BillboardGui")
  26. TextLabel1 = Instance.new("TextLabel")
  27. BillboardGui0.Parent = clone
  28. BillboardGui0.LightInfluence = 1
  29. BillboardGui0.Size = UDim2.new(2.5, 0, 2.5, 0)
  30. BillboardGui0.Active = true
  31. BillboardGui0.ClipsDescendants = true
  32. BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  33. BillboardGui0.AlwaysOnTop = true
  34. TextLabel1.Parent = BillboardGui0
  35. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  36. TextLabel1.BackgroundColor3 = Color3.new(0.533333, 0, 1)
  37. TextLabel1.BackgroundTransparency = 0.5
  38. TextLabel1.Font = Enum.Font.GothamBlack
  39. TextLabel1.FontSize = Enum.FontSize.Size14
  40. TextLabel1.Text = ""
  41. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  42. TextLabel1.TextScaled = true
  43. TextLabel1.TextSize = 14
  44. TextLabel1.TextWrap = true
  45. TextLabel1.TextWrapped = true
  46. clone.Name = "Highlight"
  47. clone.CFrame = CFrame.new(437, 0.500010014, -368.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  48. clone.Position = Vector3.new(437, 0.500010014, -368.5)
  49. clone.Size = Vector3.new(3, 3, 3)
  50. clone.Anchored = true
  51. clone.BottomSurface = Enum.SurfaceType.Smooth
  52. clone.TopSurface = Enum.SurfaceType.Smooth
  53. clone.Transparency = 1
  54. clone.CanCollide = false
  55.  
  56. local function sonarting()
  57. if special_effects then
  58. coroutine.resume(coroutine.create(function()
  59. local run = game:GetService("RunService")
  60. local i = tick()
  61. local part = Instance.new("Part",workspace.CurrentCamera)
  62. part.Material = Enum.Material.ForceField
  63. part.Color = Color3.fromRGB(255,0,255)
  64. part.Shape = Enum.PartType.Ball
  65. part.Size = Vector3.new(0.1,0.1,0.1)
  66. part.CanCollide = false
  67. part.Anchored = true
  68. part.CastShadow = false
  69. local sound = Instance.new("Sound",part)
  70. sound.SoundId = "rbxassetid://1843027546"
  71. sound.Volume = 0.5
  72. sound.PlaybackSpeed = 3.5+math.random()
  73. local loop = nil
  74. local function loopdoop(deltatime)
  75. part.Size = part.Size + Vector3.new((deltatime*220),(deltatime*220),(deltatime*220))
  76. part.Position = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RootPart.Position
  77. if tick() - i >= 2 then
  78. part:Destroy()
  79. loop:Disconnect()
  80. end
  81. end
  82. sound:Play()
  83. loop = run.RenderStepped:Connect(loopdoop)
  84. end))
  85. end
  86. end
  87.  
  88. local function waitFunction(i)
  89. if i%5 == 0 then
  90. wait(.1)
  91. end
  92. end
  93.  
  94. local function chunkfunction(chunk)
  95. for i,v in pairs(chunk:GetChildren()) do
  96. if v.Name == "DiamondOre" then
  97. if diamond then
  98. waitFunction(i)
  99. local clon = clone:Clone()
  100. clon.Position = v.Position
  101. clon.Size = v.Size
  102. clon.Parent = folder
  103. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0, 136, 255)
  104. end
  105. elseif v.Name == "SteelOre" then
  106. if steel then
  107. waitFunction(i)
  108. local clon = clone:Clone()
  109. clon.Position = v.Position
  110. clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
  111. clon.Parent = folder
  112. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(185, 147, 103)
  113. end
  114. elseif v.Name == "CoalOre" then
  115. if coal then
  116. waitFunction(i)
  117. local clon = clone:Clone()
  118. clon.Position = v.Position
  119. clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
  120. clon.Parent = folder
  121. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  122. end
  123. elseif v.Name == "RubyOre" then
  124. if ruby then
  125. waitFunction(i)
  126. local clon = clone:Clone()
  127. clon.Position = v.Position
  128. clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
  129. clon.Parent = folder
  130. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  131. end
  132. elseif v.Name == "GoldOre" then
  133. if gold then
  134. waitFunction(i)
  135. local clon = clone:Clone()
  136. clon.Position = v.Position
  137. clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
  138. clon.Parent = folder
  139. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 200, 0)
  140. end
  141. elseif v.Name == "SapphireOre" then
  142. if sapphire then
  143. waitFunction(i)
  144. local clon = clone:Clone()
  145. clon.Position = v.Position
  146. clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
  147. clon.Parent = folder
  148. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  149. end
  150. elseif v.Name == "Chest" then
  151. if chest then
  152. waitFunction(i)
  153. local clon = clone:Clone()
  154. clon.Position = v.Position
  155. clon.Size = v.Size
  156. clon.Parent = folder
  157. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(55,255,55)
  158. end
  159. elseif v.Name == "IronBlock" then
  160. waitFunction(i)
  161. local clon = clone:Clone()
  162. clon.Position = v.Position
  163. clon.Size = v.Size
  164. clon.Parent = folder
  165. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  166. elseif v.Name == "DiamondBlock" then
  167. waitFunction(i)
  168. local clon = clone:Clone()
  169. clon.Position = v.Position
  170. clon.Size = v.Size
  171. clon.Parent = folder
  172. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255,0,255)
  173. elseif v.Name == "CoalBlock" then
  174. waitFunction(i)
  175. local clon = clone:Clone()
  176. clon.Position = v.Position
  177. clon.Size = v.Size
  178. clon.Parent = folder
  179. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  180. elseif string.find(string.lower(v.Name),"ore") ~= nil then
  181. print(v:GetFullName())
  182. waitFunction(i)
  183. local clon = clone:Clone()
  184. clon.Position = v.Position
  185. clon.Size = v.Size * Vector3.new(1.5,1.5,1.5)
  186. clon.Parent = folder
  187. clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
  188. end
  189. end
  190. end
  191.  
  192. mouse = game:GetService("Players").LocalPlayer:GetMouse()
  193. local event = nil
  194. event = mouse.KeyDown:Connect(function(key)
  195. if enabled then
  196. if string.lower(key) == "x" then
  197. sonarting()
  198. folder:ClearAllChildren()
  199. for y,v in pairs(blocks:GetChildren()) do
  200. chunkfunction(v)
  201. end
  202. end
  203. else
  204. event:Disconnect()
  205. end
  206. end)
  207. warn("Ran.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement