Dumb1236

Untitled

Jul 9th, 2024
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. for _,v in pairs(game:GetService("Players"):GetPlayers()) do
  2. if v.Character:FindFirstChild("Object") then
  3. local Highlight = Instance.new("Highlight", v.Character.Object)
  4. Highlight.FillColor = Color3.fromRGB(255, 255, 0)
  5. end
  6.  
  7. v.Character.ChildAdded:Connect(function(child)
  8. if child.Name == "Object" then
  9. local Highlight = Instance.new("Highlight", v.Character.Object)
  10. Highlight.FillColor = Color3.fromRGB(255, 255, 0)
  11. end
  12. end)
  13. end
  14.  
  15. game:GetService("Players").PlayerAdded:Connect(function(player)
  16. if player.Character:FindFirstChild("Object") then
  17. local Highlight = Instance.new("Highlight", player.Character.Object)
  18. Highlight.FillColor = Color3.fromRGB(255, 255, 0)
  19. end
  20.  
  21. player.Character.ChildAdded:Connect(function(child)
  22. if child.Name == "Object" then
  23. local Highlight = Instance.new("Highlight", player.Characterv.Object)
  24. Highlight.FillColor = Color3.fromRGB(255, 255, 0)
  25. end
  26. end)
  27. end)
Add Comment
Please, Sign In to add comment