JacobRoblox

Untitled

Aug 25th, 2020
1,858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. -- loadstring(game:HttpGet("https://raw.githubusercontent.com/CriShoux/OwlHub/master/OwlHub.txt"))();
  2. loadstring(game:HttpGet("https://pastebin.com/raw/1McuqKm7"))()
  3.  
  4. --[[
  5.  
  6. Written by Issa Knife on V3rmillion. (https://v3rmillion.net/member.php?action=profile&uid=58375)
  7.  
  8. Modified for phantom forces update by Spoorloos#7871
  9.  
  10. ]]
  11.  
  12. local espRainbow = false
  13. local espToggle = true
  14.  
  15.  
  16. local library = loadstring(game:HttpGet("https://pastebin.com/raw/CkyR8ePz",true))()
  17. local espwindow = library:CreateWindow("ESP")
  18.  
  19. espwindow:Section('Edited By Spoorloos')
  20.  
  21. espwindow:Bind("Toggled", {
  22. flag = "espToggle";
  23. kbonly = true;
  24. default = Enum.KeyCode.N;
  25. }, function()
  26. if espToggle == true then espToggle = false elseif espToggle == false then espToggle = true end
  27. end)
  28.  
  29. espwindow:Section('Settings:')
  30.  
  31. espwindow:Bind("Rainbow", {
  32. flag = "espRainbow";
  33. kbonly = true;
  34. default = Enum.KeyCode.M;
  35. }, function()
  36. if espRainbow == true then espRainbow = false elseif espRainbow == false then espRainbow = true end
  37. end)
  38.  
  39. local player = game.Players.LocalPlayer
  40. local players = {}
  41. local core = game:GetService("CoreGui")
  42.  
  43. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  44.  
  45. local counter = 0
  46.  
  47. function CreateBillboard(adornee)
  48. local billboard = Instance.new("BillboardGui")
  49. billboard.Name = "E"
  50. local frame = Instance.new("Frame")
  51. billboard.AlwaysOnTop = true
  52. billboard.Size = UDim2.new(4, 0, 5.5, 0)
  53. billboard.StudsOffset = Vector3.new(0, 0, 0)
  54. billboard.Adornee = adornee
  55. if espRainbow then
  56. frame.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  57. else
  58. frame.BackgroundColor = BrickColor.new("Maroon")
  59. end
  60. frame.BackgroundTransparency = .35
  61. frame.BorderSizePixel = 0
  62. frame.Size = UDim2.new(1, 0, 1, 0)
  63. billboard.Parent = core
  64. frame.Parent = billboard
  65. counter = counter + 0.0005
  66. billboard.Parent = core
  67. end
  68.  
  69. function GetEnemyPlayers()
  70. players = {}
  71. if #game:GetService("Teams"):GetTeams() > 0 then
  72. local friendly = player.Team.Name
  73. for i,v in pairs(game:GetService("Teams"):GetTeams()) do
  74. if v.Name ~= friendly and v.Name ~= (game.Teams:FindFirstChild("Spectators") and game.Teams.Spectators.Name) then
  75. local enemyPlayers = v:GetPlayers()
  76. for i,v in pairs(enemyPlayers) do
  77. table.insert(players, v)
  78. end
  79. end
  80. end
  81. return players
  82. end
  83. end
  84.  
  85. function InsertBillboardToPlayers()
  86. for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do if v.Name == "E" then v:Destroy() end end
  87. local otherTeamR
  88. if game.Players.LocalPlayer.Team ~= nil then
  89. if game.Players.LocalPlayer.Team.Name == "Ghosts" then
  90. otherTeamR = "Phantoms"
  91. elseif game.Players.LocalPlayer.Team.Name == "Phantoms" then
  92. otherTeamR = "Ghosts"
  93. end
  94. end
  95.  
  96. local players = game.Workspace:FindFirstChild("Players")
  97. local otherteam = players:FindFirstChild(otherTeamR)
  98. for i,v in pairs(otherteam:GetChildren()) do
  99. CreateBillboard(v.Torso)
  100. end
  101. end
  102.  
  103. if espToggle then
  104. InsertBillboardToPlayers()
  105. end
  106.  
  107. game.Players.PlayerAdded:Connect(function(plr)
  108. plr.CharacterAdded:Wait()
  109. players = GetEnemyPlayers()
  110. if espToggle then
  111. InsertBillboardToPlayers()
  112. else
  113. for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do if v.Name == "E" then v:Destroy() end end
  114. end
  115. end)
  116.  
  117. game.Players.PlayerRemoving:Connect(function(plr)
  118. plr.CharacterRemoving:Wait()
  119. players = GetEnemyPlayers()
  120. if espToggle then
  121. InsertBillboardToPlayers()
  122. else
  123. for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do if v.Name == "E" then v:Destroy() end end
  124. end
  125. end)
  126.  
  127. game:GetService('RunService').Stepped:Connect(function()
  128. if espToggle then
  129. InsertBillboardToPlayers()
  130. else
  131. for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do if v.Name == "E" then v:Destroy() end end
  132. end
  133. end)
Add Comment
Please, Sign In to add comment