Elisonpp

Item esp

May 10th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. local workspace = game:GetService("Workspace")
  2. local itemsFolder = workspace:WaitForChild("Items")
  3. local runService = game:GetService("RunService")
  4.  
  5. local function highlightItems()
  6. for _, model in pairs(itemsFolder:GetChildren()) do
  7. if model:IsA("Model") then
  8. local highlight = model:FindFirstChildOfClass("Highlight")
  9.  
  10. if not highlight then
  11. local newHighlight = Instance.new("Highlight")
  12. newHighlight.FillColor = Color3.fromRGB(0, 255, 0)
  13. newHighlight.OutlineColor = Color3.fromRGB(0, 255, 0)
  14. newHighlight.FillTransparency = 0.5
  15. newHighlight.OutlineTransparency = 0
  16. newHighlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  17. newHighlight.Parent = model
  18. end
  19.  
  20. local billboardGui = model:FindFirstChildOfClass("BillboardGui")
  21.  
  22. if not billboardGui then
  23. local newBillboardGui = Instance.new("BillboardGui")
  24. newBillboardGui.Size = UDim2.new(0, 100, 0, 25)
  25. newBillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  26. newBillboardGui.Adornee = model:FindFirstChild("PrimaryPart") or model:FindFirstChildWhichIsA("BasePart")
  27. newBillboardGui.AlwaysOnTop = true
  28.  
  29. local textLabel = Instance.new("TextLabel")
  30. textLabel.Size = UDim2.new(1, 0, 1, 0)
  31. textLabel.BackgroundTransparency = 1
  32. textLabel.TextColor3 = Color3.new(1, 1, 1)
  33. textLabel.Text = model.Name
  34. textLabel.TextScaled = true
  35. textLabel.Font = Enum.Font.SourceSansBold
  36. textLabel.Parent = newBillboardGui
  37.  
  38. newBillboardGui.Parent = model
  39. end
  40. end
  41. end
  42. end
  43.  
  44. while true do
  45. highlightItems()
  46. task.wait(1)
  47. end
Advertisement
Add Comment
Please, Sign In to add comment