Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ore = "Sulfur"
- local color = Color3.fromRGB(255,0,0)
- --// Def
- local bill = Instance.new("BillboardGui",game.CoreGui)
- bill.Size = UDim2.new(10,0, 10,0)
- bill.ClipsDescendants = false
- bill.AlwaysOnTop = true
- bill.Name = "ESP"
- bill.Enabled = false
- local frame = Instance.new("Frame",bill)
- frame.Size = UDim2.new(0.75,0, 1,0)
- frame.Position = UDim2.new(0.5,0,0,0)
- frame.AnchorPoint = Vector2.new(0.5,0)
- frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- frame.BackgroundTransparency = 0
- frame.BorderSizePixel = 0
- frame.ClipsDescendants = false
- --// Functions
- function create(parent,color)
- local newbill = bill:Clone()
- newbill.Parent = parent
- newbill.Enabled = true
- newbill.Frame.BackgroundColor3 = color
- end
- function add(current,add,space)
- local new
- if space then
- new = current.." "..add
- else
- new = current..add
- end
- return new
- end
- --// Main
- local orename = add(ore,"Node",false)
- for i,v in pairs(game.workspace:GetDescendants()) do
- if v.Name == orename and v:FindFirstChild("RockPrim") then
- create(v.RockPrim,color)
- wait(0.2)
- end
- end
- workspace.DescendantAdded:Connect(function(p)
- if p.Name == orename then
- pcall(function()create(p:WaitForChild("RockPrim"),color)end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement