Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Running..")
- local blocks = workspace:FindFirstChild("Blocks")
- local folder = workspace:FindFirstChild("CLIENTFOLDER")
- local dingyer = workspace:FindFirstChild("dingyer")
- local enabled = true
- local special_effects = true
- -- ENABLE/DISABLE XRAY:
- local sapphire,diamond,steel,coal,ruby,gold,chest = true,false,false,false,false,false,false
- if dingyer == nil then
- dingyer = Instance.new("IntValue")
- dingyer.Parent = workspace
- dingyer.Name = "dingyer"
- else
- dingyer.Value = dingyer.Value + 1
- enabled = false
- end
- if folder == nil then
- folder = Instance.new("Folder")
- folder.Parent = workspace
- folder.Name = "CLIENTFOLDER"
- else
- folder:ClearAllChildren()
- end
- clone = Instance.new("Part")
- BillboardGui0 = Instance.new("BillboardGui")
- TextLabel1 = Instance.new("TextLabel")
- BillboardGui0.Parent = clone
- BillboardGui0.LightInfluence = 1
- BillboardGui0.Size = UDim2.new(2.5, 0, 2.5, 0)
- BillboardGui0.Active = true
- BillboardGui0.ClipsDescendants = true
- BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui0.AlwaysOnTop = true
- TextLabel1.Parent = BillboardGui0
- TextLabel1.Size = UDim2.new(1, 0, 1, 0)
- TextLabel1.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- TextLabel1.BackgroundTransparency = 0.5
- TextLabel1.Font = Enum.Font.GothamBlack
- TextLabel1.FontSize = Enum.FontSize.Size14
- TextLabel1.Text = ""
- TextLabel1.TextColor3 = Color3.new(1, 1, 1)
- TextLabel1.TextScaled = true
- TextLabel1.TextSize = 14
- TextLabel1.TextWrap = true
- TextLabel1.TextWrapped = true
- clone.Name = "Highlight"
- clone.CFrame = CFrame.new(437, 0.500010014, -368.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- clone.Position = Vector3.new(437, 0.500010014, -368.5)
- clone.Size = Vector3.new(3, 3, 3)
- clone.Anchored = true
- clone.BottomSurface = Enum.SurfaceType.Smooth
- clone.TopSurface = Enum.SurfaceType.Smooth
- clone.Transparency = 1
- clone.CanCollide = false
- local function sonarting()
- if special_effects then
- coroutine.resume(coroutine.create(function()
- local run = game:GetService("RunService")
- local i = tick()
- local part = Instance.new("Part",workspace.CurrentCamera)
- part.Material = Enum.Material.ForceField
- part.Color = Color3.fromRGB(255,0,255)
- part.Shape = Enum.PartType.Ball
- part.Size = Vector3.new(0.1,0.1,0.1)
- part.CanCollide = false
- part.Anchored = true
- part.CastShadow = false
- local sound = Instance.new("Sound",part)
- sound.SoundId = "rbxassetid://1843027546"
- sound.Volume = 0.5
- sound.PlaybackSpeed = 3.5+math.random()
- local loop = nil
- local function loopdoop(deltatime)
- part.Size = part.Size + Vector3.new((deltatime*220),(deltatime*220),(deltatime*220))
- part.Position = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RootPart.Position
- if tick() - i >= 2 then
- part:Destroy()
- loop:Disconnect()
- end
- end
- sound:Play()
- loop = run.RenderStepped:Connect(loopdoop)
- end))
- end
- end
- local function waitFunction(i)
- if i%5 == 0 then
- wait(.1)
- end
- end
- local function chunkfunction(chunk)
- for i,v in pairs(chunk:GetChildren()) do
- if v.Name == "DiamondOre" then
- if diamond then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0, 136, 255)
- end
- elseif v.Name == "SteelOre" then
- if steel then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(185, 147, 103)
- end
- elseif v.Name == "CoalOre" then
- if coal then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- end
- elseif v.Name == "RubyOre" then
- if ruby then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
- end
- elseif v.Name == "GoldOre" then
- if gold then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 200, 0)
- end
- elseif v.Name == "SapphireOre" then
- if sapphire then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size * Vector3.new(0.65,0.65,0.65)
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
- end
- elseif v.Name == "Chest" then
- if chest then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(55,255,55)
- end
- elseif v.Name == "IronBlock" then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- elseif v.Name == "DiamondBlock" then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255,0,255)
- elseif v.Name == "CoalBlock" then
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- elseif string.find(string.lower(v.Name),"ore") ~= nil then
- print(v:GetFullName())
- waitFunction(i)
- local clon = clone:Clone()
- clon.Position = v.Position
- clon.Size = v.Size * Vector3.new(1.5,1.5,1.5)
- clon.Parent = folder
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
- end
- end
- end
- mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local event = nil
- event = mouse.KeyDown:Connect(function(key)
- if enabled then
- if string.lower(key) == "x" then
- sonarting()
- folder:ClearAllChildren()
- for y,v in pairs(blocks:GetChildren()) do
- chunkfunction(v)
- end
- end
- else
- event:Disconnect()
- end
- end)
- warn("Ran.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement