1. local active = true
  2. local trueActive = true
  3. local reachType = "Sphere"
  4. local dmgEnabled = true
  5. local visualizerEnabled = false
  6. local visualizer = Instance.new("Part")
  7. visualizer.BrickColor = BrickColor.Blue()
  8. visualizer.Transparency = 0.6
  9. visualizer.Anchored = true
  10. visualizer.CanCollide = false
  11. visualizer.Size = Vector3.new(0.5,0.5,0.5)
  12. visualizer.BottomSurface = Enum.SurfaceType.Smooth
  13. visualizer.TopSurface = Enum.SurfaceType.Smooth
  14. local ScreenGui = Instance.new("ScreenGui")
  15. local Frame = Instance.new("Frame")
  16. local TextLabel = Instance.new("TextLabel")
  17. local TextBox = Instance.new("TextBox")
  18. local TextLabel_2 = Instance.new("TextLabel")
  19. local TextLabel_3 = Instance.new("TextLabel")
  20. local TextLabel_4 = Instance.new("TextLabel")
  21. local TextButton = Instance.new("TextButton")
  22. local Frame_2 = Instance.new("Frame")
  23. local Frame_3 = Instance.new("Frame")
  24. local Frame_4 = Instance.new("Frame")
  25. local Frame_5 = Instance.new("Frame")
  26. local TextButton_2 = Instance.new("TextButton")
  27. --Properties:
  28. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29. ScreenGui.DisplayOrder = 999999999
  30. ScreenGui.ResetOnSpawn = false
  31. Frame.Parent = ScreenGui
  32. Frame.AnchorPoint = Vector2.new(0, 0.5)
  33. Frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  34. Frame.BackgroundTransparency = 0.300
  35. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  36. Frame.BorderSizePixel = 4
  37. Frame.Position = UDim2.new(0, 0, 0.600000024, 0)
  38. Frame.Size = UDim2.new(0.150000006, 0, 0.300000012, 0)
  39. TextLabel.Parent = Frame
  40. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  41. TextLabel.BackgroundTransparency = 1.000
  42. TextLabel.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  43. TextLabel.Font = Enum.Font.SourceSans
  44. TextLabel.Text = "Reach:"
  45. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. TextLabel.TextScaled = true
  47. TextLabel.TextSize = 14.000
  48. TextLabel.TextWrapped = true
  49. TextBox.Parent = Frame
  50. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. TextBox.BackgroundTransparency = 1.000
  52. TextBox.Position = UDim2.new(0.600000024, 0, 0, 0)
  53. TextBox.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
  54. TextBox.Font = Enum.Font.SourceSans
  55. TextBox.Text = "3.5"
  56. TextBox.TextColor3 = Color3.fromRGB(255, 76, 76)
  57. TextBox.TextScaled = true
  58. TextBox.TextSize = 14.000
  59. TextBox.TextWrapped = true
  60. TextLabel_2.Parent = Frame
  61. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. TextLabel_2.BackgroundTransparency = 1.000
  63. TextLabel_2.Position = UDim2.new(0, 0, 0.200000003, 0)
  64. TextLabel_2.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  65. TextLabel_2.Font = Enum.Font.SourceSans
  66. TextLabel_2.Text = "Shape:"
  67. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. TextLabel_2.TextScaled = true
  69. TextLabel_2.TextSize = 14.000
  70. TextLabel_2.TextWrapped = true
  71. TextLabel_3.Parent = Frame
  72. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  73. TextLabel_3.BackgroundTransparency = 1.000
  74. TextLabel_3.Position = UDim2.new(0, 0, 0.400000006, 0)
  75. TextLabel_3.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  76. TextLabel_3.Font = Enum.Font.SourceSans
  77. TextLabel_3.Text = "Damage:"
  78. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. TextLabel_3.TextScaled = true
  80. TextLabel_3.TextSize = 14.000
  81. TextLabel_3.TextWrapped = true
  82. TextLabel_4.Parent = Frame
  83. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  84. TextLabel_4.BackgroundTransparency = 1.000
  85. TextLabel_4.Position = UDim2.new(0, 0, 0.600000024, 0)
  86. TextLabel_4.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  87. TextLabel_4.Font = Enum.Font.SourceSans
  88. TextLabel_4.Text = "Visualizer:"
  89. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  90. TextLabel_4.TextScaled = true
  91. TextLabel_4.TextSize = 14.000
  92. TextLabel_4.TextWrapped = true
  93. TextButton.Parent = Frame
  94. TextButton.AnchorPoint = Vector2.new(0, 1)
  95. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. TextButton.BackgroundTransparency = 1.000
  97. TextButton.Position = UDim2.new(0, 0, 1, 0)
  98. TextButton.Size = UDim2.new(1, 0, 0.150000006, 0)
  99. TextButton.Font = Enum.Font.SourceSansBold
  100. TextButton.Text = "Kill Script"
  101. TextButton.TextColor3 = Color3.fromRGB(222, 0, 0)
  102. TextButton.TextScaled = true
  103. TextButton.TextSize = 14.000
  104. TextButton.TextWrapped = true
  105. Frame_2.Parent = Frame
  106. Frame_2.Active = true
  107. Frame_2.AnchorPoint = Vector2.new(0, 0.5)
  108. Frame_2.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  109. Frame_2.BorderSizePixel = 0
  110. Frame_2.Position = UDim2.new(0.725000024, 0, 0.699999988, 0)
  111. Frame_2.Size = UDim2.new(0, 25, 0, 25)
  112. Frame_2.ZIndex = 5
  113. Frame_3.Parent = Frame_2
  114. Frame_3.AnchorPoint = Vector2.new(0.5, 0.5)
  115. Frame_3.BackgroundColor3 = Color3.fromRGB(255, 76, 76)
  116. Frame_3.BorderSizePixel = 0
  117. Frame_3.LayoutOrder = 1
  118. Frame_3.Position = UDim2.new(0.5, 0, 0.5, 0)
  119. Frame_4.Parent = Frame
  120. Frame_4.Active = true
  121. Frame_4.AnchorPoint = Vector2.new(0, 0.5)
  122. Frame_4.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  123. Frame_4.BorderSizePixel = 0
  124. Frame_4.Position = UDim2.new(0.725000024, 0, 0.5, 0)
  125. Frame_4.Size = UDim2.new(0, 25, 0, 25)
  126. Frame_4.ZIndex = 5
  127. Frame_5.Parent = Frame_4
  128. Frame_5.AnchorPoint = Vector2.new(0.5, 0.5)
  129. Frame_5.BackgroundColor3 = Color3.fromRGB(255, 76, 76)
  130. Frame_5.BorderSizePixel = 0
  131. Frame_5.LayoutOrder = 1
  132. Frame_5.Position = UDim2.new(0.5, 0, 0.5, 0)
  133. Frame_5.Size = UDim2.new(1, 0, 1, 0)
  134. TextButton_2.Parent = Frame
  135. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  136. TextButton_2.BackgroundTransparency = 1.000
  137. TextButton_2.Position = UDim2.new(0.600000024, 0, 0.200000003, 0)
  138. TextButton_2.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
  139. TextButton_2.Font = Enum.Font.SourceSans
  140. TextButton_2.Text = "Sphere"
  141. TextButton_2.TextColor3 = Color3.fromRGB(255, 76, 76)
  142. TextButton_2.TextScaled = true
  143. TextButton_2.TextSize = 14.000
  144. TextButton_2.TextWrapped = true
  145. repeat wait() until game.Players.LocalPlayer
  146. ScreenGui.Parent = game:GetService("CoreGui")
  147. Frame_4.InputBegan:connect(function(inp)
  148. if inp.UserInputType == Enum.UserInputType.MouseButton1 then
  149. dmgEnabled = not dmgEnabled
  150. local goal = {Size = UDim2.new(0,0,0,0)}
  151. if dmgEnabled then
  152. goal = {Size = UDim2.new(1,0,1,0)}
  153. end
  154. game:GetService("TweenService"):Create(Frame_5,TweenInfo.new(0.12,Enum.EasingStyle.Quad),goal):Play()
  155. end
  156. end)
  157. Frame_2.InputBegan:connect(function(inp)
  158. if inp.UserInputType == Enum.UserInputType.MouseButton1 then
  159. visualizerEnabled = not visualizerEnabled
  160. local goal = {Size = UDim2.new(0,0,0,0)}
  161. if visualizerEnabled then
  162. goal = {Size = UDim2.new(1,0,1,0)}
  163. end
  164. game:GetService("TweenService"):Create(Frame_3,TweenInfo.new(0.12,Enum.EasingStyle.Linear),goal):Play()
  165. end
  166. end)
  167. TextButton_2.MouseButton1Click:connect(function()
  168. if reachType == "Sphere" then
  169. reachType = "Line"
  170. else
  171. reachType = "Sphere"
  172. end
  173. TextButton_2.Text = reachType
  174. end)
  175. TextButton.MouseButton1Click:connect(function()
  176. trueActive = false
  177. ScreenGui:Destroy()
  178. end)
  179. game:GetService("UserInputService").InputBegan:connect(function(inp,gpe)
  180. if gpe then return end
  181. if inp.KeyCode == Enum.KeyCode.H then
  182. ScreenGui.Enabled = not ScreenGui.Enabled
  183. end
  184. end)
  185. local plr = game.Players.LocalPlayer
  186. local function onHit(hit,handle)
  187. local victim = hit.Parent:FindFirstChildOfClass("Humanoid")
  188. if victim and victim.Parent.Name ~= game.Players.LocalPlayer.Name then
  189. if dmgEnabled then
  190. for _,v in pairs(hit.Parent:GetChildren()) do
  191. if v:IsA("Part") then
  192. firetouchinterest(v,handle,0)
  193. firetouchinterest(v,handle,1)
  194. end
  195. end
  196. else
  197. firetouchinterest(hit,handle,0)
  198. firetouchinterest(hit,handle,1)
  199. end
  200. end
  201. end
  202. local function getWhiteList()
  203. local wl = {}
  204. for _,v in pairs(game.Players:GetPlayers()) do
  205. if v ~= plr then
  206. local char = v.Character
  207. if char then
  208. for _,q in pairs(char:GetChildren()) do
  209. if q:IsA("Part") then
  210. table.insert(wl,q)
  211. end
  212. end
  213. end
  214. end
  215. end
  216. return wl
  217. end
  218. game:GetService("RunService").RenderStepped:connect(function()
  219. if not active or not trueActive then return end
  220. local s = plr.Character and plr.Character:FindFirstChildOfClass("Tool")
  221. if not s then visualizer.Parent = nil end
  222. if s then
  223. local handle = s:FindFirstChild("Handle") or s:FindFirstChildOfClass("Part")
  224. if handle then
  225. if visualizerEnabled then
  226. visualizer.Parent = workspace
  227. else
  228. visualizer.Parent = nil
  229. end
  230. local reach = tonumber(TextBox.Text)
  231. if reach then
  232. if reachType == "Sphere" then
  233. visualizer.Shape = Enum.PartType.Ball
  234. visualizer.Size = Vector3.new(reach,reach,reach)
  235. visualizer.CFrame = handle.CFrame
  236. for _,v in pairs(game.Players:GetPlayers()) do
  237. local hrp = v.Character and v.Character:FindFirstChild("HumanoidRootPart")
  238. if hrp and handle then
  239. local mag = (hrp.Position-handle.Position).magnitude
  240. if mag <= reach then
  241. onHit(hrp,handle)
  242. end
  243. end
  244. end
  245. elseif reachType == "Line" then
  246. local origin = (handle.CFrame*CFrame.new(0,0,-2)).p
  247. local ray = Ray.new(origin,handle.CFrame.lookVector*-reach)
  248. local p,pos = workspace:FindPartOnRayWithWhitelist(ray,getWhiteList())
  249. visualizer.Shape = Enum.PartType.Block
  250. visualizer.Size = Vector3.new(1,0.8,reach)
  251. visualizer.CFrame = handle.CFrame*CFrame.new(0,0,(reach/2)+2)
  252. if p then
  253. onHit(p,handle)
  254. else
  255. for _,v in pairs(handle:GetTouchingParts()) do
  256. onHit(v,handle)
  257. end
  258. end
  259. end
  260. end
  261. end
  262. end
  263. end)