Advertisement
Guest User

Futuretops HBE

a guest
Feb 24th, 2021
5,312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. game:GetService("Workspace").DescendantAdded:Connect(function(instance)
  2. if instance.ClassName == "SelectionBox" then
  3. f = instance.Visible
  4. instance.Visible = false
  5. wait()
  6. local d = instance.Adornee
  7. if d == d.Parent:FindFirstChild("HumanoidRootPart") then
  8. instance:Destroy()
  9. end
  10.  
  11. instance.Visible = f
  12. end
  13. end)
  14.  
  15.  
  16.  
  17. _G.rr = true
  18.  
  19. local UserInputService = game:GetService("UserInputService")
  20.  
  21. -- A sample function providing one usage of InputBegan
  22.  
  23.  
  24. UserInputService.InputEnded:Connect(function(input, gameProcessed)
  25. if input.UserInputType == Enum.UserInputType.Keyboard then
  26. if input.KeyCode == Enum.KeyCode.End then
  27. if _G.rr == true then
  28. _G.rr = false
  29.  
  30. else
  31. _G.rr = true
  32.  
  33.  
  34. end
  35.  
  36. end
  37. end
  38. end)
  39.  
  40.  
  41. local mt = getrawmetatable(game)
  42.  
  43. local localPlayer = game.Players.LocalPlayer
  44. local camera = workspace.CurrentCamera
  45.  
  46.  
  47. local function isPartVisible(obj)
  48. local center = obj.Position
  49.  
  50. -- No need to do any extra calculations if the center point is on the screen
  51. local centerPoint, centerVisible = camera:WorldToScreenPoint(center)
  52. if centerVisible then
  53. return true, centerPoint
  54. end
  55. return false
  56. end
  57.  
  58.  
  59. make_writeable(mt);
  60. local old_index = mt.__index;
  61. mt.__index = function(a, b)
  62. if tostring(a) == "Torso" then
  63. if tostring(b) == "Size" then
  64.  
  65. return Vector3.new(2,2,1)
  66. end
  67.  
  68. end
  69. return old_index(a, b);
  70. end
  71.  
  72. make_writeable(mt);
  73. local old_index = mt.__index;
  74. mt.__index = function(a, b)
  75. if tostring(a) == "HumanoidRootPart" then
  76. if tostring(b) == "Size" then
  77.  
  78. return Vector3.new(2,2,1)
  79. end
  80.  
  81. end
  82. return old_index(a, b);
  83. end
  84.  
  85.  
  86. make_writeable(mt);
  87. local old_index = mt.__index;
  88. mt.__index = function(a, b)
  89. if tostring(a) == "HumanoidRootPart" then
  90. if tostring(b) == "Mass" then
  91.  
  92. return 2.7999999523163
  93. end
  94.  
  95. end
  96. return old_index(a, b);
  97. end
  98.  
  99. make_writeable(mt);
  100. local old_index = mt.__index;
  101. mt.__index = function(a, b)
  102. if tostring(a) == "Torso" then
  103. if tostring(b) == "Mass" then
  104.  
  105. return 2.7999999523163
  106. end
  107.  
  108. end
  109. return old_index(a, b);
  110. end
  111.  
  112. local mt = getrawmetatable(game)
  113. local oldnamecall = mt.__namecall
  114.  
  115. mt.__namecall = newcclosure(function(self, ...)
  116. local method = getnamecallmethod()
  117. if (method == "GetMass") then
  118. if self.Name == "HumanoidRootPart" or self.Name == "Torso" then
  119.  
  120. return 2.7999999523163
  121. end
  122.  
  123. --[[if self.Name == "Torso" then
  124. return 2.7999999523163
  125. end
  126. --]]
  127. end
  128. return oldnamecall(self, ...)
  129. end)
  130.  
  131. local t = {}
  132. while true do
  133. wait(0.1)
  134. local localplayer = game:GetService("Players").LocalPlayer
  135. local name = localplayer.Name
  136. local team = localplayer.Team
  137. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  138.  
  139.  
  140.  
  141.  
  142. if v:FindFirstChild("HumanoidRootPart") and v.Name ~= name and v:FindFirstChild("Torso") then
  143. if game:GetService("Players"):FindFirstChild(v.Name) then
  144. if game:GetService("Players"):FindFirstChild(v.Name).Team ~= team then
  145. _G.head = v.HumanoidRootPart
  146. if isPartVisible(v.Torso) and _G.rr == true then
  147. local head = v.HumanoidRootPart
  148.  
  149. local castPoints = {head.Position}
  150.  
  151. local ignoreList = {}
  152. for i,l in pairs( v:GetDescendants()) do
  153. if l:IsA("Part") or l:IsA("MeshPart") then
  154. table.insert(ignoreList, (table.getn(ignoreList)+1), l )
  155. end
  156. end
  157. local ff = {}
  158. local ff = workspace.CurrentCamera:GetPartsObscuringTarget(castPoints, ignoreList)
  159.  
  160. if v:FindFirstChild("Torso") then
  161. v.Torso.Size = Vector3.new(2.001,2.001 ,1.001)
  162. print("torso")
  163. end
  164.  
  165. if table.getn(ff) < 1 then
  166.  
  167.  
  168. local head = v.HumanoidRootPart
  169.  
  170. -- if v.Head:FindFirstChild("Mesh") then v.Head.Mesh:Destroy() end
  171. head.Size = Vector3.new(7,7 ,7)
  172. head.Transparency = 0.8
  173. head.Color =Color3.fromRGB(255, 0, 0)
  174. head.CanCollide = false
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181. local lolve
  182. lolve = head.Parent:GetPropertyChangedSignal("Parent"):Connect(function()
  183.  
  184. wait(3)
  185.  
  186.  
  187.  
  188. lolve:Disconnect()
  189.  
  190.  
  191.  
  192. ----DO NOT CHANGE VALUES BELOW HERE, THIS IS THE SPOOP----
  193.  
  194.  
  195.  
  196.  
  197. end)
  198.  
  199. else
  200. _G.head.Color =Color3.fromRGB(163, 162, 165)
  201. _G.head.Size = Vector3.new(2, 2, 1)
  202. _G.head.Transparency = 1
  203. _G.head.CanCollide = true
  204.  
  205. end
  206.  
  207.  
  208.  
  209.  
  210.  
  211. else
  212. _G.head.Color =Color3.fromRGB(163, 162, 165)
  213. _G.head.Size = Vector3.new(2, 2, 1)
  214. _G.head.Transparency = 1
  215. _G.head.CanCollide = true
  216. end
  217. end
  218. end
  219. end
  220. end
  221. end
  222.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement