1. getgenv().SpaceWars = {
  2. Colors = {
  3. American = Color3.new(0.5, 0.5, 1), -- ESP Color for American ships
  4. Soviet = Color3.new(1, 0, 0), -- ESP Color for Soviet ships
  5. },
  6. Settings = {
  7. Allies = false, -- ESP allies
  8. Enemies = true, -- ESP enemies
  9. Ships = true, -- ESP ships
  10. Spacecraft = true, -- ESP spacecraft
  11. ShipTextSize = 16, -- Text size for ESP text on ships
  12. SpacecraftTextSize = 12, -- Text size for ESP text on spacecraft
  13. }
  14. }
  15. local DendroESP = loadstring(game:HttpGet("https://raw.githubusercontent.com/zntly/dendrothatletsuchangecolorsandstuff/main/dendro.lua"))();
  16. function ESP(ship, team, size)
  17. local modelo = DendroESP:AddModel(ship, "BoundingBox")
  18. modelo.TextEnabled = true
  19. modelo.Text = team .. " " .. ship.Name
  20. modelo.TextSize = size
  21. modelo.TextAlignment = Enum.TextXAlignment.Center
  22. modelo.PleaseBecomeThisColor = SpaceWars.Colors[team]
  23. return modelo
  24. end
  25. function DoSomethingWithThisShip(ship)
  26. local owner = ship:WaitForChild("Owner")
  27. repeat task.wait() until owner.Value ~= nil
  28. if owner.Value == game.Players.LocalPlayer then return end
  29. if not SpaceWars.Settings.Allies and owner.Value.Team == game.Players.LocalPlayer.Team then return end
  30. if not SpaceWars.Settings.Enemies and owner.Value.Team ~= game.Players.LocalPlayer.Team then return end
  31. local team
  32. if owner.Value.Team.Name == "United States" then team = "American" else team = "Soviet" end
  33. local espp = ESP(ship, team, SpaceWars.Settings.ShipTextSize)
  34. end
  35. function DoSomethingWithThisSpacecraft(ship)
  36. local owner = ship:WaitForChild("Owner")
  37. repeat task.wait() until owner.Value ~= nil
  38. if owner.Value == game.Players.LocalPlayer then return end
  39. if not SpaceWars.Settings.Allies and owner.Value.Team == game.Players.LocalPlayer.Team then return end
  40. if not SpaceWars.Settings.Enemies and owner.Value.Team ~= game.Players.LocalPlayer.Team then return end
  41. local team
  42. if owner.Value.Team.Name == "United States" then team = "American" else team = "Soviet" end
  43. local espp = ESP(ship, team, SpaceWars.Settings.SpacecraftTextSize)
  44. end
  45. workspace.Ships.ChildAdded:Connect(DoSomethingWithThisShip)
  46. for _, v in pairs(workspace.Ships:GetChildren()) do
  47. DoSomethingWithThisShip(v)
  48. end
  49. workspace.Spacecrafts.ChildAdded:Connect(DoSomethingWithThisSpacecraft)
  50. for _, v in pairs(workspace.Spacecrafts:GetChildren()) do
  51. DoSomethingWithThisSpacecraft(v)
  52. end