SHARE
TWEET

Untitled

a guest Jun 25th, 2019 757 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local network = require(game:GetService('ReplicatedStorage'):WaitForChild("Tortoiseshell")).Network
  2. local backup = network.Fire;
  3. function network:Fire(name, ...)
  4.     if name == "rqidcnkhpgybak" then
  5.         return true
  6.     end
  7.  
  8.     return backup(self, name, ...)
  9. end
  10.  
  11. workspace.Characters.DescendantAdded:Connect(function(v)
  12.     if v.Name == "Config" then
  13.         if v.Parent.Parent.Parent.Parent.Name ~= game.Players.LocalPlayer.Name then return end
  14.         local s = require(v).Stats
  15.         s.Recoil = Vector3.new()
  16.         s.CameraRecoil = 0
  17.     end
  18. end)
  19.  
  20. function run()
  21.    
  22.    
  23.    
  24.    
  25.    
  26.     -----------------------------------// aimbot script
  27.    
  28.    
  29.     local cam = workspace.Camera
  30.     local camera = workspace.Camera
  31.     local plr = game:service'Players'.LocalPlayer
  32.     local t
  33.     local mouse = plr:GetMouse()
  34.     local aimbot = true
  35.     local whitelisted = {
  36.         plr.Name;
  37.     }
  38.    
  39.     local ray = Ray.new
  40.     local ray_start
  41.    
  42.    
  43.    
  44.    
  45.     local checkifwhitelisted = function(nam)
  46.         local asd = false
  47.    
  48.         for _, a in pairs(whitelisted) do
  49.             if nam == a then
  50.                 asd = true
  51.             end
  52.         end
  53.    
  54.         return asd
  55.     end
  56.    
  57.     _G.gofor = "Head"
  58.     local lPlayerTeam = nil
  59.    
  60.     function checkteam(name)
  61.         local teams = game.Teams
  62.         local plr_team = nil
  63.         for i,v in pairs(teams:GetDescendants()) do
  64.             if plr_team == nil then
  65.                 if v.Name == name then
  66.                     plr_team = v.Parent
  67.                     return plr_team
  68.                 end
  69.             end
  70.         end
  71.     end
  72.     lPlayerTeam = checkteam(plr.Name)
  73.    
  74.     function CheckIf(name)
  75.         for i,v in pairs(workspace.Characters:children()) do
  76.             if checkteam(name) ~= lPlayerTeam then
  77.                 return true
  78.             end
  79.         end
  80.         return false
  81.     end
  82.    
  83.     local function getcloseplayer()
  84.         --pcall(function()
  85.             local ignorelist = workspace.Characters[plr.Name].Hitbox:children''
  86.             for i,v in pairs(workspace:children'') do
  87.                 if v:IsA("Model") then
  88.                     table.insert(ignorelist,v)
  89.                 end
  90.             end
  91.             local closestDist = 2e9
  92.             local player
  93.        
  94.             for _, a in pairs(workspace.Characters:children()) do
  95.                 if a:IsA'Model' and game:service'Players':FindFirstChild(a.Name) and a.Name ~= plr.Name and checkifwhitelisted(a.Name) == false and CheckIf(a.Name) and a ~= nil then
  96.                    
  97.                     local dist = (workspace.Characters[plr.Name].Root.Position - a.Root.Position).magnitude
  98.                    
  99.                     if dist < closestDist then
  100.                         if a ~= nil and a:FindFirstChild'Hitbox' then
  101.                             if a.Hitbox:FindFirstChild'Head' then
  102.                                 pcall(function()
  103.                                     ray_start = workspace.Characters[plr.Name].Hitbox.Head.Position
  104.                                     local vector = ( a.Hitbox.Head.Position - ray_start)
  105.                                     local new_ray = ray(ray_start, vector.unit * 1000)
  106.                                     local hit, position = workspace:FindPartOnRayWithIgnoreList(new_ray, ignorelist)
  107.                                    
  108.                                     if (hit and hit:isDescendantOf(a.Hitbox)) then
  109.                                         closestDist = dist
  110.                                         player = a.Hitbox
  111.                                     end
  112.                                 end)
  113.                             end
  114.                         end
  115.                     end
  116.                    
  117.                    
  118.                 end
  119.             end
  120.        
  121.             return player
  122.         --end)
  123.     end
  124.    
  125.     mouse.KeyDown:connect(function(key)
  126.         if key == "[" then
  127.             if aimbot then
  128.                 aimbot = false
  129.             else
  130.                 aimbot = true
  131.             end
  132.         end
  133.     end)
  134.    
  135.     local closesthead = nil
  136.    
  137.    
  138.     --------------------------------------------------------------------------////////////////////////// Cam Scripto
  139.    
  140.     local UserInputService = game:GetService("UserInputService")
  141.     local ReplicatedStorage = game:GetService("ReplicatedStorage")
  142.     local Workspace = game:GetService("Workspace")
  143.     local Players = game:GetService("Players")
  144.     local TS = require(ReplicatedStorage:WaitForChild("Tortoiseshell"))
  145.     TS.Timer:UnbindFromRenderStep('Camera')
  146.     local PLAYER = Players.LocalPlayer
  147.     local CAMERA = Workspace.CurrentCamera
  148.     local OFFSET = Vector3.new(0, 1.6, 0)
  149.     local SPRINT_FOV_SCALE = 0.9
  150.     local LEAN_DISTANCE = 2
  151.     local LEAN_TILT = 0.15
  152.     local MIN_Y, MAX_Y = -1.5, 1.5
  153.     local SENSITIVITY = Vector2.new(0.004, 0.004)
  154.     local recoilSpring = TS.Math.Spring:Create(1, 200, 30, 1)
  155.     TS.Camera.FirstPerson.RecoilSpring = recoilSpring
  156.     local character, root, state, sprinting, lean, vaulting, grounded, climbing, aiming, look, sliding, backpack, items, equipped, item, config
  157.     local x, y = 0, 0
  158.     local leanOffset = CFrame.new()
  159.     local lastUpdate = 0
  160.     local actionSpring = TS.Math.Spring:Create(1, 100, 10, 1)
  161.     local slideFOV = 0
  162.     local spectateChar
  163.     local function Equipped(newItem)
  164.         pcall(function()
  165.             config = nil
  166.             item = nil
  167.             if newItem then
  168.                 config = TS.Items:GetConfig(newItem)
  169.                 item = newItem
  170.             end
  171.         end)
  172.     end
  173.     local function HandleCharacter(newCharacter)
  174.         if newCharacter then
  175.             character = nil
  176.             spectateChar = nil
  177.             root = newCharacter:WaitForChild("Root")
  178.             state = newCharacter:WaitForChild("State")
  179.             sprinting = state:WaitForChild("Sprinting")
  180.             lean = state:WaitForChild("Lean")
  181.             vaulting = state:WaitForChild("Vaulting")
  182.             grounded = state:WaitForChild("Grounded")
  183.             climbing = state:WaitForChild("Climbing")
  184.             aiming = state:WaitForChild("Aiming")
  185.             look = state:WaitForChild("Look")
  186.             sliding = state:WaitForChild("Sliding")
  187.             backpack = newCharacter:WaitForChild("Backpack")
  188.             equipped = backpack:WaitForChild("Equipped")
  189.             items = backpack:WaitForChild("Items")
  190.             equipped.Changed:Connect(function()
  191.                 Equipped(equipped.Value)
  192.             end)
  193.             vaulting.Changed:Connect(function()
  194.                 if vaulting.Value then
  195.                     actionSpring:Shove(Vector3.new(sprinting.Value and -3 or -2, 0, 0))
  196.                 end
  197.             end)
  198.             climbing.Changed:Connect(function()
  199.                 if climbing.Value then
  200.                     actionSpring:Shove(Vector3.new(-10, 0, 0))
  201.                 end
  202.             end)
  203.             grounded.Changed:Connect(function()
  204.                 if not vaulting.Value and root.Velocity.Y < -60 then
  205.                     actionSpring:Shove(Vector3.new(root.Velocity.Y / 20, 0, 0))
  206.                 end
  207.             end)
  208.             newCharacter.DescendantAdded:Connect(function(obj)
  209.                 if obj:IsA("BasePart") then
  210.                     obj.LocalTransparencyModifier = 1
  211.                 end
  212.             end)
  213.             for _, v in pairs(newCharacter:GetDescendants()) do
  214.                 if v:IsA("BasePart") then
  215.                     v.LocalTransparencyModifier = 1
  216.                 end
  217.             end
  218.             Equipped(equipped.Value)
  219.             character = newCharacter
  220.         end
  221.     end
  222.     TS.Damage.CharacterKilled:Connect(function(char, _, player)
  223.         if char == character and player then
  224.             spectateChar = TS.Characters:GetCharacter(player)
  225.         end
  226.     end)
  227.     UserInputService.InputChanged:connect(function(inputObject, processed)
  228.         if inputObject.UserInputType == Enum.UserInputType.MouseMovement then
  229.             local fovSens = math.clamp((CAMERA.FieldOfView / TS.Camera.FieldOfView) ^ 1.5, 0, 1)
  230.             x = (x - inputObject.Delta.X * SENSITIVITY.X * fovSens * TS.Camera.Sensitivity) % (math.pi * 2)
  231.             y = math.clamp(y - inputObject.Delta.Y * SENSITIVITY.Y * fovSens * TS.Camera.Sensitivity, MIN_Y, MAX_Y)
  232.         end
  233.     end)
  234.     CAMERA.FieldOfView = 1
  235.     CAMERA.CameraType = Enum.CameraType.Scriptable
  236.     HandleCharacter(TS.Characters:GetCharacter(PLAYER))
  237.    
  238.     local a = false
  239.    
  240.     TS.Timer:BindToRenderStep("Camera", 1, function(deltaTime)
  241.         if workspace.Characters:FindFirstChild(plr.Name) == nil then
  242.             TS.Timer:UnbindFromRenderStep('Camera')
  243.             a = true
  244.         end
  245.         if a == true then
  246.             return
  247.         end
  248.         if spectateChar then
  249.             local center = spectateChar.PrimaryPart.Position + Vector3.new(0, 0.5, 0)
  250.             CAMERA.FieldOfView = 50
  251.             CAMERA.CFrame = CFrame.new(center) * CFrame.Angles(0, x, 0) * CFrame.Angles(y, 0, 0) * CFrame.new(0, 0, 15)
  252.             CAMERA.Focus = CAMERA.CFrame * CFrame.new(0, 0, -20)
  253.         elseif character and character.Parent then
  254.             look.Value = y
  255.             if sliding.Value then
  256.                 local speed = Vector2.new(root.Velocity.X, root.Velocity.Z).Magnitude
  257.                 slideFOV = TS.Math:Lerp(slideFOV, speed / 3 * (TS.Camera.FieldOfView / 90), math.min(deltaTime * 10, 1))
  258.             else
  259.                 slideFOV = TS.Math:Lerp(slideFOV, 0, math.min(deltaTime * 10, 1))
  260.             end
  261.             local newFOV = TS.Camera.FieldOfView
  262.             local center = root.CFrame:PointToWorldSpace(OFFSET)
  263.             local player = getcloseplayer()
  264.             if sprinting.Value then
  265.                 newFOV = newFOV * SPRINT_FOV_SCALE
  266.             elseif aiming.Value then
  267.                 if aimbot then
  268.                     if player ~= nil and a == false then
  269.                         CAMERA.CoordinateFrame = CFrame.new(center, player.Head.Position)
  270.                     end
  271.                 end
  272.                 if item then
  273.                     newFOV = newFOV * config.Stats.AimFOV
  274.                 else
  275.                     newFOV = newFOV * 0.9
  276.                 end
  277.             end
  278.             CAMERA.FieldOfView = TS.Math:Lerp(CAMERA.FieldOfView, math.min(newFOV + slideFOV, 120), math.min(deltaTime * 10, 1))
  279.             local leanAmount = lean.Value
  280.             if math.abs(leanAmount) > 0.1 then
  281.                 local hit, position = TS.Raycast:CastGeometry(center + Vector3.new(0, -1, 0), root.CFrame:VectorToWorldSpace(Vector3.new(leanAmount * LEAN_DISTANCE * 2, 0, 0)))
  282.                 if hit then
  283.                     local distance = (position - center).Magnitude
  284.                     leanAmount = math.sin(lean.Value) * distance / (LEAN_DISTANCE * 2)
  285.                 end
  286.             end
  287.             local heightOffset = math.cos(leanAmount * math.pi / 2) - 1
  288.             leanOffset = leanOffset:Lerp(CFrame.new(leanAmount * LEAN_DISTANCE, heightOffset * LEAN_DISTANCE / 4, 0) * CFrame.Angles(0, 0, -leanAmount * LEAN_TILT), math.min(deltaTime * 10, 1))
  289.             actionSpring:Update(deltaTime)
  290.             local actionOffset = CFrame.Angles(actionSpring.Position.X, actionSpring.Position.Y, actionSpring.Position.Z)
  291.             local recoilOffset = CFrame.Angles(recoilSpring.Position.Y * 0, recoilSpring.Position.X * 0, 0)
  292.             if aiming.Value == false or player == nil then
  293.                 if a == true then return end
  294.                 CAMERA.CFrame = CFrame.new(center) * CFrame.Angles(0, x, 0) * CFrame.Angles(y, 0, 0) * leanOffset * actionOffset * recoilOffset
  295.             end
  296.             CAMERA.Focus = CAMERA.CFrame * CFrame.new(0, 0, -20)
  297.             if 0.1 <= tick() - lastUpdate and a == false then
  298.                 lastUpdate = tick()
  299.                
  300.                 --TS.Network:Fire("Character", "State", "Look", y)
  301.             end
  302.         end
  303.     end)
  304. end
  305.  
  306. run()
  307.  
  308. workspace.Characters.ChildAdded:Connect(function(v)
  309.     if v.Name == game.Players.LocalPlayer.Name then
  310.         wait(.2)
  311.         run()
  312.     end
  313. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top