Advertisement
ExodiaForce

123

Apr 22nd, 2023
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. -- Define the refresh interval in seconds
  2. local refreshInterval = (_G.RefreshDelay)
  3.  
  4. -- Define the colors for the highlights and text labels
  5. local friendlyColor = Color3.fromRGB(0, 0, 255) -- Blue
  6. local enemyColor = Color3.fromRGB(255, 0, 0) -- Red
  7.  
  8. -- Define a function to add highlights and text to a folder's children
  9. local function addHighlightsAndText(folder, fillColor, textColor, labelText)
  10. -- Iterate over the children of the folder
  11. for _, child in ipairs(folder:GetChildren()) do
  12. -- Check if the child already has a highlight
  13. if not child:FindFirstChild("Highlight") then
  14. -- Add a highlight to the child
  15. local highlight = Instance.new("Highlight")
  16. highlight.Parent = child
  17. highlight.FillColor = fillColor
  18.  
  19. -- Add a text label to the highlight
  20. local textLabel = Instance.new("TextLabel")
  21. textLabel.Parent = highlight
  22. textLabel.BackgroundTransparency = 1
  23. textLabel.Position = UDim2.new(0, 0, -1, -10)
  24. textLabel.Text = labelText
  25. textLabel.TextColor3 = textColor
  26. textLabel.Size = UDim2.new(0, 50, 0, 50)
  27. textLabel.Font = Enum.Font.SourceSansBold
  28. end
  29. end
  30. end
  31.  
  32. -- Print a message indicating that the script has started
  33. print("--Esp Was Made By Yours Truly♡: Exodia#0988--")
  34. print("Esp Is Currently Refreshing Every", refreshInterval, "Seconds")
  35.  
  36. while true do
  37. -- Wait for the refresh interval
  38. wait(refreshInterval)
  39.  
  40. -- Find the folders to add highlights and text to
  41. local brightBlueFolder = game.Workspace.Players:FindFirstChild("Bright blue")
  42. local brightOrangeFolder = game.Workspace.Players:FindFirstChild("Bright orange")
  43.  
  44. -- Add highlights and text to the children of the "Bright blue" folder
  45. if brightBlueFolder then
  46. addHighlightsAndText(brightBlueFolder, friendlyColor, friendlyColor, "Friendly")
  47. end
  48.  
  49. -- Add highlights and text to the children of the "Bright orange" folder
  50. if brightOrangeFolder then
  51. addHighlightsAndText(brightOrangeFolder, enemyColor, enemyColor, "Enemy")
  52. end
  53. end
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement