Advertisement
CaliberMag

Untitled

Mar 4th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. spawn(function()
  2. while true do
  3. for i,v in pairs(game.workspace:GetDescendants()) do
  4. 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
  5. if v.PrimaryPart ~= nil then
  6. local SpawnedResource = v.Name
  7. local BillboardGui = Instance.new("BillboardGui")
  8. local TextLabel = Instance.new("TextLabel")
  9.  
  10. BillboardGui.Parent = v.MainPart
  11. BillboardGui.AlwaysOnTop = true
  12. BillboardGui.LightInfluence = 1
  13. BillboardGui.Size = UDim2.new(0, 100, 0, 100)
  14. BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  15.  
  16. BillboardGui.Adornee = v.MainPart
  17.  
  18. TextLabel.Parent = BillboardGui
  19. TextLabel.BackgroundColor3 = Color3.new(120, 81, 169)
  20. TextLabel.BackgroundTransparency = 1
  21. TextLabel.Size = UDim2.new(0.5, 0, 1, 0)
  22. TextLabel.Text = SpawnedResource
  23. TextLabel.TextColor3 = Color3.new(120, 81, 169)
  24. TextLabel.TextScaled = true
  25. elseif v.PrimaryPart == nil then
  26. v:Destroy()
  27. warn("Successfully destroyed a fake/bugged resource.")
  28. end
  29. end
  30. end
  31. wait(60)
  32. end
  33. end)
  34.  
  35. spawn(function()
  36. while wait(59) do
  37. print("Cleaning up ESPs..")
  38. for i,v in pairs(game.workspace.Resources:GetDescendants()) do
  39. if v:IsA("BillboardGui") then
  40. v:Destroy()
  41. end
  42. end
  43. end
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement