Facebook
From idk, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 353
  1. local active = true
  2. local trueActive = true
  3. local reachType = "Sphere"
  4. local dmgEnabled = true
  5. local visualizerEnabled = false
  6.  
  7. local visualizer = Instance.new("Part")
  8. visualizer.BrickColor = BrickColor.Blue()
  9. visualizer.Transparency = 0.6
  10. visualizer.Anchored = true
  11. visualizer.CanCollide = false
  12. visualizer.Size = Vector3.new(0.5,0.5,0.5)
  13. visualizer.BottomSurface = Enum.SurfaceType.Smooth
  14. visualizer.TopSurface = Enum.SurfaceType.Smooth
  15.  
  16. local ScreenGui = Instance.new("ScreenGui")
  17. local Frame = Instance.new("Frame")
  18. local TextLabel = Instance.new("TextLabel")
  19. local TextBox = Instance.new("TextBox")
  20. local TextLabel_2 = Instance.new("TextLabel")
  21. local TextLabel_3 = Instance.new("TextLabel")
  22. local TextLabel_4 = Instance.new("TextLabel")
  23. local TextButton = Instance.new("TextButton")
  24. local Frame_2 = Instance.new("Frame")
  25. local Frame_3 = Instance.new("Frame")
  26. local Frame_4 = Instance.new("Frame")
  27. local Frame_5 = Instance.new("Frame")
  28. local TextButton_2 = Instance.new("TextButton")
  29.  
  30. --Properties:
  31.  
  32. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  33. ScreenGui.DisplayOrder = 999999999
  34. ScreenGui.ResetOnSpawn = false
  35.  
  36. Frame.Parent = ScreenGui
  37. Frame.AnchorPoint = Vector2.new(0, 0.5)
  38. Frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  39. Frame.BackgroundTransparency = 0
  40. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  41. Frame.BorderSizePixel = 4
  42. Frame.Position = UDim2.new(0, 0, 0.600000024, 0)
  43. Frame.Size = UDim2.new(0.150000006, 0, 0.300000012, 0)
  44.  
  45. TextLabel.Parent = Frame
  46. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  47. TextLabel.BackgroundTransparency = 1.000
  48. TextLabel.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  49. TextLabel.Font = Enum.Font.SourceSans
  50. TextLabel.Text = "Reach:"
  51. TextLabel.TextColor3 = Color3.fromRGB(255,255, 255)
  52. TextLabel.TextScaled = true
  53. TextLabel.TextSize = 14.000
  54. TextLabel.TextWrapped = true
  55.  
  56. TextBox.Parent = Frame
  57. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. TextBox.BackgroundTransparency = 1.000
  59. TextBox.Position = UDim2.new(0.600000024, 0, 0, 0)
  60. TextBox.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
  61. TextBox.Font = Enum.Font.SourceSans
  62. TextBox.Text = "3.5"
  63. TextBox.TextColor3 = Color3.fromRGB(0,0,255)
  64. TextBox.TextScaled = true
  65. TextBox.TextSize = 14.000
  66. TextBox.TextWrapped = true
  67.  
  68. TextLabel_2.Parent = Frame
  69. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. TextLabel_2.BackgroundTransparency = 1.000
  71. TextLabel_2.Position = UDim2.new(0, 0, 0.200000003, 0)
  72. TextLabel_2.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  73. TextLabel_2.Font = Enum.Font.SourceSans
  74. TextLabel_2.Text = "Shape:"
  75. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  76. TextLabel_2.TextScaled = true
  77. TextLabel_2.TextSize = 14.000
  78. TextLabel_2.TextWrapped = true
  79.  
  80. TextLabel_3.Parent = Frame
  81. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. TextLabel_3.BackgroundTransparency = 1.000
  83. TextLabel_3.Position = UDim2.new(0, 0, 0.400000006, 0)
  84. TextLabel_3.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  85. TextLabel_3.Font = Enum.Font.SourceSans
  86. TextLabel_3.Text = "Damage:"
  87. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  88. TextLabel_3.TextScaled = true
  89. TextLabel_3.TextSize = 14.000
  90. TextLabel_3.TextWrapped = true
  91.  
  92. TextLabel_4.Parent = Frame
  93. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. TextLabel_4.BackgroundTransparency = 1.000
  95. TextLabel_4.Position = UDim2.new(0, 0, 0.600000024, 0)
  96. TextLabel_4.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  97. TextLabel_4.Font = Enum.Font.SourceSans
  98. TextLabel_4.Text = "Visualizer:"
  99. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  100. TextLabel_4.TextScaled = true
  101. TextLabel_4.TextSize = 14.000
  102. TextLabel_4.TextWrapped = true
  103.  
  104. TextButton.Parent = Frame
  105. TextButton.AnchorPoint = Vector2.new(0, 1)
  106. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107. TextButton.BackgroundTransparency = 1.000
  108. TextButton.Position = UDim2.new(0, 0, 1, 0)
  109. TextButton.Size = UDim2.new(1, 0, 0.150000006, 0)
  110. TextButton.Font = Enum.Font.SourceSansBold
  111. TextButton.Text = "Closet X (R to close GUI)"
  112. TextButton.TextColor3 = Color3.fromRGB(0, 0, 255)
  113. TextButton.TextScaled = true
  114. TextButton.TextSize = 14.000
  115. TextButton.TextWrapped = true
  116.  
  117. Frame_2.Parent = Frame
  118. Frame_2.Active = true
  119. Frame_2.AnchorPoint = Vector2.new(0, 0.5)
  120. Frame_2.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  121. Frame_2.BorderSizePixel = 0
  122. Frame_2.Position = UDim2.new(0.725000024, 0, 0.699999988, 0)
  123. Frame_2.Size = UDim2.new(0, 25, 0, 25)
  124. Frame_2.ZIndex = 5
  125.  
  126. Frame_3.Parent = Frame_2
  127. Frame_3.AnchorPoint = Vector2.new(0.5, 0.5)
  128. Frame_3.BackgroundColor3 = Color3.fromRGB(0,0,255)
  129. Frame_3.BorderSizePixel = 0
  130. Frame_3.LayoutOrder = 1
  131. Frame_3.Position = UDim2.new(0.5, 0, 0.5, 0)
  132.  
  133. Frame_4.Parent = Frame
  134. Frame_4.Active = true
  135. Frame_4.AnchorPoint = Vector2.new(0, 0.5)
  136. Frame_4.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
  137. Frame_4.BorderSizePixel = 0
  138. Frame_4.Position = UDim2.new(0.725000024, 0, 0.5, 0)
  139. Frame_4.Size = UDim2.new(0, 25, 0, 25)
  140. Frame_4.ZIndex = 5
  141.  
  142. Frame_5.Parent = Frame_4
  143. Frame_5.AnchorPoint = Vector2.new(0.5, 0.5)
  144. Frame_5.BackgroundColor3 = Color3.fromRGB(0,0,255)
  145. Frame_5.BorderSizePixel = 0
  146. Frame_5.LayoutOrder = 1
  147. Frame_5.Position = UDim2.new(0.5, 0, 0.5, 0)
  148. Frame_5.Size = UDim2.new(1, 0, 1, 0)
  149.  
  150. TextButton_2.Parent = Frame
  151. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  152. TextButton_2.BackgroundTransparency = 1.000
  153. TextButton_2.Position = UDim2.new(0.600000024, 0, 0.200000003, 0)
  154. TextButton_2.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
  155. TextButton_2.Font = Enum.Font.SourceSans
  156. TextButton_2.Text = "Sphere"
  157. TextButton_2.TextColor3 = Color3.fromRGB(0,0,255)
  158. TextButton_2.TextScaled = true
  159. TextButton_2.TextSize = 14.000
  160. TextButton_2.TextWrapped = true
  161.  
  162. repeat wait() until game.Players.LocalPlayer
  163. ScreenGui.Parent = game:GetService("CoreGui")
  164.  
  165. Frame_4.InputBegan:connect(function(inp)
  166. if inp.UserInputType == Enum.UserInputType.MouseButton1 then
  167. dmgEnabled = not dmgEnabled
  168. local goal = {Size = UDim2.new(0,0,0,0)}
  169. if dmgEnabled then
  170. goal = {Size = UDim2.new(1,0,1,0)}
  171. end
  172. game:GetService("TweenService"):Create(Frame_5,TweenInfo.new(0.12,Enum.EasingStyle.Quad),goal):Play()
  173. end
  174. end)
  175. Frame_2.InputBegan:connect(function(inp)
  176. if inp.UserInputType == Enum.UserInputType.MouseButton1 then
  177. visualizerEnabled = not visualizerEnabled
  178. local goal = {Size = UDim2.new(0,0,0,0)}
  179. if visualizerEnabled then
  180. goal = {Size = UDim2.new(1,0,1,0)}
  181. end
  182. game:GetService("TweenService"):Create(Frame_3,TweenInfo.new(0.12,Enum.EasingStyle.Linear),goal):Play()
  183. end
  184. end)
  185. TextButton_2.MouseButton1Click:connect(function()
  186. if reachType == "Sphere" then
  187. reachType = "Line"
  188. else
  189. reachType = "Sphere"
  190. end
  191. TextButton_2.Text = reachType
  192. end)
  193. TextButton.MouseButton1Click:connect(function()
  194. trueActive = false
  195. ScreenGui:Destroy()
  196. end)
  197. game:GetService("UserInputService").InputBegan:connect(function(inp,gpe)
  198. if gpe then return end
  199. if inp.KeyCode == Enum.KeyCode.R then
  200. ScreenGui.Enabled = not ScreenGui.Enabled
  201. end
  202. end)
  203.  
  204. local plr = game.Players.LocalPlayer
  205.  
  206. local function onHit(hit,handle)
  207. local victim = hit.Parent:FindFirstChildOfClass("Humanoid")
  208. if victim and victim.Parent.Name ~= game.Players.LocalPlayer.Name then
  209. if dmgEnabled then
  210. for _,v in pairs(hit.Parent:GetChildren()) do
  211. if v:IsA("Part") then
  212. firetouchinterest(v,handle,0)
  213. firetouchinterest(v,handle,1)
  214. end
  215. end
  216. else
  217. firetouchinterest(hit,handle,0)
  218. firetouchinterest(hit,handle,1)
  219. end
  220. end
  221. end
  222.  
  223. local function getWhiteList()
  224. local wl = {}
  225. for _,v in pairs(game.Players:GetPlayers()) do
  226. if v ~= plr then
  227. local char = v.Character
  228. if char then
  229. for _,q in pairs(char:GetChildren()) do
  230. if q:IsA("Part") then
  231. table.insert(wl,q)
  232. end
  233. end
  234. end
  235. end
  236. end
  237. return wl
  238. end
  239.  
  240. game:GetService("RunService").RenderStepped:connect(function()
  241. if not active or not trueActive then return end
  242. local s = plr.Character and plr.Character:FindFirstChildOfClass("Tool")
  243. if not s then visualizer.Parent = nil end
  244. if s then
  245. local handle = s:FindFirstChild("Handle") or s:FindFirstChildOfClass("Part")
  246. if handle then
  247. if visualizerEnabled then
  248. visualizer.Parent = workspace
  249. else
  250. visualizer.Parent = nil
  251. end
  252. local reach = tonumber(TextBox.Text)
  253. if reach then
  254. if reachType == "Sphere" then
  255. visualizer.Shape = Enum.PartType.Ball
  256. visualizer.Material = Enum.Material.ForceField
  257. visualizer.Transparency = 0
  258. visualizer.Size = Vector3.new(reach,reach,reach)
  259. visualizer.CFrame = handle.CFrame
  260. for _,v in pairs(game.Players:GetPlayers()) do
  261. local hrp = v.Character and v.Character:FindFirstChild("HumanoidRootPart")
  262. if hrp and handle then
  263. local mag = (hrp.Position-handle.Position).magnitude
  264. if mag <= reach then
  265. onHit(hrp,handle)
  266. end
  267. end
  268. end
  269. elseif reachType == "Line" then
  270. local origin = (handle.CFrame*CFrame.new(0,0,-2)).p
  271. local ray = Ray.new(origin,handle.CFrame.lookVector*-reach)
  272. local p,pos = workspace:FindPartOnRayWithWhitelist(ray,getWhiteList())
  273. visualizer.Shape = Enum.PartType.Block
  274. visualizer.Size = Vector3.new(1,0.8,reach)
  275. visualizer.CFrame = handle.CFrame*CFrame.new(0,0,(reach/2)+2)
  276. if p then
  277. onHit(p,handle)
  278. else
  279. for _,v in pairs(handle:GetTouchingParts()) do
  280. onHit(v,handle)
  281. end
  282. end
  283. end
  284. end
  285. end
  286. end
  287. end)
  288. Script #2
  289. --//Lazy code and messy
  290. local run = function(a,Called)
  291.  local Error,Value = pcall(function()
  292.   coroutine.wrap(a)(Called)
  293.  end)
  294.  coroutine.wrap(function()
  295.   if Value and Error == false then
  296.    warn("Error at: "..tostring(Value))
  297.   end
  298.  end)()
  299. end
  300. local Menus = {}
  301. local UserInputService = game:GetService("UserInputService")
  302.  
  303. local States = {
  304.  AutoAim = false,
  305. }
  306.  
  307. --//https://create.roblox.com/docs/reference/engine/classes/UserInputService?
  308. local UserInputService = game:GetService("UserInputService")
  309.  
  310. local function onInputBegan(input, _gameProcessed)
  311.  if input.KeyCode == Enum.KeyCode.RightShift then
  312.   States.AutoAim = not States.AutoAim
  313.  end
  314. end
  315.  
  316. UserInputService.InputBegan:Connect(onInputBegan)
  317.  
  318. function GetChars()
  319.  local chars = {}
  320.  for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  321.   if v and v ~= game.Players.LocalPlayer then
  322.    chars[#chars+1] = v.Character
  323.   end
  324.  end
  325.  return chars
  326. end
  327. function findNearestPlayer(Position)
  328.  local List = GetChars()
  329.  local Torso = nil
  330.  local Distance = 15
  331.  local Temp = nil
  332.  local Human = nil
  333.  local Temp2 = nil
  334.  for x = 1, #List do
  335.   Temp2 = List[x]
  336.   if (Temp2.className == "Model") and (Temp2 ~= script.Parent) then
  337.    Temp = Temp2:findFirstChild("HumanoidRootPart")
  338.    Human = Temp2:findFirstChild("Humanoid")
  339.    if (Temp ~= nil) and (Human ~= nil) and (Human.Health > 0) then
  340.     if (Temp.Position - Position).magnitude < Distance then
  341.      Torso = Temp
  342.      Distance = (Temp.Position - Position).magnitude
  343.     end
  344.    end
  345.   end
  346.  end
  347.  return Torso
  348. end
  349.  
  350. local Player = game.Players.LocalPlayer
  351. local Character = Player.Character
  352.  
  353. local Mouse = Player:GetMouse()
  354. local RunService = game:GetService("RunService")
  355. local ta = {0,0}
  356. local Root = game.Players.LocalPlayer.Character.HumanoidRootPart
  357. local RootPos, MousePos = Root.Position, findNearestPlayer(Root.Position)
  358. RunService.RenderStepped:Connect(function()
  359.  if States.AutoAim then
  360.   RootPos, MousePos = Root.Position, findNearestPlayer(Root.Position)
  361.   if MousePos then
  362.    Root.CFrame = CFrame.new(RootPos, Vector3.new(MousePos.Position.X, RootPos.Y, MousePos.Position.Z))
  363.   end
  364.  end
  365. end)
  366. local stop = false
  367. local cd1 = false
  368. local startbypass = false
  369. local changecd = false
  370. task.spawn(function()
  371.  while true do
  372.   task.wait()
  373.   if States.AutoAim then
  374.    if MousePos and RootPos then
  375.     task.spawn(function()
  376.      if not changecd then
  377.       changecd = true
  378.       if ta[1] == -3 then
  379.        ta[1] = 3
  380.       else
  381.        ta[1] = -3
  382.       end
  383.       if ta[2] == -1.7 then
  384.        ta[2] = 1.7
  385.       else
  386.        ta[2] = -1.7
  387.       end
  388.       wait()
  389.       changecd = false
  390.      end
  391.     end)
  392.     if MousePos and States.AutoAim then
  393.      Root.CFrame = MousePos.CFrame+Vector3.new(ta[1],0,ta[2])
  394.     else
  395.      ta[1]=0
  396.      ta[2]=0
  397.     end
  398.    end
  399.   end
  400.  end
  401. end)