Advertisement
sugoma6969

H2

Oct 10th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.75 KB | None | 0 0
  1. function cmds()
  2. print([[
  3.  
  4. ;prefix - Changes prefix
  5. ;s, ;silent, ;silentaim - silentaim
  6. ;c, ;cam, ;camlock - camlock Uses cam.CFrame
  7. ;av, ;aimvelocity - AimVelocity depends on your ping
  8. (The higher your ping is the lower this should be)
  9. (The lower your ping is the higher this should be)
  10.  
  11. ;l, ;lock - Locks Player Instead Of Using GetClosestToMouse()
  12. ;ul, ;unlock - Unlocks Player
  13.  
  14. ;as, ;astomp - auto stomp people
  15. ;ar, ;areset - auto reset when knocked
  16.  
  17. ;fov - changes Field Of View
  18. ;esp, ;unesp
  19. ;day, ;night
  20.  
  21. ;goto - Goes to a player
  22. {
  23. display then player name(ex. goto display 1234)
  24. -- searches for display name instead of UserName
  25. }
  26.  
  27. ;to, ;tp - Tp's to a certain location
  28. {
  29. 1, f, food
  30. 2, gs, gunstore
  31. 3, b, bank
  32. 4, rpg
  33. 5, ft, flamethrower
  34. }
  35.  
  36. Hold LeftAlt + MouseButton1Click for click-teleport
  37. the button on the side is a keybind to change your aimlock key
  38.  
  39.  
  40. ]])
  41. end
  42. cmds()
  43.  
  44. local Players = game:GetService("Players")
  45. local lp = Players.LocalPlayer
  46. local mouse = lp:GetMouse()
  47. local uis = game:GetService("UserInputService")
  48. local rservice = game:GetService("RunService")
  49. local cam = workspace.CurrentCamera
  50. local NormalGravity = game.Workspace.Gravity
  51.  
  52. local Raw = getrawmetatable(game)
  53. local Caller = checkcaller or is_protosmasher_caller or Cer.isCerus
  54. local CallingScript = getcallingscript or get_calling_script
  55. local Closure = newcclosure or read_me or function(Func) return Func end
  56. local CallingMethod = getnamecallmethod or get_namecall_method
  57. setreadonly(Raw,false)
  58. local NewIndex = Raw.__newindex;
  59. Raw.__newindex = Closure(function(self,Property,Value)
  60. if Caller() then return NewIndex(self,Property,Value) end
  61. if Property == "WalkSpeed" then return 16 end
  62. if Property == "JumpPower" then return 50 end
  63. if Property == "HipHeight" then return 0 end
  64. if self == workspace and Property == "Gravity" then return NormalGravity end
  65. if Property == "CFrame" and self:IsDescendantOf(lp.Character) then return end
  66. return NewIndex(self,Property,Value)
  67. end)
  68. local Namecall = Raw.__namecall;
  69. Raw.__namecall = Closure(function(self,...)
  70. local Args = {...}
  71. if Caller() then
  72. if CallingMethod() == "FindFirstChild" and Args[1] == "HumanoidRootPart" then
  73. Args[1] = "HumanoidRootPart"
  74. return Namecall(self,unpack(Args))
  75. end
  76. return Namecall(self,...)
  77. end
  78. if CallingMethod() == "Destroy" or CallingMethod() == "Kick" then
  79. if self == lp then return wait(9e9) end
  80. if tostring(self) == 'BodyGyro' or tostring(self) == 'BodyVelocity' then return wait(9e9) end
  81. end
  82. if CallingMethod() == "BreakJoints" and self == lp.Character then return wait(9e9) end
  83. return Namecall(self,...)
  84. end)
  85. setreadonly(Raw,true)
  86.  
  87.  
  88. function getClosestToMouse()
  89. local closestdis = math.huge
  90. local closestplr
  91. for i,v in pairs(Players:GetPlayers()) do
  92. if v:DistanceFromCharacter(mouse.Hit.p) < closestdis and v ~= lp and v.Character and v.Character:FindFirstChild("Head") then
  93. closestplr = v
  94. closestdis = v:DistanceFromCharacter(mouse.Hit.p)
  95. end
  96. end
  97. if not closestplr then return lp end
  98. return closestplr
  99. end
  100.  
  101. function selp(player)
  102. local bbg = Instance.new("BillboardGui",game.CoreGui)
  103. bbg.Name = player.Name
  104. bbg.AlwaysOnTop = true
  105. bbg.Enabled = true
  106. bbg.Size = UDim2.new(1,0,1,0)
  107. bbg.StudsOffset = Vector3.new(0,2,0)
  108. local tlabel = Instance.new("TextLabel",bbg)
  109. tlabel.BackgroundTransparency = 1
  110. tlabel.Size = UDim2.new(1,0,1,0)
  111. tlabel.Text = player.Name
  112. tlabel.TextColor3 = Color3.new(255,125,0)
  113. end
  114.  
  115. function findplayer(args, tf)
  116. local Targoot
  117. if tf then
  118. for _,v in next, game.Players:GetPlayers() do
  119. if v.DisplayName:lower():sub(1,#args) == args:lower() then
  120. Targoot = v
  121. end
  122. end
  123. else
  124. for _,v in next, game.Players:GetPlayers() do
  125. if v.Name:lower():sub(1,#args) == args:lower() then
  126. Targoot = v
  127. end
  128. end
  129. end
  130. return Targoot
  131. end
  132.  
  133. local Prefix = ";"
  134.  
  135. local screengui = Instance.new("ScreenGui",game.CoreGui)
  136. local frame = Instance.new("Frame",screengui)
  137. local cmdBar = Instance.new("TextBox",frame)
  138. frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  139. frame.BorderSizePixel = 2
  140. frame.Position = UDim2.new(0, -4000, 0, mouse.ViewSizeY / 2)
  141. frame.Size = UDim2.new(0, 200, 0, 20)
  142. cmdBar.BackgroundTransparency = 1.000
  143. cmdBar.Size = UDim2.new(0, 200, 0, 20)
  144. cmdBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  145. cmdBar.TextSize = 16
  146. cmdBar.TextXAlignment = Enum.TextXAlignment.Left
  147.  
  148. function notify(text)
  149. local screengui = Instance.new("ScreenGui", game.CoreGui)
  150. local NOTIF = Instance.new("TextLabel", screengui)
  151. NOTIF.Position = UDim2.new(0, -500, 0.5, 0)
  152. NOTIF:TweenPosition(UDim2.new(0, 0, 0.5, 0), "Out", "Linear", 0.2, false)
  153. NOTIF.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  154. NOTIF.BorderColor3 = Color3.fromRGB(255, 255, 255)
  155. NOTIF.Size = UDim2.new(1, 0, 0, 40)
  156. NOTIF.Font = Enum.Font.SourceSans
  157. NOTIF.Text = text
  158. NOTIF.TextColor3 = Color3.fromRGB(255, 255, 255)
  159. NOTIF.TextSize = 25
  160. game.Debris:AddItem(screengui, 2.3)
  161. end
  162.  
  163. local akey = Enum.KeyCode.Q
  164. local keyss = false
  165. local silentaim = false
  166. local camlock = true
  167. local prediction = 5
  168. local shiftdown = false
  169. local altering = false
  170. local recording = false
  171. local as = false
  172. local ar = false
  173. local day = false
  174. local night = false
  175.  
  176. local sg = Instance.new("ScreenGui",game.CoreGui)
  177. local button = Instance.new("TextButton",sg)
  178. button.Position = UDim2.new(1,-200,0.5,-25)
  179. button.Text = tostring(akey)
  180. button.Size = UDim2.new(0,200,0,50)
  181.  
  182. uis.InputBegan:Connect(function(key)
  183. if key.KeyCode == Enum.KeyCode.LeftShift then
  184. shiftdown = true
  185. end
  186. if key.KeyCode == Enum.KeyCode.LeftAlt then
  187. altering = true
  188. end
  189. if key.KeyCode == Enum.KeyCode.R then
  190. if lp.Character and lp.Character:FindFirstChildOfClass("Tool") then
  191. game.ReplicatedStorage.MainRemote:FireServer("Reload")
  192. end
  193. end
  194. if recording == false and key ~= nil then
  195. if key.KeyCode == akey then
  196. keyss = true
  197. plr = getClosestToMouse()
  198. end
  199. end
  200. if key ~= nil and recording then
  201. akey = key.KeyCode
  202. button.Text = tostring(key.KeyCode)
  203. recording = false
  204. end
  205. end)
  206. uis.InputEnded:Connect(function(key)
  207. if key.KeyCode == Enum.KeyCode.LeftShift then
  208. shiftdown = false
  209. end
  210. if key.KeyCode == Enum.KeyCode.LeftAlt then
  211. altering = false
  212. end
  213. if recording == false and key ~= nil then
  214. if key.KeyCode == akey then
  215. keyss = false
  216. plr = nil
  217. end
  218. end
  219. end)
  220.  
  221. button.MouseButton1Click:Connect(function()
  222. recording = true
  223. button.Text = "..."
  224. end)
  225.  
  226. mouse.KeyDown:Connect(function(key)
  227. if key == "p" then
  228. if lp.Character then
  229. lp.Character:Destroy()
  230. end
  231. end
  232. if key == Prefix then
  233. frame:TweenPosition(UDim2.new(0, 0, 0.5, 0), 1, 0, 0.3, 1)
  234. cmdBar:CaptureFocus()
  235. end
  236. end)
  237.  
  238. mouse.Button1Down:Connect(function()
  239. if altering then
  240. if lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") then
  241. local partt = Instance.new("Part", lp.Character)
  242. partt.Anchored = true
  243. partt.CanCollide = false
  244. partt.Size = Vector3.new(2,2,1)
  245. partt.Transparency = 1
  246. partt.CFrame = mouse.Hit + Vector3.new(0,3.5,0)
  247. game.Debris:AddItem(partt, 0.05)
  248. local weld = Instance.new("Weld", partt)
  249. weld.Part0 = partt
  250. weld.Part1 = lp.Character:FindFirstChild("HumanoidRootPart")
  251. end
  252. end
  253. end)
  254.  
  255. cmdBar.FocusLost:Connect(function()
  256. frame:TweenPosition(UDim2.new(0, -500, 0.5, 0), 1, 0, 1, 1)
  257. local args = string.split(cmdBar.Text, " ")
  258. if args[1] == Prefix .. "prefix" then
  259. if args[2] and args[2] ~= "" and args[2] ~= " " and #args[2] == 1 and args[2] ~= "/" or args[2] ~= "." then
  260. Prefix = args[2]
  261. notify("Prefix " .. args[2])
  262. else
  263. notify("Need Second Argument, Cannot Put '/', '.' As Prefix")
  264. end
  265. end
  266. if args[1] == Prefix .. "cmds" or args[1] == Prefix .. "commands" then
  267. cmds()
  268. notify("Printed CMDS In Console")
  269. end
  270. if args[1] == Prefix .. "l" or args[1] == Prefix .. "lock" then
  271. if args[2] and args[2] ~= "" and args[2] ~= " " then
  272. if args[2] == "display" and args[3] and args[3] ~= "" and args[3] ~= " " then
  273. lockedplr = findplayer(args[3], true)
  274. else
  275. lockedplr = findplayer(args[2], false)
  276. end
  277. end
  278. end
  279. if args[1] == Prefix .. "ul" or args[1] == "unlock" then
  280. lockedplr = nil
  281. end
  282.  
  283. if args[1] == Prefix .. "s" or args[1] == Prefix .. "silent" or args[1] == Prefix .. "silentaim" then
  284. silentaim = true
  285. camlock = false
  286. notify("SilentAim true")
  287. end
  288. if args[1] == Prefix .. "c" or args[1] == Prefix .. "cam" or args[1] == Prefix .. "camlock" then
  289. silentaim = false
  290. camlock = true
  291. notify("Camlock true")
  292. end
  293. if args[1] == Prefix .. "av" or args[1] == Prefix .. "aimvelocity" then
  294. if args[2] and tonumber(args[2]) and tonumber(args[2]) <= 10 and tonumber(args[2]) >= 1 then
  295. prediction = tonumber(args[2])
  296. notify("AimVelocity " .. tonumber(args[2]))
  297. end
  298. end
  299. if args[1] == Prefix .. "esp" then
  300. if args[2] and args[2] ~= "" and args[2] ~= " " then
  301. if args[2] == "all" then
  302. for _, v in next, game.Players:GetPlayers() do
  303. if v ~= lp then
  304. selp(v)
  305. end
  306. end
  307. else
  308. for _, v in next, game.Players:GetPlayers() do
  309. if v.Name:lower():sub(1, #args[2]) == args[2]:lower() then
  310. selp(v)
  311. notify("Esp'd " .. v.Name)
  312. end
  313. end
  314. end
  315. end
  316. end
  317. if args[1] == Prefix .. "unesp" then
  318. if args[2] and args[2] ~= "" and args[2] ~= " " then
  319. if args[2] == "all" then
  320. for _, v in next, game.CoreGui:GetChildren() do
  321. for _,z in next, game.Players:GetPlayers() do
  322. if v.Name == z.Name then
  323. v:Destroy()
  324. end
  325. end
  326. end
  327. else
  328. for _, v in next, game.CoreGui:GetChildren() do
  329. if v.Name:lower():sub(1, #args[2]) == args[2]:lower() then
  330. v:Destroy()
  331. notify("Unesp'd " .. v.Name)
  332. end
  333. end
  334. end
  335. end
  336. end
  337. if args[1] == Prefix .. "fov" then
  338. if args[2] and tonumber(args[2]) and tonumber(args[2]) <= 120 and tonumber(args[2]) >= 10 then
  339. notify("FieldOfView " .. tonumber(args[2]))
  340. cam.FieldOfView = tonumber(args[2])
  341. else
  342. notify("FieldOfView 70")
  343. cam.FieldOfView = 70
  344. end
  345. end
  346. if args[1] == Prefix .. "as" or args[1] == Prefix .. "astomp" then
  347. as = not as
  348. notify("Auto-Stomp " .. tostring(as))
  349. end
  350. if args[1] == Prefix .. "ar" or args[1] == Prefix .. "areset" then
  351. ar = not ar
  352. notify("Auto-Reset " .. tostring(ar))
  353. end
  354. if args[1] == Prefix .. "day" then
  355. day = true
  356. night = false
  357. end
  358. if args[1] == Prefix .. "night" then
  359. day = false
  360. night = true
  361. end
  362. if args[1] == Prefix .. "goto" then
  363. if args[2] and args[2] ~= "" and args[2] ~= " " then
  364. if args[2] == "display" and args[3] and args[3] ~= "" and args[3] ~= " " then
  365. local plr = findplayer(args[3], true)
  366. if lp.Character and lp.Character:FindFirstChildOfClass("Humanoid") and plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") then
  367. local pt = Instance.new("Part", workspace)
  368. game.Debris:AddItem(pt, 0.1)
  369. pt.Transparency = 1
  370. pt.CanCollide = false
  371. pt.Anchored = true
  372. pt.CFrame = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  373. local ww = Instance.new("Weld", pt)
  374. ww.Part0 = pt
  375. ww.Part1 = lp.Character:FindFirstChild("HumanoidRootPart")
  376. end
  377. else
  378. local plr = findplayer(args[2], false)
  379. if lp.Character and lp.Character:FindFirstChildOfClass("Humanoid") and plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") then
  380. local pt = Instance.new("Part", workspace)
  381. game.Debris:AddItem(pt, 0.1)
  382. pt.Transparency = 1
  383. pt.CanCollide = false
  384. pt.Anchored = true
  385. pt.CFrame = plr.Character:FindFirstChild("HumanoidRootPart").CFrame
  386. local ww = Instance.new("Weld", pt)
  387. ww.Part0 = pt
  388. ww.Part1 = lp.Character:FindFirstChild("HumanoidRootPart")
  389. end
  390. end
  391. end
  392. end
  393. if args[1] == Prefix .. "tp" or args[1] == Prefix .. "to" then
  394. if args[2] == "1" or args[2] == "f" or args[2] == "food" then
  395. local part = Instance.new("Part", workspace)
  396. part.Anchored = true
  397. part.CanCollide = false
  398. part.CFrame = CFrame.new(-2256.73486, 404.5466, -954.518616)
  399. part.Transparency = 1
  400. game.Debris:AddItem(part, 1)
  401.  
  402. local weld = Instance.new("Weld", part)
  403. weld.Part0 = part
  404.  
  405. weld.Part1 = lp.Character.HumanoidRootPart
  406. wait(0.1)
  407. weld.Part1 = nil
  408. elseif args[2] == "2" or args[2] == "gs" or args[2] == "gunstore" then
  409. local part = Instance.new("Part", workspace)
  410. part.Anchored = true
  411. part.CanCollide = false
  412. part.CFrame = CFrame.new(-2489.80322, 388.863983, -1396.18481)
  413. part.Transparency = 1
  414. game.Debris:AddItem(part, 1)
  415.  
  416. local weld = Instance.new("Weld", part)
  417. weld.Part0 = part
  418.  
  419. weld.Part1 = lp.Character.HumanoidRootPart
  420. wait(0.1)
  421. weld.Part1 = nil
  422. elseif args[2] == "3" or args[2] == "b" or args[2] == "bank" then
  423. local part = Instance.new("Part", workspace)
  424. part.Anchored = true
  425. part.CanCollide = false
  426. part.CFrame = CFrame.new(-2334.15527, 402.614258, -946.768127)
  427. part.Transparency = 1
  428. game.Debris:AddItem(part, 1)
  429.  
  430. local weld = Instance.new("Weld", part)
  431. weld.Part0 = part
  432.  
  433. weld.Part1 = lp.Character.HumanoidRootPart
  434. wait(0.1)
  435. weld.Part1 = nil
  436. elseif args[2] == "4" or args[2] == "rpg" then
  437. local part = Instance.new("Part", workspace)
  438. part.Anchored = true
  439. part.CanCollide = false
  440. part.CFrame = CFrame.new(-1820.03491, 354.114227, -935.422668)
  441. part.Transparency = 1
  442. game.Debris:AddItem(part, 1)
  443.  
  444. local weld = Instance.new("Weld", part)
  445. weld.Part0 = part
  446.  
  447. weld.Part1 = lp.Character.HumanoidRootPart
  448. wait(0.1)
  449. weld.Part1 = nil
  450. elseif args[2] == "5" or args[2] == "ft" or args[2] == "flamethrower" then
  451. local part = Instance.new("Part", workspace)
  452. part.Anchored = true
  453. part.CanCollide = false
  454. part.CFrame = CFrame.new(-2077.3833, 434.674774, -747.421631)
  455. part.Transparency = 1
  456. game.Debris:AddItem(part, 1)
  457.  
  458. local weld = Instance.new("Weld", part)
  459. weld.Part0 = part
  460.  
  461. weld.Part1 = lp.Character.HumanoidRootPart
  462. wait(0.1)
  463. weld.Part1 = nil
  464. end
  465. end
  466. end)
  467.  
  468. game.Players.PlayerRemoving:Connect(function(plrr)
  469. for _,z in pairs(game.CoreGui:GetChildren()) do
  470. if z:IsA'BillboardGui' then
  471. if z.Name == plrr.Name then
  472. z:Destroy()
  473. end
  474. end
  475. end
  476. end)
  477.  
  478. spawn(function()
  479. rservice.Stepped:Connect(function()
  480. if lockedplr and game.Players:FindFirstChild(lockedplr.Name) then
  481. if keyss and silentaim then
  482. game.ReplicatedStorage.MainRemote:FireServer("MousePos", lockedplr.Character:FindFirstChild("Head").Position + lockedplr.Character:FindFirstChild("Head").Velocity / prediction + lockedplr.Character:FindFirstChild("Head").RotVelocity / 5, "P")
  483. elseif keyss and camlock then
  484. cam.CFrame = CFrame.new(cam.CFrame.p, lockedplr.Character:FindFirstChild("Head").Position + lockedplr.Character:FindFirstChild("Head").Velocity / prediction + lockedplr.Character:FindFirstChild("Head").RotVelocity / 5)
  485. end
  486. else
  487. if keyss and silentaim then
  488. game.ReplicatedStorage.MainRemote:FireServer("MousePos", plr.Character:FindFirstChild("Head").Position + plr.Character:FindFirstChild("Head").Velocity / prediction + plr.Character:FindFirstChild("Head").RotVelocity / 5, "P")
  489. elseif keyss and camlock then
  490. cam.CFrame = CFrame.new(cam.CFrame.p, plr.Character:FindFirstChild("Head").Position + plr.Character:FindFirstChild("Head").Velocity / prediction + plr.Character:FindFirstChild("Head").RotVelocity / 5)
  491. end
  492. end
  493. end)
  494. end)
  495. rservice.RenderStepped:Connect(function()
  496. if lp.Character and lp.Character:FindFirstChildOfClass("Humanoid") then
  497. if shiftdown then
  498. lp.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 21
  499. else
  500. lp.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
  501. end
  502. if ar then
  503. if lp.Character and lp.Character:FindFirstChild("I_LOADED_I") and lp.Character:FindFirstChild("I_LOADED_I")['K.O'].Value == true then
  504. if lp.Character then
  505. lp.Character:Destroy()
  506. end
  507. end
  508. end
  509. end
  510. for _,z in pairs(game.Players:GetPlayers()) do
  511. for _,v in pairs(game.CoreGui:GetChildren()) do
  512. if z.Name == v.Name then
  513. if z.Character and z.Character:FindFirstChildOfClass("Humanoid") and z.Character:FindFirstChild("Head") then
  514. v.Adornee = z.Character:FindFirstChild("Head")
  515. else
  516. v.Adornee = nil
  517. end
  518. end
  519. end
  520. end
  521. end)
  522.  
  523. game:GetService("Lighting").Changed:Connect(function()
  524. if day then
  525. game:GetService("Lighting").ClockTime = 14
  526. elseif night then
  527. game:GetService("Lighting").ClockTime = 0
  528. end
  529. end)
  530. game:GetService("Lighting").GlobalShadows = false
  531. game:GetService("Lighting").ShadowSoftness = 0
  532. game:GetService("Lighting").Brightness = 1
  533. game:GetService("Lighting").FogEnd = 9e9
  534. game:GetService("Lighting").FogStart = 9e9
  535. lp.PlayerGui.Chat.Frame.ChatChannelParentFrame.Visible = true
  536. lp.PlayerGui.Chat.Frame.ChatBarParentFrame.Position = lp.PlayerGui.Chat.Frame.ChatChannelParentFrame.Position + UDim2.new(UDim.new(), lp.PlayerGui.Chat.Frame.ChatChannelParentFrame.Size.Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement