ColdSpecs

Main #3 Chams

Sep 6th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. -- Settings --
  2. local s = {f=Color3.fromRGB(255,255,255);t=.75;o=Color3.fromRGB(255,255,255);p=0;}
  3. -- Script --
  4. local p = game:service'Players'.LocalPlayer
  5. local h = Instance.new('Folder', game:service'CoreGui')
  6. local function a(o)
  7. local h = Instance.new('Highlight', h)
  8. h.Adornee = o
  9. h.FillColor = s.f
  10. h.FillTransparency = s.t
  11. h.OutlineColor = s.o
  12. h.OutlineTransparency = s.p
  13. h.Adornee.Changed:Connect(function()
  14. if not h.Adornee or not h.Adornee.Parent then
  15. h:Destroy()
  16. end
  17. end)
  18. return h
  19. end
  20. local function b(o)
  21. if o:IsA'Model' and o.Parent.Name ~= tostring(p.TeamColor) then
  22. local h = o:FindFirstChild("Head")
  23. local t = o:FindFirstChild("Torso") or o:FindFirstChild("UpperTorso")
  24. if h and t then
  25. a(h)
  26. a(t)
  27. end
  28. end
  29. end
  30. for i,v in pairs(workspace:GetDescendants()) do
  31. b(v)
  32. end
  33. workspace.DescendantAdded:Connect(function(v)
  34. b(v)
  35. end)
  36.  
Add Comment
Please, Sign In to add comment