Advertisement
Cizzy

Dust Wasteland

Feb 18th, 2021
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. local ore = "Sulfur"
  2. local color = Color3.fromRGB(255,0,0)
  3. --// Def
  4. local bill = Instance.new("BillboardGui",game.CoreGui)
  5. bill.Size = UDim2.new(10,0, 10,0)
  6. bill.ClipsDescendants = false
  7. bill.AlwaysOnTop = true
  8. bill.Name = "ESP"
  9. bill.Enabled = false
  10. local frame = Instance.new("Frame",bill)
  11. frame.Size = UDim2.new(0.75,0, 1,0)
  12. frame.Position = UDim2.new(0.5,0,0,0)
  13. frame.AnchorPoint = Vector2.new(0.5,0)
  14. frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15. frame.BackgroundTransparency = 0
  16. frame.BorderSizePixel = 0
  17. frame.ClipsDescendants = false
  18. --// Functions
  19. function create(parent,color)
  20. local newbill = bill:Clone()
  21. newbill.Parent = parent
  22. newbill.Enabled = true
  23. newbill.Frame.BackgroundColor3 = color
  24. end
  25. function add(current,add,space)
  26. local new
  27. if space then
  28. new = current.." "..add
  29. else
  30. new = current..add
  31. end
  32. return new
  33. end
  34. --// Main
  35. local orename = add(ore,"Node",false)
  36. for i,v in pairs(game.workspace:GetDescendants()) do
  37. if v.Name == orename and v:FindFirstChild("RockPrim") then
  38. create(v.RockPrim,color)
  39. wait(0.2)
  40. end
  41. end
  42. workspace.DescendantAdded:Connect(function(p)
  43. if p.Name == orename then
  44. pcall(function()create(p:WaitForChild("RockPrim"),color)end)
  45. end
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement