The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Unit 1968 script pastebin roblox
By LINK GAME on 2024-11-22 08:00 am | Syntax: LUA | Views: 32



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1.  
  2. print("----------------------------------------------")
  3. print("-------------------loading--------------------")
  4. print("----------------------------------------------")
  5. game.StarterGui:SetCore('SendNotification', {
  6.     Title = "Script Executed";
  7.     Text = "Loading...";
  8.     duration = 5;
  9. })
  10. local UILibrary = loadstring(game:HttpGet("https://pastebin.com/raw/V1ca2q9s"))()
  11.  
  12. local ClientPlayer = game.Players.LocalPlayer
  13. local ViewSize = Vector2.new(workspace.CurrentCamera.ViewportSize.X, workspace.CurrentCamera.ViewportSize.Y)
  14. local FOV = 200
  15. local Aim = false
  16. local AimTgle = false
  17. local chams = false
  18. local Jump = 40
  19. local Speed = 16
  20. local fly = false
  21. local mouse = ClientPlayer:GetMouse()
  22. local PlayerOverRide = false
  23. local ChamTrans = 50
  24. local Raytracing = false
  25. local trans = 100
  26. local gunmod1 = false
  27. local gunmod2 = false
  28. local gunmod3 = false
  29. local gunmod4 = false
  30. local gunmod5 = false
  31. local BoxEsp = false
  32. local BoxEspTrans = 50
  33. local plrToAim = nil
  34. local falling = false
  35. local Name_ESP = false
  36. local Players = game.Players:GetPlayers()
  37. local Move = workspace.Map.Geometry
  38.  
  39. local MainUI = UILibrary.Load("Unit 1968 haxx")
  40. local Aimbot = MainUI.AddPage("Aimbot", false)
  41. local AimToggle = Aimbot.AddToggle("Aimbot", false, function(b)
  42.     AimTgle = b
  43. end)
  44.  
  45. local raycheck = Aimbot.AddToggle("Wall check", false, function(b)
  46.     Raytracing = b
  47. end)
  48. local FovTrans = Aimbot.AddSlider("FOV transparency", {Min = 0, Max = 100, Def = 100}, function(b)
  49.     trans = b
  50. end)
  51.  
  52. local FOVSlider = Aimbot.AddSlider("Aimbot FOV", {Min = 10, Max = 800, Def = 200}, function(n)
  53.     FOV = n
  54. end)
  55. local Visuals = MainUI.AddPage("Visuals", false)
  56. local Chams = Visuals.AddToggle("Chams", false, function(b)
  57.     chams = b
  58. end)
  59. local ESPOFBOX = Visuals.AddToggle("Box ESP", false, function(b)
  60.     BoxEsp = b
  61. end)
  62. local ChamTransparencySlider = Visuals.AddSlider("Transparency", {Min = 0, Max = 100, Def = 50}, function(n)
  63.     ChamTrans = n
  64. end)
  65. local NameESP = Visuals.AddToggle("Name ESP", false, function(b)
  66.     Name_ESP = b
  67. end)
  68. local GunMod = MainUI.AddPage("Gun mod", false)
  69. local InfAmmo = GunMod.AddToggle("Infinite ammo", false, function(b)
  70.     gunmod1 = b
  71. end)
  72. local spred = GunMod.AddToggle("No spread", false, function(b)
  73.     gunmod2 = b
  74. end)
  75. local bulletdrop = GunMod.AddToggle("No bullet drop or bullet travel time", false, function(b)
  76.     gunmod3 = b
  77. end)
  78. local recoilbgone = GunMod.AddToggle("No recoil", false, function(b)
  79.     gunmod4 = b
  80. end)
  81. local Extrafirerate = GunMod.AddToggle("Full auto and increased firerate", false, function(b)
  82.     gunmod5 = b
  83. end)
  84. local Player = MainUI.AddPage("Other", false)
  85. local POR = Player.AddToggle("Enable player over rides", false, function(b)
  86.     PlayerOverRide = b
  87. end)
  88. local Walkspeed = Player.AddSlider("Walks speed", {Min = 16, Max = 800, Def = 16}, function(n)
  89.     Speed = n
  90. end)
  91. local JumpPower = Player.AddSlider("Jump power", {Min = 40, Max = 800, Def = 40}, function(n)
  92.     Jump = n
  93. end)
  94. local zoom = Player.AddToggle("Fly/Noclip", false, function(b)
  95.     fly = b
  96. end)
  97. local NoFall = Player.AddToggle("No fall damage", false, function(b)
  98.     falling = b
  99. end)
  100.  
  101. local Credits = MainUI.AddPage("Credits", false)
  102. local maker = Credits.AddLabel("Script made by Flappy#5578.")
  103.  
  104. local Circle = Drawing.new("Circle")
  105. Circle.Visible = true
  106. Circle.Transparency = 1
  107. Circle.Color = Color3.new(1, 1, 1)
  108. Circle.Thickness = 1
  109. Circle.NumSides = 64
  110. Circle.Filled = false
  111.  
  112. local function W2S(part)
  113.     local pos, inView = workspace.CurrentCamera:WorldToViewportPoint(part)
  114.     return Vector2.new(pos.X, pos.Y), inView
  115. end
  116.  
  117. local function FindClosestPlayerToCrosshair()
  118.     local closest = nil
  119.     local dist = math.huge
  120.     for i,v in pairs(Players) do
  121.         if v.Character then
  122.             local position, todraw = W2S(v.Character:WaitForChild("Head").Position)
  123.             if todraw then
  124.                 local distance = ((ViewSize)/2 - position).magnitude
  125.                 if distance < dist and distance < FOV and v.Character:WaitForChild("Humanoid").Health > 0 and ClientPlayer.TeamColor.Number ~= v.TeamColor.Number then
  126.                     if Raytracing then
  127.                         local raycast = Ray.new(workspace.CurrentCamera.CFrame.Position, v.Character.Head.Position - workspace.CurrentCamera.CFrame.Position)
  128.                        
  129.                         local ignore = workspace.CurrentCamera:GetChildren()
  130.                         table.insert(ignore, ClientPlayer.Character)
  131.                         table.insert(ignore, workspace.Map.Ignore)
  132.                        
  133.                         local hitPart, hitPosition, hitNormal = workspace:FindPartOnRayWithIgnoreList(raycast, ignore)
  134.                        
  135.                         if hitPart ~= nil then
  136.                             if hitPart:IsDescendantOf(v.Character) then
  137.                                 dist = distance
  138.                                 closest = v.Character.Head
  139.                             end
  140.                         end
  141.                     else  
  142.                         dist = distance
  143.                         closest = v.Character.Head
  144.                     end
  145.                 end
  146.             end
  147.         end
  148.     end
  149.     return closest
  150. end
  151.  
  152. local function namesp()
  153.     for i,v in pairs(game.CoreGui:GetChildren()) do
  154.         if v.Name == "ESP NAME BOI" then
  155.             v:Destroy()
  156.         end
  157.     end
  158.     if not Name_ESP then
  159.         return false
  160.     end
  161.     for _,v in pairs(Players) do
  162.         if v.Name == ClientPlayer.Name then
  163.            
  164.         elseif Name_ESP and v.Character:WaitForChild("HumanoidRootPart") then
  165.             if v.Character then
  166.                 if v.Character:WaitForChild("Humanoid").Health > 0 and v.Character:WaitForChild("Head") then
  167.                     local a = Instance.new("BillboardGui",game.CoreGui)
  168.                     a.Size = UDim2.new(1,0, 2,0)
  169.                     a.Adornee = v.Character.Head
  170.                     a.AlwaysOnTop = true    
  171.                     a.Name = "ESP NAME BOI"
  172.                     local b = Instance.new("TextLabel",a)
  173.                     ----------------------------------------------
  174.                     b.Position = UDim2.new(0,0, 0,0)
  175.                     b.Size = UDim2.new(1,0, 1,0)
  176.                     b.BackgroundTransparency = 1
  177.                     b.Text = v.Name
  178.                    
  179.                     b.TextColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  180.                 end
  181.             end
  182.         end
  183.     end
  184.     return true
  185. end
  186.  
  187. local function boxesp()
  188.    
  189.     for i,v in pairs(game.CoreGui:GetChildren()) do
  190.         if v.Name == "ESP BOI" then
  191.             v:Destroy()
  192.         end
  193.     end
  194.     if not BoxEsp then
  195.         return false
  196.     end
  197.     for _,v in pairs(Players) do
  198.         if v.Name == ClientPlayer.Name then
  199.            
  200.         elseif BoxEsp and v.Character then
  201.             if v.Character:WaitForChild("Humanoid").Health > 0 then
  202.                 local a = Instance.new("BillboardGui",game.CoreGui)
  203.                 a.Size = UDim2.new(4,0, 5.5,0)
  204.                 a.Adornee = v.Character.HumanoidRootPart
  205.                 a.AlwaysOnTop = true    
  206.                 a.Name = "ESP BOI"
  207.                 local b = Instance.new("Frame",a)
  208.                 ----------------------------------------------
  209.                 b.Position = UDim2.new(0,0, 1/7,0)
  210.                 b.Size = UDim2.new(1,0, 1,0)  
  211.                 b.BackgroundTransparency = ChamTrans / 100
  212.                 b.BorderSizePixel = 2
  213.                 b.BackgroundColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  214.             end
  215.         end
  216.     end
  217.     return true
  218. end
  219.  
  220. function esp()
  221.     local p = Players
  222.    
  223.     for i,v in pairs(ClientPlayer.PlayerGui:GetChildren()) do
  224.         if v:IsA('Folder') and (game:GetService('Players'):FindFirstChild(v.Name) or v:FindFirstChildOfClass("BoxHandleAdornment")) then
  225.             v:Destroy()
  226.         end
  227.     end
  228.     if chams == false then
  229.         return false
  230.     end
  231.    
  232.     for i,v in pairs(p) do
  233.         if workspace:FindFirstChild(v.Name) and (v.Character:FindFirstChild('Head')) then
  234.             if v ~= ClientPlayer then
  235.                 local folder = Instance.new('Folder',ClientPlayer.PlayerGui)
  236.                 folder.Name = v.Name
  237.                 if v.Character.Humanoid.Health > 0 and chams then
  238.                     for _,part in pairs(v.Character:GetChildren()) do
  239.                         if part:IsA('BasePart') then
  240.                             local adorn = Instance.new('BoxHandleAdornment',folder)
  241.                             adorn.Name = v.Name
  242.                             if part.Name ~= "Head" then
  243.                                 adorn.Size = part.Size
  244.                             else
  245.                                 adorn.Size = (part.Size)-Vector3.new(part.Size.X/4,0,0)
  246.                             end
  247.                             adorn.Adornee = part
  248.                             adorn.AlwaysOnTop = true
  249.                             adorn.ZIndex = 5
  250.                             adorn.Transparency = ChamTrans / 100
  251.                             local c = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  252.                             adorn.Color3 = c
  253.                             local adorn2 = Instance.new('BoxHandleAdornment',folder)
  254.                             adorn2.Name = v.Name
  255.                             if part.Name ~= "Head" then
  256.                                 adorn2.Size = part.Size*1.1
  257.                             else
  258.                                 adorn2.Size = (part.Size*1.1)-Vector3.new(part.Size.X/4,0,0)
  259.                             end
  260.                         end
  261.                     end
  262.                 end
  263.             end
  264.         end
  265.     end
  266.    
  267.     return true
  268. end
  269.  
  270. mouse.Button2Down:connect( function()
  271.     Aim = true
  272. end)
  273.  
  274. mouse.Button2Up:connect( function()
  275.     Aim = false
  276. end)
  277.  
  278. game:GetService("RunService").RenderStepped:connect(function()
  279.     ViewSize = Vector2.new(workspace.CurrentCamera.ViewportSize.X, workspace.CurrentCamera.ViewportSize.Y)
  280.     plrToAim = FindClosestPlayerToCrosshair()
  281.    
  282.     Circle.Radius = FOV
  283.    
  284.     Circle.Position = ViewSize / 2
  285.     Circle.Transparency = trans / 100
  286.     --plrToAim ~= nil or plrToAim == "Head"
  287.    
  288.     if ClientPlayer.Backpack.CLIENT ~= nil then
  289.    
  290.         local env = getsenv(ClientPlayer.Backpack.CLIENT)
  291.         if env then
  292.             if env.equipped == "melee" or env.equipped == "grenade" then
  293.  
  294.             else
  295.                 if gunmod1 then
  296.                     env.ammocount = 30
  297.                     env.ammocount2 = 8
  298.                     env.ammocount3 = 69
  299.                 end
  300.                 if gunmod2 then
  301.                     env.spread = 0
  302.                 end
  303.                 if gunmod3 then
  304.                     env.gravity = 0
  305.                     env.bulletspeedm = 8
  306.                 end
  307.                 if env.gun and env.gun.Name ~= melee then
  308.                     if env.gun.Recoil ~= nil and gunmod4 then
  309.                         env.gun.Recoil.Value = 0
  310.                         env.gun.LRecoil.Value = 0
  311.                         env.gun.RRecoil.Value = 0
  312.                     end
  313.                     if env.gun.FireRate ~= nil and gunmod5 then
  314.                         env.gun.Automatic.Value = true
  315.                         env.gun.FireRate.Value = 0.001
  316.                         env.bolted = true
  317.                         env.primarymode = "automatic"
  318.                     end
  319.                 end
  320.             end
  321.         end
  322.     end
  323.     if plrToAim ~= nil then
  324.         if Aim and AimTgle then
  325.             workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, plrToAim.Position)
  326.         end
  327.     end
  328.     if PlayerOverRide then
  329.         ClientPlayer.Character:WaitForChild("Humanoid").WalkSpeed = Speed
  330.         ClientPlayer.Character:WaitForChild("Humanoid").JumpPower = Jump
  331.     end
  332.     if fly then
  333.         ClientPlayer.Character.Humanoid:ChangeState(11)
  334.     end
  335. end)
  336.  
  337. local mt = getrawmetatable(game)
  338. local namecall = mt.__namecall
  339.  
  340. setreadonly(mt, false)
  341.  
  342. mt.__namecall = newcclosure(function(Self,...)
  343.         local Args = {...}
  344.         local name = getnamecallmethod()
  345.  
  346.         if not checkcaller() and Self == game.ReplicatedStorage.Events.Fall and name == "FireServer" and falling then
  347.                 table.insert(Args, 1, 0)
  348.                 return namecall(Self, Args)
  349.         end
  350.  
  351.         return namecall(Self,...)
  352. end)
  353.  
  354. setreadonly(mt, true)
  355.  
  356. game.StarterGui:SetCore('SendNotification', {
  357.     Title = "Script Executed";
  358.     Text = "Done!";
  359.     duration = 3;
  360. })
  361.  
  362. while wait(0.2) do
  363.     Players = game.Players:GetPlayers();
  364.     if ClientPlayer.Character then
  365.         esp()
  366.     end
  367.     namesp()
  368.     boxesp()
  369. end



  • Recent Roblox Scripts