Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Running..")
- local blocks = workspace:FindFirstChild("Blocks")
- local fold = workspace:FindFirstChild("Sil")
- local teb
- if fold == nil then
- fold = Instance.new("Folder",workspace)
- fold.Name = "Sil"
- end
- print('hi')
- 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
- --[[SurfaceGui1 = Instance.new("SurfaceGui")
- Frame2 = Instance.new("Frame")
- SurfaceGui3 = Instance.new("SurfaceGui")
- Frame4 = Instance.new("Frame")
- SurfaceGui5 = Instance.new("SurfaceGui")
- Frame6 = Instance.new("Frame")
- SurfaceGui7 = Instance.new("SurfaceGui")
- Frame8 = Instance.new("Frame")
- SurfaceGui9 = Instance.new("SurfaceGui")
- Frame10 = Instance.new("Frame")
- SurfaceGui11 = Instance.new("SurfaceGui")
- Frame12 = Instance.new("Frame")]]
- 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
- --[[
- SurfaceGui1.Name = "Front"
- SurfaceGui1.Parent = clone
- SurfaceGui1.ClipsDescendants = true
- SurfaceGui1.CanvasSize = Vector2.new(100, 100)
- SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui1.AlwaysOnTop = true
- Frame2.Parent = SurfaceGui1
- Frame2.Size = UDim2.new(1, 0, 1, 0)
- Frame2.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- Frame2.BackgroundTransparency = 0.75
- SurfaceGui3.Name = "Bottom"
- SurfaceGui3.Parent = clone
- SurfaceGui3.Face = Enum.NormalId.Bottom
- SurfaceGui3.ClipsDescendants = true
- SurfaceGui3.CanvasSize = Vector2.new(100, 100)
- SurfaceGui3.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui3.AlwaysOnTop = true
- Frame4.Parent = SurfaceGui3
- Frame4.Size = UDim2.new(1, 0, 1, 0)
- Frame4.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- Frame4.BackgroundTransparency = 0.75
- SurfaceGui5.Name = "Back"
- SurfaceGui5.Parent = clone
- SurfaceGui5.Face = Enum.NormalId.Back
- SurfaceGui5.ClipsDescendants = true
- SurfaceGui5.CanvasSize = Vector2.new(100, 100)
- SurfaceGui5.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui5.AlwaysOnTop = true
- Frame6.Parent = SurfaceGui5
- Frame6.Size = UDim2.new(1, 0, 1, 0)
- Frame6.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- Frame6.BackgroundTransparency = 0.75
- SurfaceGui7.Name = "Left"
- SurfaceGui7.Parent = clone
- SurfaceGui7.Face = Enum.NormalId.Left
- SurfaceGui7.ClipsDescendants = true
- SurfaceGui7.CanvasSize = Vector2.new(100, 100)
- SurfaceGui7.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui7.AlwaysOnTop = true
- Frame8.Parent = SurfaceGui7
- Frame8.Size = UDim2.new(1, 0, 1, 0)
- Frame8.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- Frame8.BackgroundTransparency = 0.75
- SurfaceGui9.Name = "Right"
- SurfaceGui9.Parent = clone
- SurfaceGui9.Face = Enum.NormalId.Right
- SurfaceGui9.ClipsDescendants = true
- SurfaceGui9.CanvasSize = Vector2.new(100, 100)
- SurfaceGui9.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui9.AlwaysOnTop = true
- Frame10.Parent = SurfaceGui9
- Frame10.Size = UDim2.new(1, 0, 1, 0)
- Frame10.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- Frame10.BackgroundTransparency = 0.75
- SurfaceGui11.Name = "Top"
- SurfaceGui11.Parent = clone
- SurfaceGui11.Face = Enum.NormalId.Top
- SurfaceGui11.ClipsDescendants = true
- SurfaceGui11.CanvasSize = Vector2.new(100, 100)
- SurfaceGui11.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui11.AlwaysOnTop = true
- Frame12.Parent = SurfaceGui11
- Frame12.Size = UDim2.new(1, 0, 1, 0)
- Frame12.BackgroundColor3 = Color3.new(0.533333, 0, 1)
- Frame12.BackgroundTransparency = 0.75]]
- warn("Ran.")
- local function dothething()
- local teb = blocks:GetChildren()
- print(#teb,teb[1])
- for i,v in pairs(teb) do
- local tebby = v:GetChildren()
- for ii=1,#tebby do
- if tebby[ii].Name == "DiamondOre" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(140, 0, 255)
- elseif tebby[ii].Name == "IronOre" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255, 229, 193)
- elseif tebby[ii].Name == "CoalOre" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0,0,0)
- elseif tebby[ii].Name == "Chest" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(55,255,55)
- elseif tebby[ii].Name == "IronBlock" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(0,145,255)
- elseif tebby[ii].Name == "DiamondBlock" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255,0,255)
- elseif tebby[ii].Name == "CoalBlock" then
- local clon = clone:Clone()
- clon.Position = tebby[ii].Position
- clon.Size = tebby[ii].Size
- clon.Parent = fold
- clon.BillboardGui.TextLabel.BackgroundColor3 = Color3.fromRGB(255,125,0)
- end
- end
- tebby = {}
- end
- teb = {}
- return
- end
- while wait(5) do
- fold:ClearAllChildren()
- dothething()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement