Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn(function()
- while true do
- for i,v in pairs(game.workspace:GetDescendants()) do
- if v.Name == "Heavenly_Crystal" or v.Name == "Heavenly_Tree" or v.Name == "Godly_Tree" or v.Name == "Godly_Rock" or v.Name == "Starlight_Tree" or v.Name == "Obsidian_Rock" or v.Name == "Diamond_Rock" then
- if v.PrimaryPart ~= nil then
- local SpawnedResource = v.Name
- local BillboardGui = Instance.new("BillboardGui")
- local TextLabel = Instance.new("TextLabel")
- BillboardGui.Parent = v.MainPart
- BillboardGui.AlwaysOnTop = true
- BillboardGui.LightInfluence = 1
- BillboardGui.Size = UDim2.new(0, 100, 0, 100)
- BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
- BillboardGui.Adornee = v.MainPart
- TextLabel.Parent = BillboardGui
- TextLabel.BackgroundColor3 = Color3.new(120, 81, 169)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0.5, 0, 1, 0)
- TextLabel.Text = SpawnedResource
- TextLabel.TextColor3 = Color3.new(120, 81, 169)
- TextLabel.TextScaled = true
- elseif v.PrimaryPart == nil then
- v:Destroy()
- warn("Successfully destroyed a fake/bugged resource.")
- end
- end
- end
- wait(60)
- end
- end)
- spawn(function()
- while wait(59) do
- print("Cleaning up ESPs..")
- for i,v in pairs(game.workspace.Resources:GetDescendants()) do
- if v:IsA("BillboardGui") then
- v:Destroy()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement