lotushomerun

MP5 Script(Roblox)

May 27th, 2017
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 39.30 KB | None | 0 0
  1. --A MP5 ^-^
  2. --Has a 30 round magazine and does lots of damage
  3. --Don't leak this. If you do i will fucking shoot you till your dead :\
  4. local runDummyScript = function(f,scri)
  5. local oldenv = getfenv(f)
  6. local newenv = setmetatable({}, {
  7. __index = function(_, k)
  8. if k:lower() == 'script' then
  9. return scri
  10. else
  11. return oldenv[k]
  12. end
  13. end
  14. })
  15. setfenv(f, newenv)
  16. ypcall(function() f() end)
  17. end
  18. cors = {}
  19. mas = Instance.new("Model",game:GetService("Lighting"))
  20. mas.Name = "CompiledModel"
  21. o1 = Instance.new("Tool")
  22. o2 = Instance.new("Part")
  23. o3 = Instance.new("SpecialMesh")
  24. o4 = Instance.new("PointLight")
  25. o5 = Instance.new("Sound")
  26. o6 = Instance.new("Sound")
  27. o7 = Instance.new("Sound")
  28. o8 = Instance.new("Sound")
  29. o9 = Instance.new("Weld")
  30. o10 = Instance.new("Weld")
  31. o12 = Instance.new("LocalScript")
  32. o13 = Instance.new("NumberValue")
  33. o14 = Instance.new("NumberValue")
  34. o15 = Instance.new("Smoke")
  35. o16 = Instance.new("Smoke")
  36. o17 = Instance.new("Smoke")
  37. o18 = Instance.new("NumberValue")
  38. o19 = Instance.new("ScreenGui")
  39. o20 = Instance.new("Frame")
  40. o21 = Instance.new("TextLabel")
  41. o22 = Instance.new("TextLabel")
  42. o23 = Instance.new("Frame")
  43. o24 = Instance.new("TextLabel")
  44. o25 = Instance.new("Frame")
  45. o26 = Instance.new("Frame")
  46. o27 = Instance.new("Part")
  47. o28 = Instance.new("BlockMesh")
  48. o29 = Instance.new("Part")
  49. o30 = Instance.new("BlockMesh")
  50. o1.Name = "MP5"
  51. o1.Parent = game.Players.LocalPlayer.Backpack
  52. o1.TextureId = "http://www.roblox.com/asset/?id=122080062"
  53. o1.GripForward = Vector3.new(-0, -0, 1)
  54. o1.GripPos = Vector3.new(-0.1, 0.25, -1)
  55. o1.GripRight = Vector3.new(1, 0, 0)
  56. o1.GripUp = Vector3.new(0, -1, 0)
  57. o1.ToolTip = "MP5"
  58. o1.CanBeDropped = false
  59. o2.Name = "Handle"
  60. o2.Parent = o1
  61. o2.BrickColor = BrickColor.new("Black")
  62. o2.Position = Vector3.new(10.3698215, -8.49250793, 9.99193001)
  63. o2.Rotation = Vector3.new(-179.710007, 4.6500001, -0.0199999996)
  64. o2.CanCollide = false
  65. o2.FormFactor = Enum.FormFactor.Custom
  66. o2.Size = Vector3.new(0.200000003, 1, 3)
  67. o2.CFrame = CFrame.new(10.3698215, -8.49250793, 9.99193001, 0.996700466, 0.000403226441, 0.081140928, -1.96705855e-06, -0.999987543, 0.00499360403, 0.0811419338, -0.00497728772, -0.996688247)
  68. o2.BottomSurface = Enum.SurfaceType.Smooth
  69. o2.TopSurface = Enum.SurfaceType.Smooth
  70. o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  71. o2.Position = Vector3.new(10.3698215, -8.49250793, 9.99193001)
  72. o3.Parent = o2
  73. o3.MeshId = "http://www.roblox.com/asset/?id=2760846"
  74. o3.Scale = Vector3.new(-0.949999988, -0.850000024, -0.850000024)
  75. o3.TextureId = "http://www.roblox.com/asset/?id=2760834"
  76. o3.MeshType = Enum.MeshType.FileMesh
  77. o4.Name = "Flash"
  78. o4.Parent = o2
  79. o4.Color = Color3.new(1, 1, 0)
  80. o4.Enabled = false
  81. o4.Brightness = 1.5
  82. o5.Name = "Bolt"
  83. o5.Parent = o2
  84. o5.SoundId = "http://roblox.com/asset/?id=166238161"
  85. o5.Volume = 0.20000000298023
  86. o6.Name = "MagIn"
  87. o6.Parent = o2
  88. o6.SoundId = "http://roblox.com/asset/?id=166238223"
  89. o6.Volume = 0.20000000298023
  90. o7.Name = "MagOut"
  91. o7.Parent = o2
  92. o7.SoundId = "http://roblox.com/asset/?id=166238177"
  93. o7.Volume = 0.20000000298023
  94. o8.Name = "Shoot"
  95. o8.Parent = o2
  96. o8.SoundId = "http://www.roblox.com/asset/?id=180955656"
  97. o8.Volume = 1
  98. o9.Parent = o2
  99. o9.C0 = CFrame.new(-0.00968074799, -0.660612106, -1.09442449, 1, 3.01910623e-05, -3.21764019e-05, 3.01900891e-05, -1, -3.0264544e-05, -3.2177315e-05, 3.02635726e-05, -1)
  100. o9.Part0 = o2
  101. o9.Part1 = o27
  102. o10.Parent = o2
  103. o10.C0 = CFrame.new(0.000315666199, -0.38229084, 1.55278492, 1, 3.01910623e-05, -3.21764019e-05, 3.01900891e-05, -1, -3.0264544e-05, -3.2177315e-05, 3.02635726e-05, -1)
  104. o10.Part0 = o2
  105. o10.Part1 = o29
  106. o12.Name = "Gun_Script"
  107. o12.Parent = o1
  108. print("Giving "..game.Players.LocalPlayer.Name.. " a " ..o1.Name.. " Don't leak this. If you do i will fucking shoot you till your dead! ")
  109. table.insert(cors,coroutine.create(function()
  110. wait()
  111. runDummyScript(function()
  112. sp = o1
  113.  
  114. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  115. Shirt = true -- If true will load the user's shirt to the arms as well
  116.  
  117. function onEquipped(mouse)
  118.     local Player = game:GetService("Players").LocalPlayer  
  119.     local Cam = game.Workspace.CurrentCamera
  120.    
  121.     local Arms = Instance.new("Model")
  122.     Arms.Name = "Arms"
  123.     Arms.Parent = Cam
  124.    
  125.     if Shirt == true then
  126.         local Humanoid = Instance.new("Humanoid")
  127.         Humanoid.MaxHealth = 0
  128.         Humanoid.Health = 0
  129.         Humanoid.Name = ""
  130.         Humanoid.Parent = Arms
  131.        
  132.         local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  133.         newShirt.Parent = Arms
  134.     else end
  135.    
  136.     local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  137.     RightArm.Name = "Right Arm"
  138.     RightArm.Transparency = 0
  139.    
  140.     local w = Instance.new("Weld")
  141.     w.Part0 = RightArm
  142.     w.Part1 = Player.Character:FindFirstChild("Right Arm")
  143.     w.C0 = CFrame.new()
  144.     w.C1 = CFrame.new()
  145.     w.Parent = RightArm
  146.     RightArm.Parent = Arms
  147.        
  148.     local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  149.     LeftArm.Name = "Left Arm"
  150.     LeftArm.Transparency = 0   
  151.    
  152.     local w = Instance.new("Weld")
  153.     w.Part0 = LeftArm
  154.     w.Part1 = Player.Character:FindFirstChild("Left Arm")
  155.     w.C0 = CFrame.new()
  156.     w.C1 = CFrame.new()
  157.     w.Parent = LeftArm 
  158.     LeftArm.Parent = Arms
  159.    
  160.     if Mesh ~= false then
  161.         local LeftArmMesh = script:FindFirstChild("LeftArm")
  162.         LeftArmMesh.Parent = LeftArm
  163.         local RightArmMesh = script:FindFirstChild("RightArm")
  164.         RightArmMesh.Parent = RightArm
  165.     else end
  166.                
  167. end
  168.  
  169. function onUnequipped(mouse)
  170.     local Player = game:GetService("Players").LocalPlayer      
  171.     local Cam = game.Workspace.CurrentCamera
  172.     for _, Model in pairs(Cam:GetChildren()) do
  173.         if Model.Name == "Arms" then
  174.             Model:remove()
  175.         else end
  176.     end
  177. end
  178.  
  179. sp.Equipped:connect(onEquipped)
  180. sp.Unequipped:connect(onUnequipped)
  181.  
  182. wait(0.5)
  183. --Made by YouTubes--
  184. --Edit settings below--
  185. local Tool = o1
  186. local Settings = {
  187.     Range = 10000
  188.     ,Spread = 8
  189.     ,Damage = {25, 25}
  190.     ,HeadShotDamage = {25, 25}
  191.     ,Bullets = 1
  192.     ,FireRate = 0.06
  193.     ,Automatic = true
  194.     ,AntiTK = false
  195.     ,ImpactDuration = 0.1
  196.     --Reload
  197.     ,ReloadKey = "R"
  198.     ,ReloadTime = 1.83
  199.     ,Ammo = 30
  200.     ,IncludeChamberedBullet = false
  201.     --Gui
  202.     ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  203.     --Arms
  204.     ,OneHanded = false
  205.     ,FakeArms = false
  206.     ,FakeArmTransparency = 1
  207.     -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  208.     ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  209.     ,LeftPos = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  210.     ,AimPart = Tool.AimPart
  211.     ,AimPartOffset = CFrame.new()
  212.     ,AimGripOffset = Vector3.new(0, 0, 0)
  213.     ,LeftAimPos = CFrame.new(1.05, 0.98, 0.48) * CFrame.Angles(math.rad(-95), math.rad(24), math.rad(0), 00)
  214.     ,AimAnim = {
  215.         Enabled = false
  216.         ,Frames = 50
  217.         ,Time = 0.1
  218.     }
  219.     ,ChangeFOV = {true, 55}
  220.     ,SpreadReduction = 7.5
  221.     --Weld
  222.     ,Weld = true
  223.     --Mouse
  224.     ,Icons = {
  225.         Idle = "rbxassetid://70288585"
  226.         ,Fire1 = "rbxassetid://70288578"
  227.         ,Fire2 = "rbxassetid://70288572"
  228.         ,Fire3 = "rbxassetid://70288578"
  229.         ,Reload = "rbxassetid://70288599"
  230.         ,Aim = "rbxasset://textures/Blank.png"
  231.     }
  232.     ,FireMouseAnimTime = 0.15
  233.     --Recoil
  234.     ,Recoil = math.rad(0.5)
  235.     --Smoke
  236.     ,Smoke = true
  237.     ,SmokePart = Tool.SmokePart
  238.     ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  239.     --Sprint
  240.     ,Sprint = true
  241.     ,SprintSpeed = 20
  242.     ,SprintKey = "0"
  243.     ,SprintSpreadIncrease = 40
  244.     ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
  245.     --Other
  246.     ,DropHats = false
  247. }
  248.  
  249. --Do not edit below this lign--
  250.  
  251. local Orig_Spread = Settings.Spread
  252. local Orig_Grip = Tool.GripPos
  253.  
  254. local Player = game.Players.LocalPlayer
  255. local Character = Player.Character
  256.  
  257. local Camera = Workspace.CurrentCamera
  258.  
  259. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  260.  
  261. local Gui, CanUpdateGui = nil, true
  262.  
  263. local Sprinting, Equipped
  264.  
  265. function Update_Gui()
  266.     if Gui and CanUpdateGui then
  267.         Gui.Frame.AmmoDisplay.Text = Ammo.Value .. "|" .. StoredAmmo.Value
  268.     end
  269. end
  270.  
  271. local Welded
  272. if Settings.Weld then
  273.     Delay(0, function()
  274.         local weldC0s = {}
  275.         for i, v in pairs(Tool:GetChildren()) do
  276.             if v:IsA("BasePart") and v ~= Tool.Handle then
  277.                 table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  278.                 v.Anchored = false
  279.             end
  280.         end
  281.         Tool.Handle.Anchored = false
  282.         local welds = {}
  283.         Tool.Equipped:connect(function()
  284.             for i, v in ipairs(welds) do
  285.                 v.Part1 = nil
  286.                 v:Destroy()
  287.             end
  288.             for i, v in ipairs(weldC0s) do
  289.                 if v[1] and v[2] then
  290.                     local w = Instance.new("Weld", Tool.Handle)
  291.                     w.Part0 = Tool.Handle
  292.                     w.Part1 = v[1]
  293.                     w.C0 = v[2]
  294.                     table.insert(welds, w)
  295.                 end
  296.             end
  297.         end)
  298.         wait()
  299.         Welded = true
  300.     end)
  301. end
  302.  
  303. local Left_Weld, Right_Weld
  304.  
  305. Ammo.Changed:connect(Update_Gui)
  306. StoredAmmo.Changed:connect(Update_Gui)
  307.  
  308. Settings.Range = math.min(Settings.Range, 999)
  309.  
  310. local Ignore_Model = Workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", Workspace)
  311. Ignore_Model.Name = "Ray_Ignore"
  312.  
  313. local Ray_Ignore = {Character, Ignore_Model, Camera}
  314.  
  315. Character.Humanoid.Died:connect(function()
  316.     Tool.Parent = Player.Backpack
  317. end)
  318.  
  319. function Fire(Mouse)
  320.     local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  321.     local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  322.     local Hit, Pos = Workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  323.     if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  324.         local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  325.         if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  326.             return
  327.         end
  328.         local Humanoid = Hit.Parent.Humanoid
  329.         local c = Instance.new("ObjectValue")
  330.         c.Name = "creator"
  331.         c.Value = Player
  332.         game.Debris:AddItem(c, 3)
  333.         c.Parent = Humanoid
  334.         if Hit.Name == "Head" then
  335.             Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  336.         else
  337.             Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  338.         end
  339.     elseif Hit then
  340.         local Hit_Part = Instance.new("Part", Ignore_Model)
  341.         Hit_Part.FormFactor = "Custom"
  342.         Hit_Part.TopSurface = 0
  343.         Hit_Part.BottomSurface = 0
  344.         Hit_Part.Anchored = true
  345.         Hit_Part.CanCollide = false
  346.         Hit_Part.Size = Vector3.new()
  347.         Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  348.         Hit_Part.BrickColor = BrickColor.new("Really black")
  349.         Hit_Part.Material = "Metal"
  350.         Instance.new("BlockMesh", Hit_Part).Scale = Vector3.new(0.5, 0.5, 0.5)
  351.         local brickcolor = BrickColor.new(Hit.BrickColor.Name)     
  352.         Instance.new("Smoke", Hit_Part).Opacity = .2               
  353.         local Meta = Instance.new("Sound")
  354.         Meta.Name = "Crack"
  355.         Meta.SoundId = "rbxassetid://1"
  356.         Meta.Volume = math.random(0.9,1)
  357.         Meta.Pitch = math.random(1,1.2)
  358.         Meta.Parent = Hit_Part
  359.         Meta:play()
  360.         local Cur = Instance.new("SpecialMesh",Hit_Part)
  361.         Cur.MeshType = "Sphere"
  362.         Cur.Scale = Vector3.new(0.5,0.5,0.5)
  363.    
  364.         game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  365.         if not Hit.Anchored then
  366.             local w = Instance.new("Weld", Hit_Part)
  367.             w.Part0 = Hit
  368.             w.Part1 = Hit_Part
  369.             w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  370.             Hit_Part.Anchored = false
  371.         end
  372.         if Hit.Parent:IsA("Hat") and Settings.DropHats then
  373.             Hit.Parent.Parent = workspace
  374.             game.Debris:AddItem(Hit, 3)
  375.         end
  376.     end
  377. end
  378.  
  379.  
  380. local Can_Shoot = true
  381. local Reloading = false
  382.  
  383. local First_Person = false
  384.  
  385. local Mouse_Held
  386.  
  387. Tool.Equipped:connect(function(Mouse)
  388.     Equipped = true
  389.     if Settings.Weld and not Welded then
  390.         wait()
  391.         Tool.Parent = Player.Backpack
  392.     end
  393.     Character = Player.Character
  394.     if Gui then
  395.         return
  396.     end
  397.     Ray_Ignore = {Character, Ignore_Model, Camera}
  398.     Mouse.Icon = Settings.Icons.Idle
  399.     Gui = script.Gui:Clone()
  400.     Gui.Parent = Player.PlayerGui
  401.     Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  402.     Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  403.     CanUpdateGui = true
  404.     Update_Gui()
  405.     Mouse.Button1Down:connect(function()
  406.         if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
  407.             Mouse_Held = true
  408.             while true do
  409.                 Can_Shoot = false
  410.                 Delay(0, function()
  411.                     local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  412.                     if not Aiming then
  413.                         Mouse.Icon = Settings.Icons.Fire1
  414.                     end
  415.                     wait(t)
  416.                     if not Aiming then
  417.                         if Reloading then return end
  418.                         Mouse.Icon = Settings.Icons.Fire2
  419.                     end
  420.                     wait(t)
  421.                     if not Aiming then
  422.                         if Reloading then return end
  423.                         Mouse.Icon = Settings.Icons.Fire3
  424.                     end
  425.                     wait(t)
  426.                     if not Aiming then
  427.                         if Reloading then return end
  428.                         Mouse.Icon = Settings.Icons.Idle
  429.                     end
  430.                 end)
  431.                 for _ = 1, Settings.Bullets do
  432.                     Delay(0, function()
  433.                         Fire(Mouse, RANGE, SPEED, DROP)
  434.                     end)
  435.                 end
  436.                 local bg = Instance.new("BillboardGui", Settings.SmokePart)
  437.                 bg.Adornee = Settings.SmokePart
  438.                 local flashsize = math.random(5, 15)/10
  439.                 bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
  440.                 local flashs = Instance.new("ImageLabel", bg)
  441.                 flashs.BackgroundTransparency = 1
  442.                 flashs.Size = UDim2.new(math.random (0.2, 0.6), 0, math.random (0.2, 0.6), 0)
  443.                 flashs.Image = "rbxassetid://210355445"
  444.                 flashs.Rotation = math.random(0, 360)
  445.                 local g = Instance.new("PointLight", Settings.SmokePart)
  446.                 g.Color = Color3.new(255, 250, 167)
  447.                 g.Brightness = 5
  448.                 g.Range = 5
  449.                 g.Shadows = true
  450.                 local flash = Instance.new("ImageLabel", bg)
  451.                 flash.BackgroundTransparency = 1
  452.                 flash.Size = UDim2.new(math.random (0.7, 1), 0, math.random (0.7, 1), 0)
  453.                 flash.Image = "rbxassetid://180072687"
  454.                 flash.Rotation = math.random(0, 360)
  455.                 game.Debris:AddItem(bg, 0.025)
  456.                 local flash1 = Instance.new("ImageLabel", bg)
  457.                 flash1.BackgroundTransparency = 1
  458.                 flash1.Size = UDim2.new(math.random (0.5, 1), 0, math.random (0.5, 1), 0)
  459.                 flash1.Image = "rbxassetid://210355513"
  460.                 flash1.Rotation = math.random(0, 360)
  461.                 game.Debris:AddItem(bg, 0.025)
  462.                 delay(0, function()
  463.                     local r  = math.abs(Settings.Recoil)
  464.                     local ran = math.random(-1, 1)
  465.                     Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r,  r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  466.                     local c = -r/20
  467.                     local cx = -(r*ran)/20
  468.                     for i = 1, math.random(15, 25) do
  469.                         if EquipId == curId then
  470.                             Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c,  cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  471.                             g:remove()
  472.                             wait()
  473.                            
  474.                         else
  475.                             break
  476.                         end
  477.                     end
  478.                 end)
  479.                 if Tool.Handle:FindFirstChild("Shoot") then
  480.                     Tool.Handle.Shoot:Play()
  481.                 end
  482.                 Ammo.Value = Ammo.Value - 1
  483.                 --[[Tool.A1.Transparency = 1
  484.                 Tool.A2.Transparency = 1
  485.                 Tool.B1.Transparency = 0
  486.                 Tool.B2.Transparency = 0]]
  487.                            
  488.                 wait(Settings.FireRate)
  489.                 --[[Tool.A1.Transparency = 0
  490.                 Tool.A2.Transparency = 0
  491.                 Tool.B1.Transparency = 1
  492.                 Tool.B2.Transparency = 1]]
  493.                
  494.                 if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  495.                     break
  496.                 end
  497.             end
  498.             Can_Shoot = true
  499.         elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  500.             Tool.Handle.Click:Play()
  501.         end
  502.     end)
  503.     Mouse.Button1Up:connect(function()
  504.         Mouse_Held = false
  505.     end)
  506.     Mouse.KeyDown:connect(function(Key)
  507.         if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  508.             if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  509.                 return
  510.             end
  511.             Can_Shoot = false
  512.             Reloading = true
  513.             local TextLabel = Gui.Frame.AmmoDisplay
  514.             Delay(0, function()
  515.                 CanUpdateGui = false
  516.                 TextLabel.Text = "0"
  517.                 wait(Settings.ReloadTime/3)
  518.                 if TextLabel then
  519.                     TextLabel.Text = "000"
  520.                 end
  521.                 wait(Settings.ReloadTime/3)
  522.                 if TextLabel then
  523.                     TextLabel.Text = "000"
  524.                 end
  525.             end)
  526.             Mouse.Icon = Settings.Icons.Reload
  527. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  528. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  529. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  530. wait(.02)
  531. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  532. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  533. wait(.02)
  534. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  535. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  536. wait(0.02)
  537.  
  538. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  539. Tool.Handle.MagOut:play()
  540. --Tool.Magazine.Transparency = 1
  541. wait(0.03)
  542. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  543. wait(0.03)
  544. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  545. wait(0.03)
  546. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  547. wait(0.03)
  548. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  549. wait(0.03)
  550. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  551. wait(0.03)
  552. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  553. wait(0.03)
  554. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  555. wait(0.03)
  556. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  557. wait(0.03)
  558. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  559. wait(0.03)
  560. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  561. wait(0.5)
  562.  
  563. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  564. Tool.Handle.MagIn:play()
  565. --Tool.Magazine.Transparency = 0
  566. wait(0.03)
  567. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  568. wait(0.03)
  569. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  570. wait(0.03)
  571. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  572. wait(0.03)
  573. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  574. wait(0.03)
  575. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  576. wait(0.03)
  577. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  578. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  579. wait(0.03)
  580. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  581. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  582. wait(0.03)
  583. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  584. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  585. wait(0.03)
  586.  
  587. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.4) * CFrame.Angles(math.rad(-90), 0, -0.05)
  588. wait(0.02)
  589. Right_Weld.C1 = CFrame.new(-0.76, -0.2, 0.3) * CFrame.Angles(math.rad(-90), 0, -0.1)
  590. wait(0.02)
  591. Right_Weld.C1 = CFrame.new(-0.77, -0.2, 0.2) * CFrame.Angles(math.rad(-90), 0, -0.15)
  592. wait(0.02)
  593. Right_Weld.C1 = CFrame.new(-0.78, -0.2, 0.1) * CFrame.Angles(math.rad(-90), 0, -0.20)
  594. wait(0.02)
  595. Right_Weld.C1 = CFrame.new(-0.79, -0.2, 0) * CFrame.Angles(math.rad(-90), 0, -0.25)
  596. wait(0.02)
  597. Right_Weld.C1 = CFrame.new(-0.8, -0.2, -0.1) * CFrame.Angles(math.rad(-90), 0, -0.30)
  598. wait(0.02)
  599. Right_Weld.C1 = CFrame.new(-0.81, -0.2, -0.15) * CFrame.Angles(math.rad(-90), 0, -0.35)
  600. wait(0.02)
  601. Right_Weld.C1 = CFrame.new(-0.82, -0.2, -0.20) * CFrame.Angles(math.rad(-90), 0, -0.40)
  602. wait(0.02)
  603. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(-05), 0)
  604. Right_Weld.C1 = CFrame.new(-0.83, -0.2, -0.25) * CFrame.Angles(math.rad(-90), 0, -0.45)
  605. wait(0.02)
  606. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(-10), 0)
  607. Right_Weld.C1 = CFrame.new(-0.84, -0.2, -0.3) * CFrame.Angles(math.rad(-90), 0, -0.50)
  608. wait(0.02)
  609. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(-15), 0)
  610. Right_Weld.C1 = CFrame.new(-0.85, -0.2, -0.35) * CFrame.Angles(math.rad(-90), 0, -0.55)
  611. wait(0.02)
  612. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(-20), 0)
  613. Right_Weld.C1 = CFrame.new(-0.86, -0.2, -0.4) * CFrame.Angles(math.rad(-90), 0, -0.60)
  614. wait(0.02)
  615.  
  616. Right_Weld.C1 = CFrame.new(-0.87, -0.2, -0.45) * CFrame.Angles(math.rad(-90), 0, -0.65)
  617. Tool.Handle.Bolt:play()
  618. wait(0.02)
  619. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(-20), 0)
  620. Right_Weld.C1 = CFrame.new(-0.88, -0.2, -0.5) * CFrame.Angles(math.rad(-90), 0, -0.70)
  621. wait(0.02)
  622. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.45) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(-20), 0)
  623. Right_Weld.C1 = CFrame.new(-0.89, -0.2, -0.55) * CFrame.Angles(math.rad(-90), 0, -0.75)
  624. wait(0.02)
  625. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.45) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(-20), 0)
  626. Right_Weld.C1 = CFrame.new(-0.9, -0.2, -0.6) * CFrame.Angles(math.rad(-90), 0, -0.80)
  627. wait(0.02)
  628. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.45) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(-20), 0)
  629. Right_Weld.C1 = CFrame.new(-0.91, -0.2, -0.65) * CFrame.Angles(math.rad(-90), 0, -0.85)
  630. wait(0.02)
  631. Left_Weld.C1 = CFrame.new(1.2, 0, 0.45) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(-20), 0)
  632. Right_Weld.C1 = CFrame.new(-0.92, -0.2, -0.7) * CFrame.Angles(math.rad(-90), 0, -0.90)
  633. wait(0.02)
  634. Left_Weld.C1 = CFrame.new(1.2, -0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(80), math.rad(-20), 0)
  635. --[[Tool.A1.Transparency = 1
  636. Tool.A2.Transparency = 1
  637.  
  638. Tool.B1.Transparency = 0
  639. Tool.B2.Transparency = 0]]
  640.  
  641. wait(0.02)
  642. Left_Weld.C1 = CFrame.new(1.2, 0.0, 0.45) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(-20), 0)
  643. wait(0.02)
  644. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.45) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(-20), 0)
  645. wait(0.02)
  646. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.45) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(-20), 0)
  647. wait(0.02)
  648. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.45) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(-20), 0)
  649. wait(0.02)
  650. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(-20), 0)
  651. --[[Tool.A1.Transparency = 0
  652. Tool.A2.Transparency = 0
  653.  
  654. Tool.B1.Transparency = 1
  655. Tool.B2.Transparency = 1]]
  656.  
  657. wait(0.02)
  658.  
  659. Right_Weld.C1 = CFrame.new(-0.86, -0.2, -0.4) * CFrame.Angles(math.rad(-90), 0, -0.60)
  660. wait(0.02)
  661. Right_Weld.C1 = CFrame.new(-0.85, -0.2, -0.35) * CFrame.Angles(math.rad(-90), 0, -0.55)
  662. wait(0.02)
  663. Right_Weld.C1 = CFrame.new(-0.84, -0.2, -0.3) * CFrame.Angles(math.rad(-90), 0, -0.50)
  664. wait(0.02)
  665. Right_Weld.C1 = CFrame.new(-0.83, -0.2, -0.25) * CFrame.Angles(math.rad(-90), 0, -0.45)
  666. wait(0.02)
  667. Right_Weld.C1 = CFrame.new(-0.82, -0.2, -0.20) * CFrame.Angles(math.rad(-90), 0, -0.40)
  668. wait(0.02)
  669. Right_Weld.C1 = CFrame.new(-0.81, -0.2, -0.15) * CFrame.Angles(math.rad(-90), 0, -0.35)
  670. wait(0.02)
  671. Right_Weld.C1 = CFrame.new(-0.8, -0.2, -0.1) * CFrame.Angles(math.rad(-90), 0, -0.30)
  672. wait(0.02)
  673. Right_Weld.C1 = CFrame.new(-0.79, -0.2, 0) * CFrame.Angles(math.rad(-90), 0, -0.25)
  674. wait(0.02)
  675. Right_Weld.C1 = CFrame.new(-0.78, -0.2, 0.1) * CFrame.Angles(math.rad(-90), 0, -0.20)
  676. wait(0.02)
  677. Right_Weld.C1 = CFrame.new(-0.77, -0.2, 0.2) * CFrame.Angles(math.rad(-90), 0, -0.15)
  678. wait(0.02)
  679. Right_Weld.C1 = CFrame.new(-0.76, -0.2, 0.3) * CFrame.Angles(math.rad(-90), 0, -0.1)
  680. wait(0.02)
  681. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.4) * CFrame.Angles(math.rad(-90), 0, -0.05)
  682. wait(0.02)
  683. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.4) * CFrame.Angles(math.rad(-90), 0, 0)
  684. Left_Weld.C1 = CFrame.new(0.8, 1.1, 0.02) * CFrame.Angles(math.rad(-100), math.rad(30), math.rad(0), 0)
  685.  
  686.             Mouse.Icon = Settings.Icons.Idle
  687.             CanUpdateGui = true
  688.             local m = Settings.Ammo
  689.             if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  690.                 m = m + 1
  691.             end
  692.             if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  693.                 Ammo.Value = Ammo.Value + StoredAmmo.Value
  694.                 StoredAmmo.Value = 0
  695.             else
  696.                 StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  697.                 Ammo.Value = m
  698.             end
  699.             Can_Shoot = true
  700.             Reloading = false
  701.         elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  702.             Sprinting = true
  703.             Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  704.             Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  705.         end
  706.     end)
  707.     Mouse.KeyUp:connect(function(Key)
  708.         if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  709.             Sprinting = false
  710.             Character.Humanoid.WalkSpeed = 16
  711.             Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  712.             Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  713.         end
  714.     end)
  715.     Mouse.Button2Down:connect(function()
  716.         if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  717.             Aiming = true
  718.             Mouse.Icon = Settings.Icons.Aim
  719.                 if Settings.AimAnim.Enabled then
  720.                 Right_Weld.C1 = CFrame.new()
  721.                 Right_Weld.C0 = CFrame.new()
  722.                 Delay(0, function()
  723.                     Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  724.                 end)
  725.                 Delay(0, function()
  726.                     Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  727.                 end)
  728.                 Delay(0, function()
  729.                     if Settings.ChangeFOV[1] then
  730.                         Camera.FieldOfView = 70
  731.                         local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  732.                         for i = 1, T_F do
  733.                             local FOV = 70 - Cam_Dif/T_F * i
  734.                             Camera.FieldOfView = FOV
  735.                             wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  736.                             if not Aiming then
  737.                                 return
  738.                             end
  739.                         end
  740.                         Camera.FieldOfView = Settings.ChangeFOV[2]
  741.                     end
  742.                 end)
  743.             else
  744.                 Right_Weld.C1 = CFrame.new()
  745.                 Right_Weld.C0 = CFrame.new()
  746.                 Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  747.                 Left_Weld.C1 = Settings.LeftAimPos
  748.                 if Settings.ChangeFOV[1] then
  749.                     Camera.FieldOfView = Settings.ChangeFOV[2]
  750.                 end
  751.             end
  752.             Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  753.             Settings.Spread = Settings.Spread - Settings.SpreadReduction
  754.         end
  755.     end)
  756.     Mouse.Button2Up:connect(function()
  757.         if Aiming then
  758.             Mouse.Icon = Settings.Icons.Idle
  759.             Tool.GripPos = Orig_Grip
  760.             if Settings.AimAnim.Enabled then
  761.                 Delay(0, function()
  762.                     Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  763.                 end)
  764.                 Delay(0, function()
  765.                     Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  766.                 end)
  767.             else
  768.                 Right_Weld.C1 = Settings.RightPos
  769.                 Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  770.                 Left_Weld.C1 = Settings.LeftPos
  771.             end
  772.             if Settings.ChangeFOV[1] then
  773.                 Camera.FieldOfView = 70
  774.             end
  775.             Settings.Spread = Settings.Spread + Settings.SpreadReduction
  776.             Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  777.             Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  778.             wait(0.25)
  779.             Aiming = false
  780.  
  781.         end
  782.     end)
  783.     wait()
  784.     Camera.Changed:connect(function()
  785.         if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  786.             Mouse.TargetFilter = workspace
  787.             Character.Torso.Neck.C1 = CFrame.new()
  788.             Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  789.         end
  790.     end)
  791.     Mouse.Idle:connect(function()
  792.         if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  793.             Mouse.TargetFilter = workspace
  794.             Character.Torso.Neck.C1 = CFrame.new()
  795.             Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  796.         end
  797.     end)
  798.     while wait() and Equipped do
  799.         if Sprinting then
  800.             Can_Shoot = false
  801.             Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  802.             Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  803.         elseif not Aiming and not Sprinting then
  804.             Can_Shoot = true
  805.             Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  806.         end
  807.         if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  808.             Mouse.TargetFilter = nil
  809.             Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  810.             Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  811.         end
  812.     end
  813. end)
  814.  
  815. local Arms_Made
  816. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  817.  
  818. Tool.Equipped:connect(function(Mouse)
  819.     if Character and not Arms_Made then
  820.         Arms_Made = true
  821.         local Torso = Character.Torso
  822.         Torso["Right Shoulder"].Part1 = nil
  823.         Left_Weld = Instance.new("Weld", Torso)
  824.         Left_Weld.Name = "Left_Weld"
  825.         Left_Weld.Part0 = Character.Head
  826.         Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  827.         if not Settings.OneHanded then
  828.             Torso["Left Shoulder"].Part1 = nil
  829.             Left_Weld.Part1 = Character["Left Arm"]
  830.         end
  831.         Right_Weld = Instance.new("Weld", Torso)
  832.         Right_Weld.Name = "Right_Weld"
  833.         Right_Weld.Part0 = Character.Head
  834.         Right_Weld.Part1 = Character["Right Arm"]
  835.         Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  836.         Left_Weld.C1 = Settings.LeftPos
  837.         Right_Weld.C1 = Settings.RightPos
  838.     end
  839.     if Settings.FakeArms and not Fake_Arm_Right then
  840.         Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  841.         Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  842.         Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  843.         local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  844.         for i = 1, 2 do
  845.             local w = Instance.new("Weld", fakeArms[i])
  846.             w.Part0 = Character[fakeArms[i].Name]
  847.             w.Part1 = fakeArms[i]
  848.             fakeArms[i].Transparency = Settings.FakeArmTransparency
  849.         end
  850.         Fake_Arm_Model = Instance.new("Model", Camera)
  851.         Fake_Arm_Right.Parent = Fake_Arm_Model
  852.         if not Settings.OneHanded then
  853.             Fake_Arm_Left.Parent = Fake_Arm_Model
  854.         end
  855.         Fake_Arm_Model.Name = "FakeArms"
  856.         if Settings.CharacterMeshes then
  857.             for i, v in pairs(Character:GetChildren()) do
  858.                 if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  859.                     v:Clone().Parent = Fake_Arm_Model
  860.                 end
  861.             end
  862.         end
  863.         if Character:FindFirstChild("Shirt") then
  864.             Instance.new("Humanoid", Fake_Arm_Model)
  865.             Character.Shirt:Clone().Parent = Fake_Arm_Model
  866.         else
  867.             local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  868.             Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  869.             local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  870.             Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  871.         end
  872.     end
  873. end)
  874.  
  875. Tool.Unequipped:connect(function()
  876.     Equipped = false
  877.     Tool.GripPos = Orig_Grip
  878.     Aiming = false
  879.     Settings.Spread = Orig_Spread
  880.     if Settings.ChangeFOV[1] then
  881.         Camera.FieldOfView = 70
  882.     end
  883.     if Gui then
  884.         Gui:Destroy()
  885.         Gui = nil
  886.     end
  887.     for i, v in pairs(Tool.Handle:GetChildren()) do
  888.         if v:IsA("Sound") then
  889.             v:Stop()
  890.         end
  891.     end
  892.     if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  893.         Fake_Arm_Model:Destroy()
  894.         Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  895.     end
  896.     if Character and Left_Weld and Right_Weld then
  897.         Arms_Made = false
  898.         local Torso = Character.Torso
  899.         Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  900.         Left_Weld:Destroy()
  901.         Right_Weld:Destroy()
  902.     end
  903.     Sprinting = false
  904.     Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  905.     Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  906.     Character.Humanoid.WalkSpeed = 16
  907. end)
  908. end,o12)
  909. end))
  910. o13.Name = "StoredAmmo"
  911. o13.Parent = o12
  912. o13.Value = math.huge
  913. o14.Name = "Ammo"
  914. o14.Parent = o12
  915. o14.Value = 30
  916. o15.Parent = o12
  917. o15.Size = 0.25
  918. o15.Color = Color3.new(0.807843, 0.807843, 0.807843)
  919. o15.Enabled = false
  920. o15.Opacity = 0.10000000149012
  921. o15.RiseVelocity = 10
  922. o16.Name = "Smoke1"
  923. o16.Parent = o12
  924. o16.Size = 0.25
  925. o16.Color = Color3.new(0.807843, 0.807843, 0.807843)
  926. o16.Enabled = false
  927. o16.Opacity = 0.10000000149012
  928. o16.RiseVelocity = 10
  929. o17.Name = "Smoke2"
  930. o17.Parent = o12
  931. o17.Size = 0.25
  932. o17.Color = Color3.new(0.807843, 0.807843, 0.807843)
  933. o17.Enabled = false
  934. o17.Opacity = 0.10000000149012
  935. o17.RiseVelocity = 10
  936. o18.Name = "MaxAmmo"
  937. o18.Parent = o12
  938. o18.Value = 30
  939. o19.Name = "Gui"
  940. o19.Parent = o12
  941. o20.Name = "Box1"
  942. o20.Parent = o19
  943. o20.Position = UDim2.new(1,-5,1,-120)
  944. o20.Rotation = 5
  945. o20.Size = UDim2.new(-0.125,0,-0.03999999910593,0)
  946. o20.Position = UDim2.new(1,-5,1,-120)
  947. o20.BackgroundColor3 = Color3.new(0.0196078, 0.0196078, 0.0196078)
  948. o20.BackgroundTransparency = 0.30000001192093
  949. o20.BorderColor3 = Color3.new(0, 0, 0)
  950. o20.BorderSizePixel = 0
  951. o20.SizeConstraint = Enum.SizeConstraint.RelativeXX
  952. o21.Name = "GunName"
  953. o21.Parent = o20
  954. o21.Position = UDim2.new(0.92500001192093,0,0,0)
  955. o21.Size = UDim2.new(-0.80000001192093,0,0.5,0)
  956. o21.Text = "MP5"
  957. o21.Position = UDim2.new(0.92500001192093,0,0,0)
  958. o21.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  959. o21.BackgroundTransparency = 1
  960. o21.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  961. o21.ZIndex = 2
  962. o21.FontSize = Enum.FontSize.Size14
  963. o21.TextColor3 = Color3.new(1, 1, 1)
  964. o21.TextScaled = true
  965. o21.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  966. o21.TextTransparency = 0.40000000596046
  967. o21.TextWrapped = true
  968. o21.TextXAlignment = Enum.TextXAlignment.Right
  969. o22.Name = "GunTip"
  970. o22.Parent = o20
  971. o22.Position = UDim2.new(0.92500001192093,0,0.44999998807907,0)
  972. o22.Size = UDim2.new(-0.80000001192093,0,0.5,0)
  973. o22.Text = "9x19mm"
  974. o22.Position = UDim2.new(0.92500001192093,0,0.44999998807907,0)
  975. o22.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  976. o22.BackgroundTransparency = 1
  977. o22.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  978. o22.ZIndex = 2
  979. o22.FontSize = Enum.FontSize.Size14
  980. o22.TextColor3 = Color3.new(1, 1, 1)
  981. o22.TextScaled = true
  982. o22.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  983. o22.TextTransparency = 0.40000000596046
  984. o22.TextWrapped = true
  985. o22.TextXAlignment = Enum.TextXAlignment.Right
  986. o23.Parent = o19
  987. o23.Position = UDim2.new(1,-5,1,-60)
  988. o23.Rotation = 5
  989. o23.Size = UDim2.new(-0.125,0,-0.03999999910593,0)
  990. o23.Position = UDim2.new(1,-5,1,-60)
  991. o23.BackgroundColor3 = Color3.new(0.0196078, 0.0196078, 0.0196078)
  992. o23.BackgroundTransparency = 0.30000001192093
  993. o23.BorderColor3 = Color3.new(0, 0, 0)
  994. o23.BorderSizePixel = 0
  995. o23.SizeConstraint = Enum.SizeConstraint.RelativeXX
  996. o24.Name = "AmmoDisplay"
  997. o24.Parent = o23
  998. o24.Position = UDim2.new(0.90399998426437,0,0.10000000149012,0)
  999. o24.Size = UDim2.new(-0.80000001192093,0,0.5,0)
  1000. o24.Text = ""
  1001. o24.Position = UDim2.new(0.90399998426437,0,0.10000000149012,0)
  1002. o24.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1003. o24.BackgroundTransparency = 1
  1004. o24.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1005. o24.ZIndex = 2
  1006. o24.FontSize = Enum.FontSize.Size14
  1007. o24.TextColor3 = Color3.new(1, 1, 1)
  1008. o24.TextScaled = true
  1009. o24.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1010. o24.TextTransparency = 0.40000000596046
  1011. o24.TextWrapped = true
  1012. o25.Name = "Ammobar"
  1013. o25.Parent = o23
  1014. o25.Position = UDim2.new(0.050000000745058,0,0.8500000834465,0)
  1015. o25.Size = UDim2.new(0.89999997615814,0,-0.15000003576279,0)
  1016. o25.Position = UDim2.new(0.050000000745058,0,0.8500000834465,0)
  1017. o25.BackgroundColor3 = Color3.new(0.109804, 0.109804, 0.109804)
  1018. o25.BackgroundTransparency = 0.5
  1019. o25.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  1020. o26.Name = "Percentage"
  1021. o26.Parent = o25
  1022. o26.Position = UDim2.new(0,1,0,1)
  1023. o26.Size = UDim2.new(1,-2,1,-2)
  1024. o26.Position = UDim2.new(0,1,0,1)
  1025. o26.BackgroundColor3 = Color3.new(1, 1, 1)
  1026. o26.BackgroundTransparency = 0.5
  1027. o26.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1028. o26.BorderSizePixel = 0
  1029. o27.Name = "AimPart"
  1030. o27.Parent = o1
  1031. o27.Material = Enum.Material.SmoothPlastic
  1032. o27.BrickColor = BrickColor.new("Dark stone grey")
  1033. o27.Transparency = 1
  1034. o27.Position = Vector3.new(10.2711039, -7.83736897, 11.0852327)
  1035. o27.Rotation = Vector3.new(0.289999992, -4.65999985, 0.0199999996)
  1036. o27.CanCollide = false
  1037. o27.FormFactor = Enum.FormFactor.Custom
  1038. o27.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1039. o27.CFrame = CFrame.new(10.2711039, -7.83736897, 11.0852327, 0.996697843, -0.000370679394, -0.0811730102, -3.23174536e-05, 0.999987721, -0.00496333977, 0.0811738521, 0.00494957436, 0.996685803)
  1040. o27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1041. o27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1042. o27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1043. o27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1044. o27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1045. o27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1046. o27.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1047. o27.Position = Vector3.new(10.2711039, -7.83736897, 11.0852327)
  1048. o28.Parent = o27
  1049. o28.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  1050. o29.Name = "SmokePart"
  1051. o29.Parent = o1
  1052. o29.Material = Enum.Material.SmoothPlastic
  1053. o29.BrickColor = BrickColor.new("Dark stone grey")
  1054. o29.Transparency = 1
  1055. o29.Position = Vector3.new(10.4959764, -8.10246754, 8.44621563)
  1056. o29.Rotation = Vector3.new(0.289999992, -4.65999985, 0.0199999996)
  1057. o29.CanCollide = false
  1058. o29.FormFactor = Enum.FormFactor.Custom
  1059. o29.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1060. o29.CFrame = CFrame.new(10.4959764, -8.10246754, 8.44621563, 0.996697843, -0.000370679394, -0.0811730102, -3.23174536e-05, 0.999987721, -0.00496333977, 0.0811738521, 0.00494957436, 0.996685803)
  1061. o29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1062. o29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1063. o29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1064. o29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1065. o29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1066. o29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1067. o29.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1068. o29.Position = Vector3.new(10.4959764, -8.10246754, 8.44621563)
  1069. o30.Parent = o29
  1070. o30.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  1071. mas.Parent = workspace
  1072. mas:MakeJoints()
  1073. local mas1 = mas:GetChildren()
  1074. for i=1,#mas1 do
  1075.     mas1[i].Parent = workspace
  1076.     ypcall(function() mas1[i]:MakeJoints() end)
  1077. end
  1078. mas:Destroy()
  1079. for i=1,#cors do
  1080. coroutine.resume(cors[i])
  1081. end
Add Comment
Please, Sign In to add comment