Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat
- wait()
- until game.Players.LocalPlayer.Character
- --// Variables
- local L_1_ = game.Players.LocalPlayer
- local L_2_ = L_1_.Character
- local L_3_ = workspace.CurrentCamera
- local L_4_ = L_1_:GetMouse()
- local L_5_
- local L_6_
- local L_7_
- --// Setup
- local L_8_ = game.ReplicatedStorage:WaitForChild('[WB] REngine')
- local L_9_ = L_8_:WaitForChild('Events')
- local L_10_ = L_8_:WaitForChild('GunModels')
- local L_11_ = L_10_:WaitForChild('Client')
- local L_12_ = L_10_:WaitForChild('Server')
- local L_13_ = L_8_:WaitForChild('Modules')
- local L_14_ = L_8_:WaitForChild('Global')
- local L_15_ = L_8_:WaitForChild('Mods')
- local L_16_ = L_15_:WaitForChild('ClientSide')
- local L_17_ = L_15_:WaitForChild('ServerSide')
- local L_18_ = L_15_:WaitForChild('ModNetworking')
- local L_19_
- local L_20_
- local L_21_
- local L_22_
- local L_23_
- local L_24_
- IgnoreList = {
- L_2_,
- L_3_
- }
- local L_25_ = L_8_:WaitForChild('FX')
- local L_26_ = L_8_:WaitForChild('HUD')
- local L_27_ = L_1_.PlayerGui:FindFirstChild('ModStorage') or Instance.new('Folder')
- L_27_.Parent = L_1_.PlayerGui
- L_27_.Name = 'ModStorage'
- local L_28_
- local L_29_
- local L_30_
- local L_31_
- local L_32_
- local L_33_
- local L_34_
- local L_35_
- local L_36_
- local L_37_
- local L_38_
- local L_39_
- local L_40_
- local L_41_
- local L_42_
- local L_43_
- local L_44_
- local L_45_
- local L_46_
- local L_47_
- local L_48_
- local L_49_ = L_1_.PlayerGui:FindFirstChild('KillfeedUI') or L_26_:WaitForChild('KillfeedUI'):clone()
- L_49_.Parent = L_1_.PlayerGui
- local L_50_ = L_49_:WaitForChild('FeedTemplate'):WaitForChild('Frame')
- local L_51_ = L_49_:WaitForChild('Frame')
- --// Modules
- local L_52_ = require(L_14_:WaitForChild('GlobalConfig'))
- local L_53_ = require(L_13_:WaitForChild('Utilities'))
- local L_54_ = require(L_13_:WaitForChild('Spring'))
- local L_55_ = require(L_13_:WaitForChild('FXConfig'))
- local L_56_ = require(L_13_:WaitForChild('Ragdoll'))
- local L_57_ = require(L_13_:WaitForChild('easing'))
- local L_58_ = require(L_13_:WaitForChild('SetupModule'))
- --// Delcarables
- local L_59_ = false
- local L_60_ = true
- local L_61_ = true
- local L_62_ = false
- local L_63_ = false
- local L_64_ = false
- local L_65_ = false
- local L_66_ = false
- local L_67_ = false
- local L_68_ = false
- local L_69_ = false
- local L_70_ = false
- local L_71_ = false
- local L_72_ = false
- local L_73_ = false
- local L_74_ = false
- local L_75_ = false
- local L_76_ = false
- local L_77_ = false
- local L_78_ = false
- local L_79_ = false
- local L_80_ = false
- local L_81_ = 'None'
- local L_82_ = nil
- local L_83_ = 0.5
- local L_84_ = 1
- local L_85_ = L_83_
- local L_86_ = false
- local L_87_ = 0
- local L_88_ = Vector3.new()
- local L_89_ = Vector3.new()
- local L_90_ = Vector3.new()
- local L_91_ = CFrame.new()
- local L_92_ = true
- local L_93_ = true
- local L_94_ = true
- local L_95_ = true
- local L_96_
- local L_97_
- local L_98_
- local L_99_
- local L_100_
- local L_101_ = 999
- local L_102_
- local L_103_
- local L_104_
- local L_105_
- local L_106_
- local L_107_
- local L_108_
- local L_109_
- local L_110_
- local L_111_
- local L_112_
- local L_113_
- local L_114_
- local L_115_
- local L_116_
- local L_117_
- local L_118_
- local L_119_
- local L_120_
- local L_121_
- --// Gun Parts
- local L_122_
- local L_123_
- local L_124_
- local L_125_
- local L_126_
- local L_127_
- local L_128_
- local L_129_
- local L_130_
- --// Char Parts
- local L_131_ = L_2_:WaitForChild('Humanoid')
- local L_132_ = L_2_:WaitForChild('Head')
- local L_133_ = L_2_:WaitForChild('Torso')
- local L_134_ = L_2_:WaitForChild('HumanoidRootPart')
- local L_135_ = L_134_:WaitForChild('RootJoint')
- local L_136_ = L_133_:WaitForChild('Neck')
- local L_137_ = L_133_:WaitForChild('Right Shoulder')
- local L_138_ = L_133_:WaitForChild('Left Shoulder')
- local L_139_ = L_133_:WaitForChild('Right Hip')
- local L_140_ = L_133_:WaitForChild('Left Hip')
- L_3_.CameraType = Enum.CameraType.Custom
- L_3_.CameraSubject = L_131_
- local L_141_ = L_131_.Health
- --// Tables
- local L_142_ = {
- 2211580202;
- 2211580297;
- 2211580374;
- 2211580446;
- }
- local L_143_ = {
- 2211580506;
- 2211580587;
- 2211580721;
- 2211580791;
- }
- local L_144_ = {
- Rotation = Vector2.new();
- Speed = 0;
- Distance = 0;
- }
- local L_145_ = {}
- local L_146_ = {
- L_2_,
- L_3_
- }
- --// Springs
- local L_147_ = {}
- L_147_.recoilSpring = L_54_.new(Vector3.new())
- L_147_.recoilSpring.s = 30
- L_147_.recoilSpring.d = 1
- L_147_.cornerPeek = L_54_.new(0)
- L_147_.cornerPeek.d = 0.8
- L_147_.cornerPeek.s = 16
- L_147_.peekFactor = math.rad(10)
- L_147_.dirPeek = 0
- --// Events
- local L_148_ = L_9_:WaitForChild('HalfStep')
- local L_149_ = L_9_:WaitForChild('EquipEvent')
- local L_150_ = L_9_:WaitForChild('UnequipEvent')
- local L_151_ = L_9_:WaitForChild('AnimateEvent')
- local L_152_ = L_9_:WaitForChild('StoreData')
- local L_153_ = L_9_:WaitForChild('DamageEvent')
- local L_154_ = L_9_:WaitForChild('CreateOwner')
- local L_155_ = L_9_:WaitForChild('HitEvent')
- local L_156_ = L_9_:WaitForChild('ExploEvent')
- local L_157_ = L_9_:WaitForChild('ServerFXEvent')
- local L_158_ = L_9_:WaitForChild('WhizEvent')
- local L_159_ = L_9_:WaitForChild('killEvent')
- local L_160_ = L_9_:WaitForChild('ChatEvent')
- local L_161_ = L_9_:WaitForChild('rappelEvent')
- local L_162_ = L_9_:WaitForChild('ropeEvent')
- --// Services
- local L_163_ = game:GetService('RunService').RenderStepped
- local L_164_ = game:GetService('TweenService')
- local L_165_ = game:GetService('UserInputService')
- local L_166_ = game:GetService("Chat")
- --// Functions
- function Setup(L_194_arg1)
- L_5_ = L_194_arg1
- L_6_ = L_11_:WaitForChild(L_194_arg1.Name):clone()
- L_7_ = require(L_5_:WaitForChild('ConfigMods'):WaitForChild('CConfig'))
- local L_195_, L_196_, L_197_, L_198_, L_199_, L_200_, L_201_ = L_152_:InvokeServer('Retrieve', L_5_.Name, L_7_.Ammo, (L_7_.StoredAmmo * L_7_.MagCount), L_7_.ExplosiveAmmo, L_7_.FireMode, L_7_.MouseSensitivity, 1)
- if L_195_ then
- L_21_ = L_196_
- L_22_ = L_197_
- L_23_ = L_198_
- L_24_ = L_199_
- L_83_ = L_200_
- L_84_ = L_201_
- else
- L_21_ = L_7_.Ammo
- L_22_ = L_7_.StoredAmmo * L_7_.MagCount
- L_23_ = L_7_.ExplosiveAmmo
- L_24_ = L_7_.FireMode
- L_83_ = L_7_.MouseSensitivity
- L_84_ = 1
- end
- L_118_ = L_1_.PlayerGui:FindFirstChild('AimSFX') or Instance.new('Sound')
- L_118_.Name = 'AimSFX'
- L_118_.Parent = L_1_.PlayerGui
- L_112_ = L_7_.camRecoil
- L_113_ = L_7_.CamShake
- L_114_ = L_7_.gunRecoil
- L_115_ = L_7_.Kickback
- L_116_ = L_7_.SideKick
- L_117_ = L_7_.RotationalKick
- if L_24_ == 6 then
- L_63_ = true
- end
- if L_107_ then
- L_107_:Destroy()
- end
- L_107_ = Instance.new('Model')
- L_107_.Name = L_6_.Name
- L_107_.Parent = L_3_
- L_105_ = Instance.new('Part')
- L_105_.Name = 'BasePart'
- L_105_.Parent = L_107_
- L_105_.Anchored = true
- L_105_.CanCollide = false
- L_105_.Transparency = 1
- L_105_.Size = Vector3.new(0.1, 0.1, 0.1)
- L_103_ = Instance.new('Part')
- L_103_.Name = 'AnimBase'
- L_103_.Parent = L_107_
- L_103_.Anchored = true
- L_103_.CanCollide = false
- L_103_.Transparency = 1
- L_103_.Size = Vector3.new(0.1, 0.1, 0.1)
- L_104_ = Instance.new('Motor6D')
- L_104_.Parent = L_103_
- L_104_.Name = 'AnimBaseW'
- L_104_.Part0 = L_103_
- L_104_.Part1 = L_105_
- L_103_.Anchored = false
- L_106_ = Instance.new('Motor6D')
- L_106_.Name = 'Clone'
- L_106_.Parent = L_133_
- L_106_.Part0 = L_134_
- L_106_.Part1 = L_132_
- L_106_.C0 = L_136_.C0
- L_106_.C1 = L_136_.C1
- L_6_.Parent = L_107_
- for L_202_forvar1, L_203_forvar2 in pairs(L_6_:GetChildren()) do
- if L_203_forvar2:IsA('BasePart') and L_203_forvar2.Name ~= 'Grip' then
- if L_203_forvar2.Name ~= "Bolt" and L_203_forvar2.Name ~= 'Lid' then
- L_53_.Weld(L_203_forvar2, L_6_:WaitForChild("Grip"))
- end
- if L_203_forvar2.Name == "Bolt" then
- if L_6_:FindFirstChild('BoltHinge') then
- L_53_.Weld(L_203_forvar2, L_6_:WaitForChild("BoltHinge"))
- else
- L_53_.Weld(L_203_forvar2, L_6_:WaitForChild("Grip"))
- end
- end;
- if L_203_forvar2.Name == "Lid" then
- if L_6_:FindFirstChild('LidHinge') then
- L_53_.Weld(L_203_forvar2, L_6_:WaitForChild("LidHinge"))
- else
- L_53_.Weld(L_203_forvar2, L_6_:WaitForChild("Grip"))
- end
- end
- end
- end;
- L_109_, L_111_, L_108_, L_110_, L_122_, L_123_ = L_58_(L_52_, L_107_, L_53_, L_2_, L_108_, L_109_, L_110_, L_111_, L_103_, L_104_, L_7_, L_6_)
- for L_204_forvar1, L_205_forvar2 in pairs(L_6_:GetChildren()) do
- if L_205_forvar2:IsA('BasePart') and L_205_forvar2.Name ~= 'Grip' then
- L_205_forvar2.Anchored = false
- end
- end;
- L_1_.CameraMaxZoomDistance = 0.5
- if L_6_:FindFirstChild('FirePart2') then
- L_127_ = L_6_.FirePart2
- end
- L_48_ = L_26_:WaitForChild('MainGui'):clone()
- L_48_.Parent = L_1_.PlayerGui
- L_28_ = L_48_:WaitForChild('Others')
- --KillText = otherFrame:WaitForChild('Kill')
- L_32_ = L_48_:WaitForChild('GameGui'):WaitForChild('AmmoFrame')
- L_33_ = L_32_:WaitForChild('Ammo')
- L_34_ = L_32_:WaitForChild('AmmoBackground')
- L_35_ = L_32_:WaitForChild('MagCount')
- L_36_ = L_32_:WaitForChild('MagCountBackground')
- L_37_ = L_32_:WaitForChild('DistDisp')
- L_38_ = L_32_:WaitForChild('Title')
- L_39_ = L_32_:WaitForChild('Mode1')
- L_40_ = L_32_:WaitForChild('Mode2')
- L_41_ = L_32_:WaitForChild('Mode3')
- L_42_ = L_32_:WaitForChild('Mode4')
- L_43_ = L_32_:WaitForChild('Mode5')
- L_44_ = L_32_:WaitForChild('Stances')
- L_45_ = L_48_:WaitForChild('Shading')
- L_38_.Text = L_5_.Name
- UpdateAmmo()
- L_149_:FireServer(L_5_)
- L_59_ = true
- end
- function Unset()
- L_66_ = false
- L_67_ = false
- L_70_ = false
- L_73_ = false
- L_74_ = false
- L_75_ = false
- L_165_.MouseDeltaSensitivity = L_85_
- for L_206_forvar1, L_207_forvar2 in pairs(L_27_:GetChildren()) do
- if L_207_forvar2 and L_207_forvar2:IsA('LocalScript') then
- L_207_forvar2:Destroy()
- end
- end
- if L_118_ then
- L_118_:Destroy()
- end
- L_165_.MouseBehavior = Enum.MouseBehavior.Default
- L_165_.MouseIconEnabled = true
- L_3_.CameraType = Enum.CameraType.Custom
- if not L_52_.UniversalStances or not L_68_ then
- L_131_.WalkSpeed = 16
- L_87_ = 0
- changeStance()
- end
- if L_3_.FieldOfView ~= 70 and L_7_ then
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = 70
- }):Play()
- end
- if L_48_ then
- L_48_:Destroy()
- end
- IgnoreList = {
- L_2_,
- L_19_,
- L_3_
- }
- L_1_.CameraMaxZoomDistance = game.StarterPlayer.CameraMaxZoomDistance
- if L_107_ then
- L_107_:Destroy()
- end
- if L_106_ then
- L_106_:Destroy()
- end
- L_1_.CameraMode = Enum.CameraMode.Classic
- if L_5_ then
- L_150_:FireServer(L_5_)
- end
- L_4_.TargetFilter = nil
- L_59_ = false
- if L_131_ and L_131_.Health > 0 then
- L_147_.dirPeek = 0
- Lean()
- end
- end
- function HalfStepFunc(L_208_arg1)
- if L_60_ then
- L_148_:FireServer(L_208_arg1, L_59_)
- end
- L_60_ = not L_60_
- end
- function UpdateRope(L_209_arg1, L_210_arg2)
- if L_61_ then
- L_162_:FireServer(L_209_arg1, L_210_arg2)
- end
- L_61_ = not L_61_
- end
- function changeStance()
- if L_87_ == 0 then -- Stand
- L_68_ = false
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- L_164_:Create(L_136_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_90_ = Vector3.new()
- L_164_:Create(L_131_, TweenInfo.new(0.5), {
- CameraOffset = Vector3.new(0, 0, 0)
- }):Play()
- L_131_.WalkSpeed = 16
- if L_59_ then
- UpdateAmmo()
- end
- L_151_:FireServer('Stance', true, L_5_, L_87_, L_59_)
- elseif L_87_ == 1 and not L_76_ then -- Crouch
- L_68_ = true
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C0 = CFrame.new(0, -1.20000005, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C0 = CFrame.new(1.00000191, -0.93054074, -0.393920898, 0, 0, 1, -0.98480773, 0.173648179, 0, -0.173648179, -0.98480773, 0)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C0 = CFrame.new(-1, 0.165270448, -0.603042603, 0, 0, -1, -0.173648179, 0.98480773, 0, 0.98480773, 0.173648179, 0)
- }):Play()
- L_164_:Create(L_136_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_90_ = Vector3.new(0, -1, 0)
- L_164_:Create(L_131_, TweenInfo.new(0.5), {
- CameraOffset = Vector3.new(0, -1.2, 0)
- }):Play()
- if L_59_ then
- UpdateAmmo()
- end
- L_151_:FireServer('Stance', true, L_5_, L_87_, L_59_)
- elseif L_87_ == 2 and not L_76_ then -- Prone
- if L_59_ and L_7_ then
- L_147_.dirPeek = 0
- Lean()
- end
- L_68_ = true
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C0 = CFrame.new(0, -2.5999999, 0, -1, 0, 0, 0, 1, 1.19248806e-08, 0, 1.19248806e-08, -1)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C0 = CFrame.new(1, -1, 2.98023224e-08, 0.163175702, -0.342020363, 0.925416529, 0.0593911409, 0.939692557, 0.336824328, -0.984807789, 0, 0.17364797)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C0 = CFrame.new(-1, -1, 2.98023224e-08, 0.163175896, 0.342020363, -0.92541647, -0.0593912117, 0.939692557, 0.336824298, 0.98480773, 0, 0.173648179)
- }):Play()
- L_164_:Create(L_136_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0, -0.785033405, -0.109157309, -0.99999994, 0, 0, 0, 1, -4.37113883e-08, 0, -4.37113883e-08, -1)
- }):Play()
- L_90_ = Vector3.new(0, -2.5, 0)
- L_164_:Create(L_2_:WaitForChild('Humanoid'), TweenInfo.new(0.5), {
- CameraOffset = Vector3.new(0, -3, 0)
- }):Play()
- if L_59_ then
- UpdateAmmo()
- end
- L_151_:FireServer('Stance', true, L_5_, L_87_, L_59_)
- end
- end
- function Lean()
- if not L_76_ then
- if L_87_ ~= 2 then
- if L_147_.dirPeek == 1 then
- L_91_ = CFrame.new(-0.5, 0, 0)
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0.200000003, 0, 0, -0.98480773, 0, 0.173648179, 0.173648179, 0, 0.98480773, 0, 1, 0)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, -0.173648179, -0.98480773, 0, 0.98480773, -0.173648179, 1, 0, 0)
- }):Play()
- elseif L_147_.dirPeek == -1 then
- L_91_ = CFrame.new(0.5, 0, 0)
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.200000003, 0, 0, -0.98480773, 0, -0.173648179, -0.173648179, 0, 0.98480773, 0, 1, 0)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0.173648179, 0.98480773, 0, 0.98480773, -0.173648179, -1, 0, 0)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- elseif L_147_.dirPeek == 0 then
- L_91_ = CFrame.new(0, 0, 0)
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- end
- elseif L_87_ == 2 then
- L_147_.dirPeek = 0
- L_91_ = CFrame.new(0, 0, 0)
- L_164_:Create(L_135_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_164_:Create(L_139_, TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_140_, TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- end
- if L_7_ then
- L_151_:FireServer('Lean', true, L_5_, L_87_, L_59_, L_7_.Firerate, L_147_.dirPeek)
- end
- end
- end
- function CreateShell()
- local L_211_ = L_6_.Shell:clone()
- if L_211_:FindFirstChild('Shell') then
- L_211_.Shell:Destroy()
- end
- L_211_.CFrame = L_6_.Chamber.CFrame
- L_211_.Velocity = L_6_.Chamber.CFrame.lookVector * 30 + Vector3.new(0, 4, 0)
- --shell.RotVelocity = Vector3.new(-10,40,30)
- L_211_.Parent = L_19_
- L_211_.CanCollide = false
- game:GetService("Debris"):addItem(L_211_, 1)
- delay(0.5, function()
- if L_25_:FindFirstChild('ShellCasing') then
- local L_212_ = L_25_.ShellCasing:clone()
- L_212_.Parent = L_1_.PlayerGui
- L_212_:Play()
- game:GetService('Debris'):AddItem(L_212_, L_212_.TimeLength)
- end
- end)
- end
- function TracerCalculation()
- local L_213_
- if (math.random(1, 100) <= L_7_.TracerChance) then
- L_213_ = true
- else
- L_213_ = false
- end
- return L_213_
- end
- function UpdateAmmo()
- L_33_.Text = L_21_
- L_34_.Text = L_33_.Text
- L_35_.Text = '| ' .. math.ceil(L_22_ / L_7_.StoredAmmo)
- L_36_.Text = L_35_.Text
- if L_87_ == 0 then
- L_44_.Image = 'rbxassetid://' .. 1868007495
- L_44_.Position = UDim2.new(1, 2, 0, 0)
- elseif L_87_ == 1 then
- L_44_.Image = 'rbxassetid://' .. 1868007947
- L_44_.Position = UDim2.new(1, 2, 0, 10)
- elseif L_87_ == 2 then
- L_44_.Image = 'rbxassetid://' .. 1868008584
- L_44_.Position = UDim2.new(1, 2, 0, 23)
- end
- if L_24_ == 1 then
- L_39_.BackgroundTransparency = 0
- L_40_.BackgroundTransparency = 0.7
- L_41_.BackgroundTransparency = 0.7
- L_42_.BackgroundTransparency = 0.7
- L_43_.BackgroundTransparency = 0.7
- elseif L_24_ == 2 then
- L_39_.BackgroundTransparency = 0
- L_40_.BackgroundTransparency = 0
- L_41_.BackgroundTransparency = 0
- L_42_.BackgroundTransparency = 0
- L_43_.BackgroundTransparency = 0
- elseif L_24_ == 3 then
- L_39_.BackgroundTransparency = 0
- L_40_.BackgroundTransparency = 0
- L_41_.BackgroundTransparency = 0
- L_42_.BackgroundTransparency = 0.7
- L_43_.BackgroundTransparency = 0.7
- elseif L_24_ == 4 then
- L_39_.BackgroundTransparency = 0
- L_40_.BackgroundTransparency = 0
- L_41_.BackgroundTransparency = 0
- L_42_.BackgroundTransparency = 0
- L_43_.BackgroundTransparency = 0.7
- elseif L_24_ == 5 then
- L_39_.BackgroundTransparency = 0
- L_40_.BackgroundTransparency = 0.7
- L_41_.BackgroundTransparency = 0
- L_42_.BackgroundTransparency = 0.7
- L_43_.BackgroundTransparency = 0.7
- elseif L_24_ == 6 then
- L_39_.BackgroundTransparency = 0
- L_40_.BackgroundTransparency = 0.7
- L_41_.BackgroundTransparency = 0
- L_42_.BackgroundTransparency = 0
- L_43_.BackgroundTransparency = 0.7
- end
- end
- function CheckForHumanoid(L_214_arg1)
- local L_215_ = false
- local L_216_ = nil
- if L_214_arg1 then
- if (L_214_arg1.Parent:FindFirstChild("Humanoid") or L_214_arg1.Parent.Parent:FindFirstChild("Humanoid")) then
- L_215_ = true
- if L_214_arg1.Parent:FindFirstChild('Humanoid') then
- L_216_ = L_214_arg1.Parent.Humanoid
- elseif L_214_arg1.Parent.Parent:FindFirstChild('Humanoid') then
- L_216_ = L_214_arg1.Parent.Parent.Humanoid
- end
- else
- L_215_ = false
- end
- end
- return L_215_, L_216_
- end
- function CreateBullet(L_217_arg1)
- local L_218_ = L_126_.Position
- local L_219_ = L_126_.CFrame.lookVector + (L_126_.CFrame.upVector * L_7_.BulletHopUpMult) --(mouse.Hit.p - Origin).unit
- local L_220_ = CFrame.Angles(math.rad(math.random(-L_217_arg1, L_217_arg1)), math.rad(math.random(-L_217_arg1, L_217_arg1)), math.rad(math.random(-L_217_arg1, L_217_arg1)))
- L_219_ = L_220_ * L_219_
- local L_221_ = CFrame.new(L_218_, L_218_ + L_219_)
- local L_222_ = Instance.new("Part")
- L_222_.Parent = L_19_
- L_222_.Name = 'Bullet'
- game.Debris:AddItem(L_222_, 10)
- L_222_.Shape = Enum.PartType.Ball
- L_222_.Size = Vector3.new(1, 1, 12)
- L_222_.Name = "Bullet"
- L_222_.TopSurface = "Smooth"
- L_222_.BottomSurface = "Smooth"
- L_222_.BrickColor = BrickColor.new("Bright green")
- L_222_.Material = "Neon"
- L_222_.CanCollide = false
- --Bullet.CFrame = FirePart.CFrame + (Grip.CFrame.p - Grip.CFrame.p)
- L_222_.CFrame = L_221_
- L_222_.Transparency = 1
- local L_223_ = L_222_:GetMass()
- local L_224_ = Instance.new('BodyForce', L_222_)
- if not L_63_ then
- L_224_.Force = L_7_.BulletPhysics
- L_222_.Velocity = L_219_ * L_7_.BulletSpeed
- else
- L_224_.Force = L_7_.ExploPhysics
- L_222_.Velocity = L_219_ * L_7_.ExploSpeed
- end
- local L_225_ = Instance.new('Attachment', L_222_)
- L_225_.Position = Vector3.new(0.1, 0, 0)
- local L_226_ = Instance.new('Attachment', L_222_)
- L_226_.Position = Vector3.new(-0.1, 0, 0)
- local L_227_ = TracerCalculation()
- if L_7_.TracerEnabled == true and L_227_ then
- local L_228_ = Instance.new('Trail', L_222_)
- L_228_.Attachment0 = L_225_
- L_228_.Attachment1 = L_226_
- L_228_.Transparency = NumberSequence.new(L_7_.TracerTransparency)
- L_228_.LightEmission = L_7_.TracerLightEmission
- L_228_.TextureLength = L_7_.TracerTextureLength
- L_228_.Lifetime = L_7_.TracerLifetime
- L_228_.FaceCamera = L_7_.TracerFaceCamera
- L_228_.Color = ColorSequence.new(L_7_.TracerColor.Color)
- end
- if L_6_:FindFirstChild('Shell') and not L_63_ then
- CreateShell()
- end
- delay(0.2, function()
- L_222_.Transparency = 0
- end)
- if L_52_.ReplicatedBullets then
- L_158_:FireServer(L_221_, L_7_.TracerEnabled, L_227_, L_7_.BulletPhysics, L_7_.BulletSpeed, L_219_)
- end
- return L_222_
- end
- function CreateExternalBullet(L_229_arg1, L_230_arg2, L_231_arg3, L_232_arg4, L_233_arg5, L_234_arg6)
- local L_235_ = L_229_arg1
- local L_236_ = Instance.new("Part")
- L_236_.Parent = L_19_
- L_236_.Name = 'Bullet'
- game.Debris:AddItem(L_236_, 10)
- L_236_.Shape = Enum.PartType.Ball
- L_236_.Size = Vector3.new(1, 1, 12)
- L_236_.Name = "Bullet"
- L_236_.TopSurface = "Smooth"
- L_236_.BottomSurface = "Smooth"
- L_236_.BrickColor = BrickColor.new("Bright green")
- L_236_.Material = "Neon"
- L_236_.CanCollide = false
- --Bullet.CFrame = FirePart.CFrame + (Grip.CFrame.p - Grip.CFrame.p)
- L_236_.CFrame = L_235_
- game.Debris:AddItem(L_236_, 10)
- L_236_.Transparency = 1
- local L_237_ = L_236_:GetMass()
- local L_238_ = Instance.new('BodyForce', L_236_)
- L_238_.Force = L_232_arg4
- L_236_.Velocity = L_234_arg6 * L_233_arg5
- local L_239_ = Instance.new('Attachment', L_236_)
- L_239_.Position = Vector3.new(0.1, 0, 0)
- local L_240_ = Instance.new('Attachment', L_236_)
- L_240_.Position = Vector3.new(-0.1, 0, 0)
- if L_230_arg2 and L_231_arg3 then
- local L_241_ = Instance.new('Trail', L_236_)
- L_241_.Attachment0 = L_239_
- L_241_.Attachment1 = L_240_
- L_241_.Transparency = NumberSequence.new(0)
- L_241_.LightEmission = 1
- L_241_.TextureLength = 0.1
- L_241_.Lifetime = 0.05
- L_241_.FaceCamera = true
- L_241_.Color = ColorSequence.new(BrickColor.new('White').Color)
- end
- delay(0.2, function()
- L_236_.Transparency = 0
- end)
- return L_236_
- end
- function CastRay(L_242_arg1)
- local L_243_, L_244_, L_245_
- local L_246_ = L_124_.Position;
- local L_247_ = L_242_arg1.Position;
- local L_248_ = 0
- local L_249_ = false
- local L_250_ = L_63_
- while true do
- L_163_:wait()
- L_247_ = L_242_arg1.Position;
- L_248_ = L_248_ + (L_247_ - L_246_).magnitude
- L_243_, L_244_, L_245_ = workspace:FindPartOnRayWithIgnoreList(Ray.new(L_246_, (L_247_ - L_246_)), IgnoreList);
- local L_251_ = Vector3.new(0, 1, 0):Cross(L_245_)
- local L_252_ = math.asin(L_251_.magnitude) -- division by 1 is redundant
- if L_248_ > L_7_.BulletDecay then
- L_242_arg1:Destroy()
- break
- end
- if L_243_ and (L_243_ and L_243_.Transparency >= 1 or L_243_.CanCollide == false) and L_243_.Name ~= 'Right Arm' and L_243_.Name ~= 'Left Arm' and L_243_.Name ~= 'Right Leg' and L_243_.Name ~= 'Left Leg' and L_243_.Name ~= 'Armor' then
- table.insert(IgnoreList, L_243_)
- end
- if L_243_ then
- L_251_ = Vector3.new(0, 1, 0):Cross(L_245_)
- L_252_ = math.asin(L_251_.magnitude) -- division by 1 is redundant
- L_157_:FireServer(L_244_)
- local L_253_ = CheckForHumanoid(L_243_)
- if L_253_ == false then
- L_242_arg1:Destroy()
- L_155_:FireServer(L_244_, L_251_, L_252_, L_245_, "Part", L_243_)
- elseif L_253_ == true then
- L_242_arg1:Destroy()
- L_155_:FireServer(L_244_, L_251_, L_252_, L_245_, "Human", L_243_)
- end
- end
- if L_243_ and L_250_ then
- L_156_:FireServer(L_244_, L_7_.BlastPressue, L_7_.BlastRadius, L_7_.DestroyJointRadius, L_7_.ExplosionType)
- end
- if L_243_ then
- local L_254_, L_255_ = CheckForHumanoid(L_243_)
- if L_254_ and L_255_.Health > 0 then
- L_154_:FireServer(L_255_)
- if L_7_.AntiTK then
- if game.Players:FindFirstChild(L_255_.Parent.Name) and game.Players:FindFirstChild(L_255_.Parent.Name).TeamColor ~= L_1_.TeamColor or L_255_.Parent:FindFirstChild('Vars') and game.Players:FindFirstChild(L_255_.Parent:WaitForChild('Vars'):WaitForChild('BotID').Value) and L_1_.TeamColor ~= L_255_.Parent:WaitForChild('Vars'):WaitForChild('teamColor').Value then
- if L_243_.Name == 'Head' then
- L_153_:FireServer(L_255_, L_7_.HeadDamage, L_6_.Name)
- local L_256_ = L_25_:WaitForChild('BodyHit'):clone()
- L_256_.Parent = L_1_.PlayerGui
- L_256_:Play()
- game:GetService("Debris"):addItem(L_256_, L_256_.TimeLength)
- end
- if L_243_.Name ~= 'Head' and not (L_243_.Parent:IsA('Accessory') or L_243_.Parent:IsA('Hat')) then
- if L_243_.Name ~= 'Torso' and L_243_.Name ~= 'HumanoidRootPart' and L_243_.Name ~= 'Armor' then
- L_153_:FireServer(L_255_, L_7_.LimbDamage, L_6_.Name)
- elseif L_243_.Name == 'Torso' or L_243_.Name == 'HumanoidRootPart' and L_243_.Name ~= 'Armor' then
- L_153_:FireServer(L_255_, L_7_.BaseDamage, L_6_.Name)
- elseif L_243_.Name == 'Armor' then
- L_153_:FireServer(L_255_, L_7_.ArmorDamage, L_6_.Name)
- end
- local L_257_ = L_25_:WaitForChild('BodyHit'):clone()
- L_257_.Parent = L_1_.PlayerGui
- L_257_:Play()
- game:GetService("Debris"):addItem(L_257_, L_257_.TimeLength)
- end
- if (L_243_.Parent:IsA('Accessory') or L_243_.Parent:IsA('Hat')) then
- L_153_:FireServer(L_255_, L_7_.HeadDamage, L_6_.Name)
- local L_258_ = L_25_:WaitForChild('BodyHit'):clone()
- L_258_.Parent = L_1_.PlayerGui
- L_258_:Play()
- game:GetService("Debris"):addItem(L_258_, L_258_.TimeLength)
- end
- end
- else
- if L_243_.Name == 'Head' then
- L_153_:FireServer(L_255_, L_7_.HeadDamage, L_6_.Name)
- local L_259_ = L_25_:WaitForChild('BodyHit'):clone()
- L_259_.Parent = L_1_.PlayerGui
- L_259_:Play()
- game:GetService("Debris"):addItem(L_259_, L_259_.TimeLength)
- end
- if L_243_.Name ~= 'Head' and not (L_243_.Parent:IsA('Accessory') or L_243_.Parent:IsA('Hat')) then
- if L_243_.Name ~= 'Torso' and L_243_.Name ~= 'HumanoidRootPart' and L_243_.Name ~= 'Armor' then
- L_153_:FireServer(L_255_, L_7_.LimbDamage, L_6_.Name)
- elseif L_243_.Name == 'Torso' or L_243_.Name == 'HumanoidRootPart' and L_243_.Name ~= 'Armor' then
- L_153_:FireServer(L_255_, L_7_.BaseDamage, L_6_.Name)
- elseif L_243_.Name == 'Armor' then
- L_153_:FireServer(L_255_, L_7_.ArmorDamage, L_6_.Name)
- end
- local L_260_ = L_25_:WaitForChild('BodyHit'):clone()
- L_260_.Parent = L_1_.PlayerGui
- L_260_:Play()
- game:GetService("Debris"):addItem(L_260_, L_260_.TimeLength)
- end
- if (L_243_.Parent:IsA('Accessory') or L_243_.Parent:IsA('Hat')) then
- L_153_:FireServer(L_255_, L_7_.HeadDamage, L_6_.Name)
- local L_261_ = L_25_:WaitForChild('BodyHit'):clone()
- L_261_.Parent = L_1_.PlayerGui
- L_261_:Play()
- game:GetService("Debris"):addItem(L_261_, L_261_.TimeLength)
- end
- end
- end
- end
- if L_243_ and L_243_.Parent:FindFirstChild("Humanoid") then
- return L_243_, L_244_;
- end
- L_246_ = L_247_;
- end
- end
- function fireSemi()
- if L_59_ then
- L_93_ = false
- L_64_ = true
- local L_262_ = CalculateRecoil()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t + L_262_
- delay(0.025, function()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t - L_262_
- end)
- L_151_:FireServer('Shoot', true, L_5_, nil, nil, L_7_.Firerate / 2)
- L_70_ = true
- L_2_:WaitForChild('S'.. L_6_.Name):WaitForChild('Grip'):WaitForChild('Fire'):Play()
- L_20_ = CreateBullet(L_7_.BulletSpread)
- L_21_ = L_21_ - 1
- UpdateAmmo()
- RecoilFront = true
- local L_263_, L_264_ = spawn(function()
- CastRay(L_20_)
- end)
- if L_7_.CanBolt == true then
- BoltingBackAnim()
- delay(L_7_.Firerate / 2, function()
- if L_7_.CanSlideLock == false then
- BoltingForwardAnim()
- elseif L_7_.CanSlideLock == true then
- if L_21_ > 0 then
- BoltingForwardAnim()
- end
- end
- end)
- end
- delay(L_7_.Firerate / 2, function()
- L_64_ = false
- RecoilFront = false
- end)
- wait(L_7_.Firerate)
- L_70_ = false
- L_93_ = true
- end
- end
- function fireExplo()
- if L_59_ then
- L_93_ = false
- L_64_ = true
- local L_265_ = CalculateRecoil()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t + L_265_
- delay(0.025, function()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t - L_265_
- end)
- L_151_:FireServer('Shoot', true, L_5_, nil, nil, L_7_.Firerate / 2)
- L_70_ = true
- L_2_:WaitForChild('S'.. L_6_.Name):WaitForChild('Grip'):WaitForChild('Fire2'):Play()
- L_20_ = CreateBullet(L_7_.BulletSpread)
- L_23_ = L_23_ - 1
- UpdateAmmo()
- RecoilFront = true
- local L_266_, L_267_ = spawn(function()
- CastRay(L_20_)
- end)
- delay(L_7_.Firerate / 2, function()
- L_64_ = false
- RecoilFront = false
- end)
- L_93_ = false
- L_70_ = false
- end
- end
- function fireShot()
- if L_59_ then
- L_93_ = false
- L_64_ = true
- local L_268_ = CalculateRecoil()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t + L_268_
- delay(0.025, function()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t - L_268_
- end)
- L_151_:FireServer('Shoot', true, L_5_, nil, nil, L_7_.Firerate / 2)
- L_70_ = true
- RecoilFront = true
- L_2_:WaitForChild('S'.. L_6_.Name):WaitForChild('Grip'):WaitForChild('Fire'):Play()
- for L_269_forvar1 = 1, L_7_.ShotNum do
- spawn(function()
- L_20_ = CreateBullet(L_7_.BulletSpread)
- end)
- local L_270_, L_271_ = spawn(function()
- CastRay(L_20_)
- end)
- end
- for L_272_forvar1, L_273_forvar2 in pairs(L_126_:GetChildren()) do
- if L_273_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_273_forvar2.Enabled = true
- end
- end
- delay(1 / 30, function()
- for L_274_forvar1, L_275_forvar2 in pairs(L_126_:GetChildren()) do
- if L_275_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_275_forvar2.Enabled = false
- end
- end
- end)
- if L_7_.CanBolt == true then
- BoltingBackAnim()
- delay(L_7_.Firerate / 2, function()
- if L_7_.CanSlideLock == false then
- BoltingForwardAnim()
- elseif L_7_.CanSlideLock == true then
- if L_21_ > 0 then
- BoltingForwardAnim()
- end
- end
- end)
- end
- delay(L_7_.Firerate / 2, function()
- L_64_ = false
- RecoilFront = false
- end)
- L_21_ = L_21_ - 1
- UpdateAmmo()
- wait(L_7_.Firerate)
- Actioning = true
- BoltBackAnim()
- BoltForwardAnim()
- IdleAnim()
- Actioning = false
- L_70_ = false
- L_93_ = true
- end
- end
- function fireBoltAction()
- if L_59_ then
- L_93_ = false
- L_64_ = true
- local L_276_ = CalculateRecoil()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t + L_276_
- delay(0.025, function()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t - L_276_
- end)
- L_151_:FireServer('Shoot', true, L_5_, nil, nil, L_7_.Firerate / 2)
- L_70_ = true
- --CheckReverb()
- L_2_:WaitForChild('S'.. L_6_.Name):WaitForChild('Grip'):WaitForChild('Fire'):Play()
- L_20_ = CreateBullet(L_7_.BulletSpread)
- L_21_ = L_21_ - 1
- UpdateAmmo()
- RecoilFront = true
- local L_277_, L_278_ = spawn(function()
- CastRay(L_20_)
- end)
- for L_279_forvar1, L_280_forvar2 in pairs(L_126_:GetChildren()) do
- if L_280_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_280_forvar2.Enabled = true
- end
- end
- delay(1 / 30, function()
- for L_281_forvar1, L_282_forvar2 in pairs(L_126_:GetChildren()) do
- if L_282_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_282_forvar2.Enabled = false
- end
- end
- end)
- if L_7_.CanBolt == true then
- BoltingBackAnim()
- delay(L_7_.Firerate / 2, function()
- if L_7_.CanSlideLock == false then
- BoltingForwardAnim()
- elseif L_7_.CanSlideLock == true then
- if L_21_ > 0 then
- BoltingForwardAnim()
- end
- end
- end)
- end
- delay(L_7_.Firerate / 2, function()
- L_64_ = false
- RecoilFront = false
- end)
- wait(L_7_.Firerate)
- Actioning = true
- BoltBackAnim()
- BoltForwardAnim()
- IdleAnim()
- Actioning = false
- L_70_ = false
- L_93_ = true
- end
- end
- function fireAuto()
- while not L_70_ and L_21_ > 0 and L_62_ and L_93_ and L_59_ and not L_63_ do
- L_93_ = false
- L_64_ = true
- local L_283_ = CalculateRecoil()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t + L_283_
- delay(0.025, function()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t - L_283_
- end)
- L_151_:FireServer('Shoot', true, L_5_, nil, nil, L_7_.Firerate / 2)
- L_2_:WaitForChild('S'.. L_6_.Name):WaitForChild('Grip'):WaitForChild('Fire'):Play()
- L_21_ = L_21_ - 1
- UpdateAmmo()
- L_70_ = true
- RecoilFront = true
- L_20_ = CreateBullet(L_7_.BulletSpread)
- local L_284_, L_285_ = spawn(function()
- CastRay(L_20_)
- end)
- for L_286_forvar1, L_287_forvar2 in pairs(L_126_:GetChildren()) do
- if L_287_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_287_forvar2.Enabled = true
- end
- end
- delay(1 / 30, function()
- for L_288_forvar1, L_289_forvar2 in pairs(L_126_:GetChildren()) do
- if L_289_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_289_forvar2.Enabled = false
- end
- end
- end)
- if L_7_.CanBolt == true then
- BoltingBackAnim()
- delay(L_7_.Firerate / 2, function()
- if L_7_.CanSlideLock == false then
- BoltingForwardAnim()
- elseif L_7_.CanSlideLock == true then
- if L_21_ > 0 then
- BoltingForwardAnim()
- end
- end
- end)
- end
- delay(L_7_.Firerate / 2, function()
- L_64_ = false
- RecoilFront = false
- end)
- wait(L_7_.Firerate)
- L_70_ = false
- L_93_ = true
- end
- end
- function fireBurst()
- if not L_70_ and L_21_ > 0 and L_62_ and L_59_ then
- for L_290_forvar1 = 1, L_7_.BurstNum do
- if L_21_ > 0 and L_62_ then
- L_93_ = false
- L_64_ = true
- local L_291_ = CalculateRecoil()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t + L_291_
- delay(0.025, function()
- L_147_.recoilSpring.t = L_147_.recoilSpring.t - L_291_
- end)
- L_2_:WaitForChild('S'.. L_6_.Name):WaitForChild('Grip'):WaitForChild('Fire'):Play()
- L_20_ = CreateBullet(L_7_.BulletSpread)
- local L_292_, L_293_ = spawn(function()
- CastRay(L_20_)
- end)
- for L_294_forvar1, L_295_forvar2 in pairs(L_126_:GetChildren()) do
- if L_295_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_295_forvar2.Enabled = true
- end
- end
- delay(1 / 30, function()
- for L_296_forvar1, L_297_forvar2 in pairs(L_126_:GetChildren()) do
- if L_297_forvar2.Name:sub(1, 7) == "FlashFX" then
- L_297_forvar2.Enabled = false
- end
- end
- end)
- if L_7_.CanBolt == true then
- BoltingBackAnim()
- delay(L_7_.Firerate / 2, function()
- if L_7_.CanSlideLock == false then
- BoltingForwardAnim()
- elseif L_7_.CanSlideLock == true then
- if L_21_ > 0 then
- BoltingForwardAnim()
- end
- end
- end)
- end
- L_21_ = L_21_ - 1
- UpdateAmmo()
- RecoilFront = true
- delay(L_7_.Firerate / 2, function()
- L_64_ = false
- RecoilFront = false
- end)
- wait(L_7_.Firerate)
- end
- L_70_ = true
- end
- L_70_ = false
- L_93_ = true
- end
- end
- function Shoot()
- if L_59_ and L_93_ then
- if L_24_ == 1 then
- fireSemi()
- elseif L_24_ == 2 then
- fireAuto()
- elseif L_24_ == 3 then
- fireBurst()
- elseif L_24_ == 4 then
- fireBoltAction()
- elseif L_24_ == 5 then
- fireShot()
- elseif L_24_ == 6 then
- fireExplo()
- end
- end
- end
- local L_167_ = CFrame.new()
- function L_144_.Update()
- if L_131_.Health > 0 and L_59_ then
- L_119_ = CFrame.new(L_132_.CFrame.p) + L_88_
- L_120_ = L_144_.Rotation
- L_121_ = CFrame.fromAxisAngle(Vector3.new(0, 1, 0), L_120_.x) * CFrame.fromAxisAngle(Vector3.new(1, 0, 0), L_120_.y)
- if not L_77_ then
- L_165_.MouseBehavior = Enum.MouseBehavior.LockCenter
- L_165_.MouseIconEnabled = false
- else
- L_165_.MouseBehavior = Enum.MouseBehavior.Default
- L_165_.MouseIconEnabled = true
- end
- L_3_.CameraType = Enum.CameraType.Scriptable
- local L_298_ = L_147_.recoilSpring.p
- local L_299_ = CFrame.new(0, 0, L_298_.z / 10)
- local L_300_ = CFrame.fromAxisAngle(Vector3.new(1, 0, 0), L_298_.x / 10)
- local L_301_ = CFrame.fromAxisAngle(Vector3.new(0, 1, 0), L_298_.y / 10)
- L_298_ = L_299_ * L_300_ * L_301_
- L_147_.cornerPeek.t = L_147_.peekFactor * L_147_.dirPeek
- local L_302_ = CFrame.fromAxisAngle(Vector3.new(0, 0, 1), L_147_.cornerPeek.p) -- SOLUTION TO 3RD PERSON --> CFrame.new(10,0,0) * CFrame.fromAxisAngle(Vector3.new(0,0,1), this.cornerPeek.p)
- L_3_.CFrame = L_119_ * L_121_ * L_298_ * L_302_ * L_167_
- if not L_76_ then
- L_134_.CFrame = CFrame.new(L_134_.CFrame.p, L_134_.CFrame.p + L_3_.CFrame.lookVector * Vector3.new(0.1, 0, 0.1))
- end
- local L_303_ = L_2_:GetDescendants()
- for L_304_forvar1, L_305_forvar2 in pairs(L_303_) do
- if L_305_forvar2:IsA('BasePart') then
- L_305_forvar2.LocalTransparencyModifier = 1
- end
- end
- end
- end
- function L_144_.GetCoef()
- return -math.atan(math.tan(math.rad(L_3_.FieldOfView) / 2) / 2.718) / (32 * math.pi)
- end
- function L_144_.Rotate(L_306_arg1)
- local L_307_ = Vector2.new(L_306_arg1.Delta.x, L_306_arg1.Delta.y) * L_144_.GetCoef()
- local L_308_ = L_144_.Rotation + L_307_
- L_144_.Rotation = Vector2.new(L_308_.x, math.clamp(L_308_.y, -math.rad(89), math.rad(89)))
- end
- function CalculateRecoil()
- local L_309_
- local L_310_
- local L_311_
- if not L_66_ then
- if not L_68_ then
- L_309_ = math.rad(math.random(L_7_.SideKickMin, L_7_.SideKickMax))
- L_310_ = math.random(L_7_.gunRecoilMin, L_7_.gunRecoilMax)
- L_311_ = math.rad(math.random(L_7_.KickbackMin, L_7_.KickbackMax))
- elseif L_68_ then
- if L_87_ == 1 then
- L_309_ = math.rad(math.random(L_7_.SideKickMin / 1.5, L_7_.SideKickMax / 1.5))
- L_310_ = math.random(L_7_.gunRecoilMin / 1.5, L_7_.gunRecoilMax / 1.5)
- L_311_ = math.rad(math.random(L_7_.KickbackMin / 1.5, L_7_.KickbackMax / 1.5))
- end
- if L_87_ == 2 then
- L_309_ = math.rad(math.random(L_7_.SideKickMin / 2, L_7_.SideKickMax / 2))
- L_310_ = math.random(L_7_.gunRecoilMin / 2, L_7_.gunRecoilMax / 2)
- L_311_ = math.rad(math.random(L_7_.KickbackMin / 2, L_7_.KickbackMax / 2))
- end
- end
- L_309_ = math.rad(math.random(L_7_.SideKickMin, L_7_.SideKickMax))
- L_310_ = math.random(L_7_.gunRecoilMin, L_7_.gunRecoilMax)
- L_311_ = math.rad(math.random(L_7_.KickbackMin, L_7_.KickbackMax))
- else
- if not L_68_ then
- L_309_ = math.rad(math.random(L_7_.AimSideKickMin, L_7_.AimSideKickMax))
- L_310_ = math.random(L_7_.AimGunRecoilMin, L_7_.AimGunRecoilMax)
- L_311_ = math.rad(math.random(L_7_.AimKickbackMin, L_7_.AimKickbackMax))
- elseif L_68_ then
- if L_87_ == 1 then
- L_309_ = math.rad(math.random(L_7_.AimSideKickMin / 1.5, L_7_.AimSideKickMax / 1.5))
- L_310_ = math.random(L_7_.AimGunRecoilMin / 1.5, L_7_.AimGunRecoilMax / 1.5)
- L_311_ = math.rad(math.random(L_7_.AimKickbackMin / 1.5, L_7_.AimKickbackMax / 1.5))
- end
- if L_87_ == 2 then
- L_309_ = math.rad(math.random(L_7_.AimSideKickMin / 2, L_7_.AimSideKickMax / 2))
- L_310_ = math.random(L_7_.AimGunRecoilMin / 2, L_7_.AimGunRecoilMax / 2)
- L_311_ = math.rad(math.random(L_7_.AimKickbackMin / 2, L_7_.AimKickbackMax / 2))
- end
- end
- end
- local L_312_ = Vector3.new(L_311_, L_309_, L_310_ / 70)
- return L_312_
- end
- function LoadClientMods()
- for L_313_forvar1, L_314_forvar2 in pairs(L_16_:GetChildren()) do
- if L_314_forvar2:IsA('LocalScript') then
- local L_315_ = L_314_forvar2:clone()
- L_315_.Parent = L_27_
- L_315_.Disabled = false
- end
- end
- end
- --// Walk and Sway
- local L_168_
- local L_169_ = 0.6
- local L_170_ = 0.2 -- speed
- local L_171_ = -0.3 -- height
- local L_172_ = 0
- local L_173_ = 0
- local L_174_ = 35 --This is the limit of the mouse input for the sway
- local L_175_ = 6 --This is the magnitude of the sway when you're unaimed
- local L_176_ = 3 --This is the magnitude of the sway when you're aimed
- local L_177_ = L_54_.new(Vector3.new())
- L_177_.s = 30
- L_177_.d = 0.5
- game:GetService("UserInputService").InputChanged:connect(function(L_316_arg1) --Get the mouse delta for the gun sway
- if L_316_arg1.UserInputType == Enum.UserInputType.MouseMovement then
- L_172_ = math.min(math.max(L_316_arg1.Delta.x, -L_174_), L_174_)
- L_173_ = math.min(math.max(L_316_arg1.Delta.y, -L_174_), L_174_)
- end
- end)
- L_4_.Idle:connect(function() --Reset the sway to 0 when the mouse is still
- L_172_ = 0
- L_173_ = 0
- end)
- local L_178_ = false
- local L_179_ = CFrame.new()
- local L_180_ = CFrame.new()
- local L_181_ = 0
- local L_182_ = CFrame.new()
- local L_183_ = 0.1
- local L_184_ = 2
- local L_185_
- local L_186_
- local L_187_
- L_185_ = 0
- L_186_ = 0.08
- L_187_ = 12
- local L_188_, L_189_ = 0, 0
- local L_190_ = nil
- local L_191_ = nil
- L_2_.Humanoid.Running:connect(function(L_317_arg1)
- if L_131_.FloorMaterial ~= Enum.Material.Air then
- if L_317_arg1 > 1 then
- L_178_ = true
- else
- L_178_ = false
- end
- end
- end)
- --// Renders
- L_163_:connect(function(L_318_arg1)
- if L_59_ and not L_80_ then
- L_188_, L_189_ = L_188_ or 0, L_189_ or 0
- if L_191_ == nil or L_190_ == nil then
- L_191_ = L_104_.C0
- L_190_ = L_104_.C1
- end
- local L_319_ = (math.cos(L_185_ * L_187_ / 2) * L_186_)
- local L_320_ = (math.cos(L_185_ * L_187_) * L_186_)
- local L_321_ = CFrame.new(L_319_, L_320_, 0.02) * CFrame.Angles((math.sin(L_185_ * L_187_) * L_186_), (math.sin(L_185_ * L_187_ / 2) * L_186_), 0)
- local L_322_ = (math.sin(L_181_ * L_184_ / 2) * L_183_)
- local L_323_ = (math.cos(L_181_ * L_184_) * L_183_)
- local L_324_ = CFrame.new(L_322_, L_323_, 0.02)
- if L_178_ and L_131_.FloorMaterial ~= Enum.Material.Air then
- L_185_ = L_185_ + .017
- if L_52_.WalkAnimEnabled == true then
- L_179_ = L_321_
- else
- L_179_ = CFrame.new()
- end
- else
- L_185_ = 0
- L_179_ = CFrame.new()
- end
- L_177_.t = Vector3.new(L_172_, L_173_, 0)
- local L_325_ = L_177_.p
- local L_326_ = L_325_.X / L_174_ * (L_66_ and L_176_ or L_175_)
- local L_327_ = L_325_.Y / L_174_ * (L_66_ and L_176_ or L_175_)
- if L_66_ then
- if L_52_.SwayEnabled then
- L_168_ = CFrame.new(math.rad(-L_326_), math.rad(L_327_), 0) * CFrame.Angles(0, 0, math.rad(-L_326_)) --CFrame.new(swayX/60,-swayY/60,0) --* CFrame.Angles(math.rad(swayY), math.rad(swayX), math.rad(-swayX))
- else
- L_168_ = CFrame.new()
- end
- L_181_ = 0
- L_182_ = CFrame.new()
- else
- if L_52_.SwayEnabled then
- L_168_ = CFrame.new(math.rad(-L_326_), math.rad(L_327_), 0) * CFrame.Angles(math.rad(-L_327_), math.rad(-L_326_), 0)
- else
- L_168_ = CFrame.new()
- end
- L_181_ = L_181_ + 0.003
- L_182_ = L_324_
- end
- local L_328_ = L_147_.recoilSpring.p
- local L_329_ = CFrame.new(0, 0, L_328_.z)
- local L_330_ = CFrame.fromAxisAngle(Vector3.new(1, 0, 0), L_328_.x / 7)
- local L_331_ = CFrame.fromAxisAngle(Vector3.new(0, 1, 0), L_328_.y / 10)
- L_328_ = L_329_ * L_330_ * L_331_
- L_105_.CFrame = L_3_.CFrame * L_328_
- L_88_ = L_88_:Lerp(L_90_, L_318_arg1 * 5) --CFrame.new(camC0.p:lerp(camDest, deltaTime*5))
- L_167_ = L_167_:Lerp(L_91_, L_318_arg1 * 5)
- if L_52_.SwayEnabled == true then
- L_104_.C0 = L_104_.C0:lerp(L_191_ * L_179_ * L_182_, L_318_arg1 * 5)
- else
- L_104_.C0 = L_104_.C0:lerp(L_191_ * L_179_ * L_182_, L_318_arg1 * 5)
- end
- if not L_66_ and not L_67_ then
- L_186_ = 0.08
- L_187_ = 12
- L_184_ = 2
- L_131_.WalkSpeed = 16
- L_104_.C1 = L_104_.C1:lerp(CFrame.new() * L_168_, L_318_arg1 * 7)
- L_32_:WaitForChild('SensDisplay').Text = 'Sensitivity: ' .. L_84_
- L_165_.MouseDeltaSensitivity = L_84_
- end
- if L_66_ and not L_73_ then
- if not L_68_ then
- L_131_.WalkSpeed = 6
- L_186_ = 0.005
- L_187_ = 6
- end
- L_184_ = 0
- L_104_.C1 = L_104_.C1:lerp(L_191_ * L_168_ * L_124_.CFrame:toObjectSpace(L_103_.CFrame), L_318_arg1 * L_7_.AimSpeedMult)
- L_32_:WaitForChild('SensDisplay').Text = 'Sensitivity: ' .. L_83_
- L_165_.MouseDeltaSensitivity = L_83_
- end
- if L_67_ and not L_68_ and L_178_ then
- L_186_ = 0.18
- L_187_ = 17
- L_131_.WalkSpeed = 21
- L_104_.C1 = L_104_.C1:lerp(L_168_ * L_7_.SprintPos, L_318_arg1 * 5)
- end
- if L_74_ then
- local L_332_ = Ray.new(L_6_.LaserLight.Position, L_122_.CFrame.lookVector * 999)
- local L_333_, L_334_, L_335_ = workspace:FindPartOnRayWithIgnoreList(L_332_, L_146_)
- L_99_.CFrame = CFrame.new(0, 0, -L_101_)
- L_102_.CFrame = L_99_.WorldCFrame
- if L_333_ and (L_333_ and L_333_.Transparency >= 1 or L_333_.CanCollide == false) then
- table.insert(L_146_, L_333_)
- end;
- if L_333_ then
- L_101_ = (L_6_.LaserLight.Position - L_334_).magnitude
- else
- L_101_ = 999
- end
- end;
- end
- if L_96_ and L_97_ then
- if L_81_ == 'Long' then
- L_97_.Length = L_97_.Length + 0.5
- elseif L_81_ == 'Short' then
- L_97_.Length = L_97_.Length - 0.5
- elseif L_81_ == 'None' then
- L_97_.Length = L_97_.Length
- end
- UpdateRope(L_97_, L_97_.Length)
- end;
- if L_86_ then
- L_3_.CameraType = Enum.CameraType.Scriptable
- L_3_.CFrame = L_2_:WaitForChild('Head').CFrame
- end
- if L_68_ then
- if L_87_ == 0 then
- L_186_ = 0.08
- L_187_ = 12
- elseif L_87_ == 1 then
- L_131_.WalkSpeed = 6
- L_186_ = 0.005
- L_187_ = 6
- elseif L_87_ == 2 then
- L_131_.WalkSpeed = 3
- L_186_ = 0.003
- L_187_ = 3
- end
- end;
- HalfStepFunc(-math.asin((L_4_.Hit.p - L_4_.Origin.p).unit.y))
- for L_336_forvar1, L_337_forvar2 in pairs(game.Players:GetChildren()) do
- if L_337_forvar2 and L_337_forvar2:IsA('Player') and L_337_forvar2 ~= L_1_ and L_337_forvar2.Character and L_337_forvar2.Character:FindFirstChild('yRot') and L_337_forvar2.Character.yRot.Value and L_337_forvar2.Character:FindFirstChild('zRot') and L_337_forvar2.Character.zRot.Value and L_337_forvar2.Character:FindFirstChild('Torso') and L_337_forvar2.Character.Torso:FindFirstChild('Neck') then
- local L_338_ = L_337_forvar2.Character:WaitForChild('Torso'):WaitForChild('Neck')
- local L_339_ = L_337_forvar2.Character:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0, 1.5, 0) * CFrame.new(L_337_forvar2.Character:WaitForChild("Humanoid").CameraOffset)
- L_338_.C0 = L_338_.C0:lerp(L_337_forvar2.Character:WaitForChild("HumanoidRootPart").CFrame:toObjectSpace(L_339_) * L_337_forvar2.Character:WaitForChild('neckCF').Value, 0.2)
- L_338_.C1 = L_338_.C1:lerp(L_337_forvar2.Character.yRot.Value * L_337_forvar2.Character.zRot.Value, 0.2)
- end
- end;
- end)
- game:GetService("RunService"):BindToRenderStep("Camera Update", 200, L_144_.Update)
- --// Connections
- local L_192_ = nil
- L_2_.ChildAdded:connect(function(L_340_arg1)
- if L_340_arg1:IsA('Tool') and L_340_arg1:FindFirstChild('Authenticate') and L_131_.Health > 0 and not L_80_ then
- L_192_ = L_340_arg1
- if not L_59_ then
- L_4_.TargetFilter = workspace
- Setup(L_340_arg1)
- L_29_ = L_28_:WaitForChild('LeftFrame')
- L_30_ = L_28_:WaitForChild('TopFrame')
- L_46_ = L_29_:WaitForChild('RappelButton')
- L_47_ = L_30_:WaitForChild('SignButton')
- if workspace:FindFirstChild("BulletModel: " .. L_1_.Name) then
- L_19_ = workspace["BulletModel: " .. L_1_.Name]
- IgnoreList = {
- L_2_,
- L_19_,
- L_3_
- }
- end
- if not L_52_.AmmoUIEnabled then
- L_48_:WaitForChild('GameGui').Visible = false
- end
- L_124_ = L_6_:WaitForChild('AimPart')
- L_126_ = L_6_:WaitForChild('FirePart')
- L_128_ = L_6_:WaitForChild('Bolt')
- L_129_ = L_128_:WaitForChild('Bolt')
- L_130_ = L_6_:WaitForChild('Mag')
- LoadClientMods()
- elseif L_59_ then
- L_152_:InvokeServer('Store', L_5_.Name, L_21_, L_22_, L_23_, L_24_, L_83_, L_84_)
- Unset()
- --uis.MouseIconEnabled = false
- L_4_.TargetFilter = workspace
- Setup(L_192_)
- L_29_ = L_28_:WaitForChild('LeftFrame')
- L_30_ = L_28_:WaitForChild('TopFrame')
- L_46_ = L_29_:WaitForChild('RappelButton')
- L_47_ = L_30_:WaitForChild('SignButton')
- if workspace:FindFirstChild("BulletModel: " .. L_1_.Name) then
- L_19_ = workspace["BulletModel: " .. L_1_.Name]
- IgnoreList = {
- L_2_,
- L_19_,
- L_3_
- }
- end
- if not L_52_.AmmoUIEnabled then
- L_48_:WaitForChild('GameGui').Visible = false
- end
- L_124_ = L_6_:WaitForChild('AimPart')
- L_126_ = L_6_:WaitForChild('FirePart')
- L_128_ = L_6_:WaitForChild('Bolt')
- L_129_ = L_128_:WaitForChild('Bolt')
- L_130_ = L_6_:WaitForChild('Mag')
- LoadClientMods()
- end;
- end
- end)
- L_2_.ChildRemoved:connect(function(L_341_arg1)
- if L_341_arg1 == L_5_ then
- if L_59_ then
- L_152_:InvokeServer('Store', L_5_.Name, L_21_, L_22_, L_23_, L_24_, L_83_, L_84_)
- if L_102_ then
- L_102_:Destroy()
- end
- Unset()
- end
- end
- end)
- L_131_.Changed:connect(function()
- if L_131_.Health < L_141_ and L_131_.Health > 0 then
- local L_342_ = L_3_:FindFirstChild('Blur_FX') or L_25_:WaitForChild('Blur_FX'):clone()
- L_342_.Parent = L_3_
- L_342_.Size = 0
- L_164_:Create(L_342_, TweenInfo.new(L_55_.fadeSpeed), {
- Size = L_55_.blurSize
- }):Play()
- delay(L_55_.fadeSpeed, function()
- L_164_:Create(L_342_, TweenInfo.new(L_55_.fadeSpeed), {
- Size = 0
- }):Play()
- end)
- end
- L_141_ = L_131_.Health
- end)
- L_131_.Died:connect(function()
- L_152_:InvokeServer('Erase')
- L_161_:InvokeServer('Cut', L_4_.hit, L_4_.Target, L_134_, L_96_, L_97_, L_82_)
- Unset()
- L_86_ = true
- end)
- L_131_.Seated:connect(function(L_343_arg1, L_344_arg2)
- if L_343_arg1 then
- L_76_ = true
- L_178_ = false
- L_185_ = 0
- if L_87_ ~= 0 then
- L_87_ = 0
- changeStance()
- end
- else
- L_76_ = false
- end
- end)
- L_1_.CharacterRemoving:connect(function()
- Unset()
- L_152_:InvokeServer('Erase')
- end)
- --// Inputs
- L_165_.InputBegan:connect(function(L_345_arg1, L_346_arg2)
- if not L_346_arg2 and L_59_ and not L_77_ and not L_79_ then
- if L_345_arg1.UserInputType == L_7_.ADSKeybind and not L_65_ and not L_73_ and not L_69_ and not L_79_ and not L_66_ then
- L_67_ = false
- L_66_ = true;
- L_118_.SoundId = 'rbxassetid://' .. L_142_[math.random(1, #L_142_)]
- L_118_:Play()
- if L_124_.Name == 'AimPart' then
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = L_7_.AimZoom
- }):Play()
- elseif L_124_.Name == 'AimPart2' then
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = L_7_.AltAimZoom
- }):Play()
- end
- L_151_:FireServer('Aim', true, L_5_)
- end;
- if L_345_arg1.KeyCode == L_52_.AltAimKey and not L_65_ and not L_73_ and not L_69_ and not L_79_ and not L_66_ then
- L_67_ = false
- L_66_ = true;
- L_118_.SoundId = 'rbxassetid://' .. L_142_[math.random(1, #L_142_)]
- L_118_:Play()
- if L_124_.Name == 'AimPart' then
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = L_7_.AimZoom
- }):Play()
- elseif L_124_.Name == 'AimPart2' then
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = L_7_.AltAimZoom
- }):Play()
- end
- L_151_:FireServer('Aim', true, L_5_)
- end;
- if L_345_arg1.UserInputType == L_7_.ShootKeybind and not L_65_ and not L_73_ and not L_67_ and L_93_ and not L_69_ and not L_71_ and not L_72_ and L_123_ then
- L_62_ = true
- if not L_70_ and L_59_ and not L_63_ then
- if L_21_ > 0 then
- Shoot()
- end
- elseif not L_70_ and L_59_ and L_63_ then
- if L_23_ > 0 then
- Shoot()
- end
- end
- end
- if L_345_arg1.KeyCode == L_7_.SprintKey and not L_65_ and not L_68_ and not L_70_ and L_178_ and not L_73_ and not L_69_ then
- L_66_ = false
- L_67_ = true
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = 70
- }):Play()
- L_151_:FireServer('Sprint', true, L_5_)
- end;
- if L_345_arg1.KeyCode == L_7_.CycleSightKey and L_6_:FindFirstChild('AimPart2') then
- if not L_66_ then
- if L_124_.Name == 'AimPart' then
- L_124_ = L_6_.AimPart2
- elseif L_124_.Name == 'AimPart2' then
- L_124_ = L_6_.AimPart
- end
- else
- if L_124_.Name == 'AimPart' then
- L_124_ = L_6_.AimPart2
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = L_7_.AltAimZoom
- }):Play()
- elseif L_124_.Name == 'AimPart2' then
- L_124_ = L_6_.AimPart
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = L_7_.AimZoom
- }):Play()
- end
- end
- end;
- if L_59_ and L_345_arg1.KeyCode == L_7_.FireSelectKey and not L_65_ and not L_72_ and not L_70_ and L_7_.CanSelectFire then
- L_72_ = true
- if L_24_ == 1 then
- if L_70_ then
- L_70_ = false
- end
- if L_7_.AutoEnabled then
- L_24_ = 2
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.AutoEnabled and L_7_.BurstEnabled then
- L_24_ = 3
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.AutoEnabled and not L_7_.BurstEnabled and L_7_.BoltAction then
- L_24_ = 4
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.AutoEnabled and not L_7_.BurstEnabled and not L_7_.BoltAction and L_7_.ExplosiveEnabled then
- L_24_ = 6
- L_63_ = true
- L_94_ = L_93_
- L_93_ = L_95_
- elseif not L_7_.AutoEnabled and not L_7_.BurstEnabled and not L_7_.BoltAction and not L_7_.ExplosiveEnabled then
- L_24_ = 1
- L_63_ = false
- L_93_ = L_94_
- end
- elseif L_24_ == 2 then
- if L_70_ then
- L_70_ = false
- end
- if L_7_.BurstEnabled then
- L_24_ = 3
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.BurstEnabled and L_7_.BoltAction then
- L_24_ = 4
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.BurstEnabled and not L_7_.BoltAction and L_7_.ExplosiveEnabled then
- L_24_ = 6
- L_63_ = true
- L_94_ = L_93_
- L_93_ = L_95_
- elseif not L_7_.BurstEnabled and not L_7_.BoltAction and not L_7_.ExplosiveEnabled and L_7_.SemiEnabled then
- L_24_ = 1
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.BurstEnabled and not L_7_.BoltAction and not L_7_.SemiEnabled then
- L_24_ = 2
- L_63_ = false
- L_93_ = L_94_
- end
- elseif L_24_ == 3 then
- if L_70_ then
- L_70_ = false
- end
- if L_7_.BoltAction then
- L_24_ = 4
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.BoltAction and L_7_.ExplosiveEnabled then
- L_24_ = 6
- L_63_ = true
- L_94_ = L_93_
- L_93_ = L_95_
- elseif not L_7_.BoltAction and not L_7_.ExplosiveEnabled and L_7_.SemiEnabled then
- L_24_ = 1
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.BoltAction and not L_7_.SemiEnabled and L_7_.AutoEnabled then
- L_24_ = 2
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.BoltAction and not L_7_.SemiEnabled and not L_7_.AutoEnabled then
- L_24_ = 3
- L_63_ = false
- L_93_ = L_94_
- end
- elseif L_24_ == 4 then
- if L_70_ then
- L_70_ = false
- end
- if L_7_.ExplosiveEnabled then
- L_24_ = 6
- L_94_ = L_93_
- L_93_ = L_95_
- L_63_ = true
- elseif not L_7_.ExplosiveEnabled and L_7_.SemiEnabled then
- L_24_ = 1
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and L_7_.AutoEnabled then
- L_24_ = 2
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and not L_7_.AutoEnabled and L_7_.BurstEnabled then
- L_24_ = 3
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and not L_7_.AutoEnabled and not L_7_.BurstEnabled then
- L_24_ = 4
- L_63_ = false
- L_93_ = L_94_
- end
- elseif L_24_ == 6 then
- if L_70_ then
- L_70_ = false
- end
- L_95_ = L_93_
- if L_7_.SemiEnabled then
- L_24_ = 1
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and L_7_.AutoEnabled then
- L_24_ = 2
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and not L_7_.AutoEnabled and L_7_.BurstEnabled then
- L_24_ = 3
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and not L_7_.AutoEnabled and not L_7_.BurstEnabled and L_7_.BoltAction then
- L_24_ = 4
- L_63_ = false
- L_93_ = L_94_
- elseif not L_7_.SemiEnabled and not L_7_.AutoEnabled and not L_7_.BurstEnabled and not L_7_.BoltAction then
- L_24_ = 6
- L_63_ = true
- L_94_ = L_93_
- L_93_ = L_95_
- end
- end
- UpdateAmmo()
- FireModeAnim()
- IdleAnim()
- L_72_ = false
- end;
- if L_345_arg1.KeyCode == L_7_.ReloadKey and not L_65_ and L_59_ and not L_69_ and not L_66_ and not L_70_ and not L_67_ and not L_71_ then
- if not L_63_ then
- if L_22_ > 0 and L_21_ < L_7_.Ammo then
- L_70_ = false
- L_69_ = true
- ReloadAnim()
- if L_21_ <= 0 then
- if not L_7_.CanSlideLock then
- BoltBackAnim()
- BoltForwardAnim()
- end
- elseif L_21_ > 0 then
- if not L_7_.CanSlideLock then
- if L_129_.C1 ~= (CFrame.new() or CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) then
- BoltBackAnim()
- BoltForwardAnim()
- end
- end
- end
- IdleAnim()
- L_93_ = true
- if L_21_ <= 0 then
- if (L_22_ - (L_7_.Ammo - L_21_)) < 0 then
- L_21_ = L_21_ + L_22_
- L_22_ = 0
- else
- L_22_ = L_22_ - (L_7_.Ammo - L_21_)
- L_21_ = L_7_.Ammo
- end
- elseif L_21_ > 0 then
- if (L_22_ - (L_7_.Ammo - L_21_)) < 0 then
- L_21_ = L_21_ + L_22_ + 1
- L_22_ = 0
- else
- L_22_ = L_22_ - (L_7_.Ammo - L_21_)
- L_21_ = L_7_.Ammo + 1
- end
- end
- L_69_ = false
- L_93_ = true
- end;
- elseif L_63_ then
- if L_23_ > 0 then
- L_70_ = false
- L_69_ = true
- nadeReload()
- IdleAnim()
- L_69_ = false
- L_93_ = true
- end
- end;
- UpdateAmmo()
- end;
- if L_345_arg1.KeyCode == L_7_.PatrolKey and not L_65_ and not L_66_ and not L_67_ and not L_68_ and not L_69_ and not L_64_ then
- if not L_73_ then
- L_66_ = false
- L_67_ = false
- L_73_ = true
- L_151_:FireServer('Patrol', true, L_5_)
- PatrolAnim()
- else
- L_151_:FireServer('Patrol', false, L_5_)
- IdleAnim()
- L_73_ = false
- end
- end;
- if L_345_arg1.KeyCode == L_7_.LaserKey and L_59_ and L_6_ and L_6_:FindFirstChild('LaserLight') and L_7_.LaserAttached then
- L_74_ = not L_74_
- L_102_ = Instance.new('Part')
- L_102_.Shape = 'Ball'
- L_102_.Size = Vector3.new(0.1, 0.1, 0.1)
- L_102_.Parent = L_3_
- L_102_.CanCollide = false
- L_102_.BrickColor = L_7_.LaserColor
- L_102_.Material = Enum.Material.Neon
- if L_74_ then
- L_98_ = Instance.new('Attachment')
- L_98_.Parent = L_6_.LaserLight
- L_99_ = Instance.new('Attachment')
- L_99_.Parent = L_6_.LaserLight
- L_100_ = Instance.new('Beam')
- L_100_.Parent = L_6_.LaserLight
- L_100_.Attachment0 = L_98_
- L_100_.Attachment1 = L_99_
- L_100_.Color = ColorSequence.new(L_7_.LaserColor.Color)
- L_100_.LightEmission = L_7_.LaserEmission
- L_100_.LightInfluence = L_7_.LaserInfluence
- L_100_.Transparency = L_7_.LaserTransparency
- L_100_.FaceCamera = true
- L_100_.Width0 = 0.01
- L_100_.Width1 = 0.01
- else
- L_98_:Destroy()
- L_99_:Destroy()
- L_100_:Destroy()
- L_102_:Destroy()
- end
- end;
- if L_345_arg1.KeyCode == L_7_.LightKey and L_7_.LightAttached and L_6_:FindFirstChild('FlashLight') and L_6_.FlashLight:FindFirstChild('Light') then
- L_75_ = not L_75_
- if L_75_ then
- L_6_.FlashLight.Light.Enabled = true
- else
- L_6_.FlashLight.Light.Enabled = false
- end
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.Q and L_87_ ~= 2 and not L_76_ then
- L_147_.dirPeek = 1
- Lean()
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.E and L_87_ ~= 2 and not L_76_ then
- L_147_.dirPeek = -1
- Lean()
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.Equals and L_66_ then
- if L_124_.Name == 'AimPart' then
- L_124_.AimPart.C1 = L_124_.AimPart.C1 * CFrame.new(0, -0.001, 0)
- else
- L_124_.AimPart2.C1 = L_124_.AimPart2.C1 * CFrame.new(0, -0.001, 0)
- end
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.Minus and L_66_ then
- if L_124_.Name == 'AimPart' then
- L_124_.AimPart.C1 = L_124_.AimPart.C1 * CFrame.new(0, 0.001, 0)
- else
- L_124_.AimPart2.C1 = L_124_.AimPart2.C1 * CFrame.new(0, 0.001, 0)
- end
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.LeftBracket and L_66_ then
- if L_124_.Name == 'AimPart' then
- L_124_.AimPart.C1 = L_124_.AimPart.C1 * CFrame.new(0.001, 0, 0)
- else
- L_124_.AimPart2.C1 = L_124_.AimPart2.C1 * CFrame.new(0.001, 0, 0)
- end
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.RightBracket and L_66_ then
- if L_124_.Name == 'AimPart' then
- L_124_.AimPart.C1 = L_124_.AimPart.C1 * CFrame.new(-0.001, 0, 0)
- else
- L_124_.AimPart2.C1 = L_124_.AimPart2.C1 * CFrame.new(-0.001, 0, 0)
- end
- end;
- if L_345_arg1.KeyCode == Enum.KeyCode.BackSlash and L_66_ then
- if L_124_.Name == 'AimPart' then
- L_124_.AimPart.C1 = CFrame.new()
- else
- L_124_.AimPart2.C1 = CFrame.new()
- end
- end;
- if L_345_arg1.KeyCode == L_52_.InspectKey and not L_66_ and not L_70_ and not L_67_ and not L_79_ and not L_69_ and not L_73_ and not L_71_ then
- L_65_ = not L_65_
- if L_65_ then
- InspectAnim()
- else
- IdleAnim()
- end
- end;
- end
- end)
- L_165_.InputChanged:connect(function(L_347_arg1, L_348_arg2)
- if not L_348_arg2 and L_59_ then
- if L_347_arg1.UserInputType == Enum.UserInputType.MouseWheel then
- if L_66_ then
- if L_347_arg1.Position.Z == 1 and (L_83_ < 10) then
- L_83_ = L_83_ + L_7_.SensitivityIncrement
- elseif L_347_arg1.Position.Z == -1 and (L_83_ > 0.1) then
- L_83_ = L_83_ - L_7_.SensitivityIncrement
- end
- else
- if L_347_arg1.Position.Z == 1 and (L_84_ < 10) then
- L_84_ = L_84_ + L_7_.SensitivityIncrement
- elseif L_347_arg1.Position.Z == -1 and (L_84_ > 0.1) then
- L_84_ = L_84_ - L_7_.SensitivityIncrement
- end
- end
- end;
- end
- end)
- L_165_.InputChanged:connect(function(L_349_arg1, L_350_arg2)
- if not L_350_arg2 and L_59_ then
- local L_351_, L_352_ = workspace:FindPartOnRayWithIgnoreList(Ray.new(L_124_.CFrame.p, (L_124_.CFrame.lookVector).unit * 10000), IgnoreList);
- if L_351_ then
- local L_353_ = (L_352_ - L_133_.Position).magnitude
- L_37_.Text = math.ceil(L_353_) .. ' m'
- end
- end
- end)
- L_165_.InputBegan:connect(function(L_354_arg1, L_355_arg2)
- if not L_355_arg2 then
- if L_59_ or L_52_.UniversalStances and not L_73_ and not L_76_ then
- if L_354_arg1.KeyCode == Enum.KeyCode.C and not L_76_ then
- L_67_ = false
- if L_87_ == 0 then
- L_87_ = 1
- changeStance()
- elseif L_87_ == 1 then
- L_87_ = 2
- changeStance()
- elseif L_87_ == 2 then
- L_87_ = 1
- changeStance()
- end
- end;
- if L_354_arg1.KeyCode == Enum.KeyCode.X and not L_76_ then
- L_67_ = false
- if L_87_ == 0 then
- L_87_ = 1
- changeStance()
- elseif L_87_ == 1 then
- L_87_ = 0
- changeStance()
- elseif L_87_ == 2 then
- L_87_ = 1
- changeStance()
- end
- end;
- end
- end
- end)
- L_165_.InputBegan:connect(function(L_356_arg1, L_357_arg2)
- if not L_357_arg2 then
- if L_356_arg1.KeyCode == L_52_.ToggleKillFeedKey and L_49_ then
- L_49_.Enabled = not L_49_.Enabled
- end;
- if L_356_arg1.KeyCode == Enum.KeyCode.LeftAlt and not L_65_ and L_59_ then
- L_77_ = not L_77_
- if L_77_ then
- L_66_ = false
- L_67_ = false
- L_70_ = false
- L_73_ = false
- if L_3_.FieldOfView ~= 70 then
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = 70
- }):Play()
- end
- L_4_.TargetFilter = L_19_
- if L_46_ and L_47_ then
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_29_:WaitForChild('Trigger').MouseEnter:connect(function()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- Position = UDim2.new(-1, -25, -1, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- Position = UDim2.new(-1, -25, 1, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_46_:WaitForChild('Anchor').MouseButton1Click:connect(function()
- if not L_79_ then
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_78_ = true
- L_4_.Button1Up:connect(function()
- if L_4_.Hit.p and (L_4_.Hit.p - L_134_.Position).magnitude <= 10 and L_78_ and L_77_ then
- L_78_ = false
- local L_358_ = L_4_.Hit
- local L_359_ = L_4_.Target
- L_96_ = Instance.new('Part')
- L_96_.Parent = L_19_
- L_96_.Anchored = true
- L_96_.CanCollide = false
- L_96_.Position = L_4_.Hit.p
- L_96_.Size = Vector3.new(0.3, 0.3, 0.3)
- local L_360_ = Instance.new('WeldConstraint')
- L_360_.Parent = L_96_
- L_360_.Part0 = L_96_
- L_360_.Part1 = L_4_.Target
- L_96_.Anchored = false
- L_97_ = Instance.new('RopeConstraint')
- L_97_.Parent = L_96_
- L_97_.Visible = true
- L_97_.Length = (L_4_.Hit.p - L_134_.Position).magnitude + 5
- L_81_ = L_97_.Length
- local L_361_ = Instance.new('Attachment')
- L_361_.Parent = L_96_
- L_82_ = Instance.new('Attachment')
- L_82_.Parent = L_110_
- L_82_.Position = Vector3.new(0.4, -1.4, 0)
- L_97_.Attachment0 = L_361_
- L_97_.Attachment1 = L_82_
- AttachRopeAnim()
- IdleAnim()
- L_96_:Destroy()
- L_97_:Destroy()
- L_81_ = 0
- L_82_:Destroy()
- L_96_, L_97_, L_81_, L_82_ = L_161_:InvokeServer('Create', L_358_, L_359_, L_134_)
- L_4_.TargetFilter = workspace
- L_77_ = false
- end
- end)
- end
- end)
- L_46_:WaitForChild('CutRope').MouseButton1Click:connect(function()
- if not L_79_ then
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_161_:InvokeServer('Cut', L_4_.hit, L_4_.Target, L_134_, L_96_, L_97_, L_82_)
- L_4_.TargetFilter = workspace
- L_77_ = false
- end
- end)
- end)
- L_29_:WaitForChild('Trigger').MouseLeave:connect(function()
- if L_29_:FindFirstChild('RappelButton') then
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('Anchor'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_:WaitForChild('CutRope'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- end
- end)
- L_30_:WaitForChild('Trigger').MouseEnter:connect(function()
- L_164_:Create(L_47_:WaitForChild('Count'), TweenInfo.new(0.3), {
- Position = UDim2.new(-1, -25, -1, -125)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Count'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Count'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('GetDown'), TweenInfo.new(0.3), {
- Position = UDim2.new(1, 25, -1, -125)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('GetDown'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('GetDown'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Point'), TweenInfo.new(0.3), {
- Position = UDim2.new(1, -38, -1, -75)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Point'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Point'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Go'), TweenInfo.new(0.3), {
- Position = UDim2.new(1, 25, -1, -25)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Go'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Go'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Hold'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, -1, -25)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Hold'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Hold'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Follow'), TweenInfo.new(0.3), {
- Position = UDim2.new(-1, -25, -1, -25)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Follow'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Follow'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Contact'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, -1, -125)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Contact'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Contact'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Unsign'), TweenInfo.new(0.3), {
- Position = UDim2.new(-1, 38, -1, -75)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Unsign'), TweenInfo.new(0.3), {
- BackgroundTransparency = 0.55
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Unsign'), TweenInfo.new(0.3), {
- TextTransparency = 0
- }):Play()
- L_47_:WaitForChild('Hold').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('Hold', true, L_5_)
- HoldAnim()
- end
- end)
- L_47_:WaitForChild('Go').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('Go', true, L_5_)
- GoAnim()
- IdleAnim()
- L_79_ = false
- end
- end)
- L_47_:WaitForChild('Point').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('Point', true, L_5_)
- PointAnim()
- end
- end)
- L_47_:WaitForChild('Contact').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('Contact', true, L_5_)
- ContactAnim()
- IdleAnim()
- L_79_ = false
- end
- end)
- L_47_:WaitForChild('Count').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('Count', true, L_5_)
- CountAnim()
- IdleAnim()
- L_79_ = false
- end
- end)
- L_47_:WaitForChild('Follow').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('Follow', true, L_5_)
- FollowAnim()
- IdleAnim()
- L_79_ = false
- end
- end)
- L_47_:WaitForChild('GetDown').MouseButton1Click:connect(function()
- if not L_79_ then
- L_79_ = true
- L_151_:FireServer('GetDown', true, L_5_)
- GetDownAnim()
- IdleAnim()
- L_79_ = false
- end
- end)
- L_47_:WaitForChild('Unsign').MouseButton1Click:connect(function()
- L_151_:FireServer('Unsign', true, L_5_)
- IdleAnim()
- L_79_ = false
- end)
- end)
- L_30_:WaitForChild('Trigger').MouseLeave:connect(function()
- if L_29_:FindFirstChild('RappelButton') then
- L_164_:Create(L_47_:WaitForChild('Count'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Count'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Count'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('GetDown'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('GetDown'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('GetDown'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Point'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Point'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Point'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Go'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Go'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Go'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Hold'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Hold'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Hold'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Follow'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Follow'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Follow'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Contact'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Contact'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Contact'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Unsign'), TweenInfo.new(0.3), {
- Position = UDim2.new(0, 0, 0, 0)
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Unsign'), TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_:WaitForChild('Unsign'), TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- end
- end)
- end;
- else
- L_4_.TargetFilter = workspace
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_46_, TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- BackgroundTransparency = 1
- }):Play()
- L_164_:Create(L_47_, TweenInfo.new(0.3), {
- TextTransparency = 1
- }):Play()
- end
- end;
- if L_356_arg1.KeyCode == Enum.KeyCode.F then
- L_81_ = 'Long'
- end;
- if L_356_arg1.KeyCode == Enum.KeyCode.G then
- L_81_ = 'Short'
- end;
- end
- end)
- L_165_.InputEnded:connect(function(L_362_arg1, L_363_arg2)
- if not L_363_arg2 then
- if L_362_arg1.KeyCode == Enum.KeyCode.F then
- L_81_ = 'None'
- end;
- if L_362_arg1.KeyCode == Enum.KeyCode.G then
- L_81_ = 'None'
- end;
- end
- end)
- L_165_.InputEnded:connect(function(L_364_arg1, L_365_arg2)
- if not L_365_arg2 and L_59_ and not L_79_ then
- if L_364_arg1.UserInputType == L_7_.ADSKeybind and not L_65_ and not L_73_ and not L_67_ then
- L_66_ = false;
- L_118_.SoundId = 'rbxassetid://' .. L_143_[math.random(1, #L_143_)]
- L_118_:Play()
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = 70
- }):Play()
- L_151_:FireServer('Aim', false, L_5_)
- end;
- if L_364_arg1.KeyCode == L_52_.AltAimKey and not L_65_ and not L_73_ and not L_67_ and L_66_ then
- L_66_ = false;
- L_118_.SoundId = 'rbxassetid://' .. L_143_[math.random(1, #L_143_)]
- L_118_:Play()
- L_164_:Create(L_3_, TweenInfo.new(L_7_.AimZoomSpeed), {
- FieldOfView = 70
- }):Play()
- L_151_:FireServer('Aim', false, L_5_)
- end;
- if L_364_arg1.UserInputType == L_7_.ShootKeybind and not L_65_ then
- L_62_ = false
- if L_70_ then
- L_70_ = false
- end
- end;
- if L_364_arg1.KeyCode == L_7_.SprintKey and not L_65_ and not L_73_ and not L_66_ then
- L_67_ = false
- L_151_:FireServer('Sprint', false, L_5_)
- end;
- if L_364_arg1.KeyCode == Enum.KeyCode.Q and L_87_ ~= 2 and not L_76_ then
- L_147_.dirPeek = 0
- Lean()
- end;
- if L_364_arg1.KeyCode == Enum.KeyCode.E and L_87_ ~= 2 and not L_76_ then
- L_147_.dirPeek = 0
- Lean()
- end;
- end
- end)
- L_165_.InputChanged:connect(function(L_366_arg1, L_367_arg2)
- if not L_367_arg2 then
- if L_366_arg1.UserInputType == Enum.UserInputType.MouseMovement then
- L_144_.Rotate(L_366_arg1)
- end
- end
- end)
- --// Misc Connections
- L_131_.Changed:connect(function()
- if L_68_ then
- L_131_.Jump = false
- end
- end)
- --// Event Connections
- L_151_.OnClientEvent:connect(function(L_368_arg1, L_369_arg2, L_370_arg3, L_371_arg4, L_372_arg5, L_373_arg6, L_374_arg7, L_375_arg8)
- if L_368_arg1.Character:FindFirstChild('BasePart') and L_368_arg1.Character.BasePart:FindFirstChild('BasePartW') and L_368_arg1.Character.BasePart:FindFirstChild('RAW') and L_368_arg1.Character.BasePart:FindFirstChild('LAW') then
- L_368_arg1 = L_368_arg1
- local L_376_
- if L_369_arg2 then
- L_376_ = require(L_369_arg2)
- end
- if L_370_arg3 == 'Aim' and L_376_ then
- if L_371_arg4 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.6), {
- C1 = L_376_.RightAimPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.6), {
- C1 = L_376_.LeftAimPos
- }):Play()
- else
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.6), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.6), {
- C1 = L_376_.LeftArmPos
- }):Play()
- end
- end;
- if L_370_arg3 == 'Sprint' and L_376_ then
- if L_371_arg4 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.6), {
- C1 = L_376_.RightSprintPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.6), {
- C1 = L_376_.LeftSprintPos
- }):Play()
- else
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.6), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.6), {
- C1 = L_376_.LeftArmPos
- }):Play()
- end
- end;
- if L_370_arg3 == 'Patrol' and L_376_ then
- if L_371_arg4 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.6), {
- C1 = L_376_.RightSprintPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.6), {
- C1 = L_376_.LeftSprintPos
- }):Play()
- else
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.6), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.6), {
- C1 = L_376_.LeftArmPos
- }):Play()
- end
- end;
- if L_370_arg3 == 'Hold' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, -0.0879218578, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = CFrame.new(1.42515647, -0.487921864, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.1)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.17), {
- C1 = CFrame.new(1.42515647, -0.287921846, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- end;
- if L_370_arg3 == 'Go' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, -0.287921846, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, 1.31207824, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, -3.24785979e-05, -2.81780958e-05, 1.00000012, 4.13964772e-05, -1.00000012, -2.81780958e-05)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, -0.287921846, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, 1.31207824, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, -3.24785979e-05, -2.81780958e-05, 1.00000012, 4.13964772e-05, -1.00000012, -2.81780958e-05)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, -0.287921846, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, 1.31207824, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, -3.24785979e-05, -2.81780958e-05, 1.00000012, 4.13964772e-05, -1.00000012, -2.81780958e-05)
- }):Play()
- wait(0.29)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.29), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = L_376_.LeftArmPos
- }):Play()
- wait(0.29)
- end;
- if L_370_arg3 == 'Point' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, 1.31207824, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, -3.24785979e-05, -2.81780958e-05, 1.00000012, 4.13964772e-05, -1.00000012, -2.81780958e-05)
- }):Play()
- wait(0.19)
- end;
- if L_370_arg3 == 'Contact' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, -0.287921846, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, 1.31207824, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, -3.24785979e-05, -2.81780958e-05, 1.00000012, 4.13964772e-05, -1.00000012, -2.81780958e-05)
- }):Play()
- wait(0.7)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.29), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = L_376_.LeftArmPos
- }):Play()
- wait(0.29)
- end;
- if L_370_arg3 == 'Count' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, -0.687921882, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, 3.51277231e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, -0.687921882, -1.33148706, 1, 4.13805246e-05, 3.24845314e-05, 2.77916406e-05, -0.939702392, 0.341993541, 4.46783233e-05, -0.341993541, -0.939702392)
- }):Play()
- wait(0.8)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, -0.687921882, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, 3.51277231e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, -0.687921882, -1.33148706, 1, 4.13805246e-05, 3.24845314e-05, 2.77916406e-05, -0.939702392, 0.341993541, 4.46783233e-05, -0.341993541, -0.939702392)
- }):Play()
- wait(0.8)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, -0.687921882, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, 3.51277231e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, -0.687921882, -1.33148706, 1, 4.13805246e-05, 3.24845314e-05, 2.77916406e-05, -0.939702392, 0.341993541, 4.46783233e-05, -0.341993541, -0.939702392)
- }):Play()
- wait(0.8)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, -0.287921846, -0.33148706, 1, 4.13805246e-05, 3.24845314e-05, 3.51277195e-05, -0.984812737, 0.173620492, 3.91735994e-05, -0.173620492, -0.984812737)
- }):Play()
- wait(0.19)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.29), {
- C1 = CFrame.new(1.42515647, 1.31207824, -0.931487083, 1, 4.13805246e-05, 3.24845314e-05, -3.24785979e-05, -2.81780958e-05, 1.00000012, 4.13964772e-05, -1.00000012, -2.81780958e-05)
- }):Play()
- wait(0.7)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.29), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = L_376_.LeftArmPos
- }):Play()
- wait(0.29)
- end;
- if L_370_arg3 == 'Follow' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, 0.912078142, 0.868513107, 0.0593499169, 0.99822557, -0.00485247374, -0.0103461444, 0.00547589269, 0.999931514, 0.998183548, -0.0592956617, 0.0106527954)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, 0.512078226, 0.868513107, 0.0388142988, 0.768204987, 0.639026344, -0.0460749976, -0.637452185, 0.769111097, 0.998183548, -0.0592956617, 0.0106527954)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, 0.912078142, 0.868513107, 0.0593499169, 0.99822557, -0.00485247374, -0.0103461444, 0.00547589269, 0.999931514, 0.998183548, -0.0592956617, 0.0106527954)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, 0.512078226, 0.868513107, 0.0388142988, 0.768204987, 0.639026344, -0.0460749976, -0.637452185, 0.769111097, 0.998183548, -0.0592956617, 0.0106527954)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, 0.912078142, 0.868513107, 0.0593499169, 0.99822557, -0.00485247374, -0.0103461444, 0.00547589269, 0.999931514, 0.998183548, -0.0592956617, 0.0106527954)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(1.42515647, 0.512078226, 0.868513107, 0.0388142988, 0.768204987, 0.639026344, -0.0460749976, -0.637452185, 0.769111097, 0.998183548, -0.0592956617, 0.0106527954)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.29), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = L_376_.LeftArmPos
- }):Play()
- wait(0.29)
- end;
- if L_370_arg3 == 'GetDown' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(-0.974843323, 0.512078226, -1.13148689, -0.0388143212, -0.768204987, -0.639026344, -0.0460749976, -0.637452185, 0.769111097, -0.998183548, 0.0592956766, -0.0106527805)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(-0.974843323, 0.712078214, -1.13148689, -0.0566516817, -0.984011054, -0.168857515, -0.0204949565, -0.167947322, 0.985582829, -0.998183548, 0.0592956766, -0.0106527805)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(-0.974843323, 0.512078226, -1.13148689, -0.0388143212, -0.768204987, -0.639026344, -0.0460749976, -0.637452185, 0.769111097, -0.998183548, 0.0592956766, -0.0106527805)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(-0.974843323, 0.712078214, -1.13148689, -0.0566516817, -0.984011054, -0.168857515, -0.0204949565, -0.167947322, 0.985582829, -0.998183548, 0.0592956766, -0.0106527805)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(-0.974843323, 0.512078226, -1.13148689, -0.0388143212, -0.768204987, -0.639026344, -0.0460749976, -0.637452185, 0.769111097, -0.998183548, 0.0592956766, -0.0106527805)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.2), {
- C1 = CFrame.new(-0.974843323, 0.712078214, -1.13148689, -0.0566516817, -0.984011054, -0.168857515, -0.0204949565, -0.167947322, 0.985582829, -0.998183548, 0.0592956766, -0.0106527805)
- }):Play()
- wait(0.2)
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.29), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = L_376_.LeftArmPos
- }):Play()
- wait(0.29)
- end;
- if L_370_arg3 == 'Unsign' then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('RAW'), TweenInfo.new(0.29), {
- C1 = L_376_.RightArmPos
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('LAW'), TweenInfo.new(0.14), {
- C1 = L_376_.LeftArmPos
- }):Play()
- wait(0.29)
- end;
- if L_370_arg3 == 'Lean' then
- if L_374_arg7 == 1 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('HumanoidRootPart'):WaitForChild('RootJoint'), TweenInfo.new(0.6), {
- C1 = CFrame.new(0.200000003, 0, 0, -0.98480773, 0, 0.173648179, 0.173648179, 0, 0.98480773, 0, 1, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Right Hip'), TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Left Hip'), TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, -0.173648179, -0.98480773, 0, 0.98480773, -0.173648179, 1, 0, 0)
- }):Play()
- elseif L_374_arg7 == -1 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('HumanoidRootPart'):WaitForChild('RootJoint'), TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.200000003, 0, 0, -0.98480773, 0, -0.173648179, -0.173648179, 0, 0.98480773, 0, 1, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Right Hip'), TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0.173648179, 0.98480773, 0, 0.98480773, -0.173648179, -1, 0, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Left Hip'), TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- elseif L_374_arg7 == 0 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('HumanoidRootPart'):WaitForChild('RootJoint'), TweenInfo.new(0.6), {
- C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Right Hip'), TweenInfo.new(0.6), {
- C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Left Hip'), TweenInfo.new(0.6), {
- C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- end
- end;
- if L_370_arg3 == 'Shoot' then
- if L_371_arg4 and L_376_ then
- if L_368_arg1.Character:FindFirstChild('BasePart') and L_368_arg1.Character.BasePart:FindFirstChild('BasePartW') then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('BasePartW'), TweenInfo.new(L_373_arg6), {
- C1 = L_376_.ShootPos
- }):Play()
- end
- wait(L_373_arg6 * 2)
- if L_368_arg1.Character:FindFirstChild('BasePart') and L_368_arg1.Character.BasePart:FindFirstChild('BasePartW') then
- L_164_:Create(L_368_arg1.Character:WaitForChild('BasePart'):WaitForChild('BasePartW'), TweenInfo.new(0.2), {
- C1 = CFrame.new()
- }):Play()
- end
- end;
- end;
- end
- if L_370_arg3 == 'Stance' and L_368_arg1.Character and L_368_arg1.Character:FindFirstChild('Humanoid') and L_368_arg1.Character.Humanoid.Health > 0 then
- if L_372_arg5 == 0 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('HumanoidRootPart'):WaitForChild('RootJoint'), TweenInfo.new(0.6), {
- C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Right Hip'), TweenInfo.new(0.6), {
- C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Left Hip'), TweenInfo.new(0.6), {
- C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- }):Play()
- elseif L_372_arg5 == 1 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('HumanoidRootPart'):WaitForChild('RootJoint'), TweenInfo.new(0.6), {
- C0 = CFrame.new(0, -1.20000005, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Right Hip'), TweenInfo.new(0.6), {
- C0 = CFrame.new(1.00000191, -0.93054074, -0.393920898, 0, 0, 1, -0.98480773, 0.173648179, 0, -0.173648179, -0.98480773, 0)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Left Hip'), TweenInfo.new(0.6), {
- C0 = CFrame.new(-1, 0.165270448, -0.603042603, 0, 0, -1, -0.173648179, 0.98480773, 0, 0.98480773, 0.173648179, 0)
- }):Play()
- elseif L_372_arg5 == 2 then
- L_164_:Create(L_368_arg1.Character:WaitForChild('HumanoidRootPart'):WaitForChild('RootJoint'), TweenInfo.new(0.6), {
- C0 = CFrame.new(0, -2.5999999, 0, -1, 0, 0, 0, 1, 1.19248806e-08, 0, 1.19248806e-08, -1)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Right Hip'), TweenInfo.new(0.6), {
- C0 = CFrame.new(1, -1, 2.98023224e-08, 0.163175702, -0.342020363, 0.925416529, 0.0593911409, 0.939692557, 0.336824328, -0.984807789, 0, 0.17364797)
- }):Play()
- L_164_:Create(L_368_arg1.Character:WaitForChild('Torso'):WaitForChild('Left Hip'), TweenInfo.new(0.6), {
- C0 = CFrame.new(-1, -1, 2.98023224e-08, 0.163175896, 0.342020363, -0.92541647, -0.0593912117, 0.939692557, 0.336824298, 0.98480773, 0, 0.173648179)
- }):Play()
- end
- end;
- end)
- L_157_.OnClientEvent:connect(function(L_377_arg1, L_378_arg2)
- if L_48_ then
- if L_52_.OverlayEnabled then
- if (L_2_.HumanoidRootPart.Position - L_377_arg1).magnitude <= 10 then
- L_45_.Visible = true
- L_164_:Create(L_45_, TweenInfo.new(0.1), {
- BackgroundTransparency = 0.4
- }):Play()
- delay(0.1, function()
- L_164_:Create(L_45_, TweenInfo.new(3), {
- BackgroundTransparency = 1
- }):Play()
- end)
- end
- end;
- end;
- end)
- L_158_.OnClientEvent:connect(function(L_379_arg1, L_380_arg2, L_381_arg3, L_382_arg4, L_383_arg5, L_384_arg6, L_385_arg7)
- if L_1_ ~= L_379_arg1 then
- CreateExternalBullet(L_380_arg2, L_381_arg3, L_382_arg4, L_383_arg5, L_384_arg6, L_385_arg7)
- end
- end)
- L_159_.OnClientEvent:connect(function(L_386_arg1, L_387_arg2, L_388_arg3)
- if L_52_.KillfeedEnabled then
- local L_389_ = false
- local L_390_ = L_50_:clone()
- L_390_.Parent = L_51_
- L_390_.Visible = true
- table.insert(L_145_, 1, L_390_)
- if #L_145_ >= L_52_.MaxFeed + 1 then
- table.remove(L_145_, #L_145_):Destroy()
- end
- if game.Players:FindFirstChild(L_387_arg2) then
- L_389_ = true
- end
- L_390_:WaitForChild('KillBy').Text = L_388_arg3
- if L_387_arg2 ~= '' then
- L_390_:WaitForChild('KillerLabel').Text = L_386_arg1
- L_390_:WaitForChild('DeadLabel').Text = L_387_arg2
- if L_52_.DefaultColorEnabled then
- L_390_.KillerLabel.TextColor3 = L_52_.DefaultFeedColor.Color
- L_390_.DeadLabel.TextColor3 = L_52_.DefaultFeedColor.Color
- else
- L_390_.KillerLabel.TextColor3 = game.Players[L_386_arg1].TeamColor.Color
- if L_389_ then
- L_390_.DeadLabel.TextColor3 = game.Players[L_387_arg2].TeamColor.Color
- else
- L_390_.DeadLabel.TextColor3 = BrickColor.new('Bright red').Color
- end
- end;
- else
- L_390_:WaitForChild('KillerLabel').Text = L_386_arg1
- L_390_:WaitForChild('DeadLabel').Text = 'Bot ' .. math.random(1, 100)
- if L_52_.DefaultColorEnabled then
- L_390_.KillerLabel.TextColor3 = L_52_.DefaultFeedColor.Color
- L_390_.DeadLabel.TextColor3 = L_52_.DefaultFeedColor.Color
- else
- L_390_.KillerLabel.TextColor3 = game.Players[L_386_arg1].TeamColor.Color
- L_390_.DeadLabel.TextColor3 = BrickColor.new('Bright red').Color
- end;
- end;
- end
- end)
- --// Animations
- local L_193_
- function IdleAnim(L_391_arg1)
- L_7_.IdleAnim(L_2_, L_193_, {
- L_104_,
- L_109_,
- L_111_,
- L_122_.GripW
- });
- end;
- function EquipAnim(L_392_arg1)
- L_7_.EquipAnim(L_2_, L_193_, {
- L_104_
- });
- end;
- function UnequipAnim(L_393_arg1)
- L_7_.UnequipAnim(L_2_, L_193_, {
- L_104_
- });
- end;
- function FireModeAnim(L_394_arg1)
- L_7_.FireModeAnim(L_2_, L_193_, {
- L_104_,
- L_111_,
- L_109_,
- L_122_
- });
- end
- function ReloadAnim(L_395_arg1)
- L_7_.ReloadAnim(L_2_, L_193_, {
- L_104_,
- L_109_,
- L_111_,
- L_130_,
- L_110_,
- L_122_,
- L_129_,
- L_108_,
- L_122_.GripW,
- L_6_,
- L_128_,
- L_21_,
- L_7_.Ammo
- });
- end;
- function BoltingBackAnim(L_396_arg1)
- L_7_.BoltingBackAnim(L_2_, L_193_, {
- L_129_
- });
- end
- function BoltingForwardAnim(L_397_arg1)
- L_7_.BoltingForwardAnim(L_2_, L_193_, {
- L_129_
- });
- end
- function BoltBackAnim(L_398_arg1)
- L_7_.BoltBackAnim(L_2_, L_193_, {
- L_129_,
- L_111_,
- L_109_,
- L_104_,
- L_128_,
- L_108_,
- L_110_,
- L_122_,
- L_122_.GripW
- });
- end
- function BoltForwardAnim(L_399_arg1)
- L_7_.BoltForwardAnim(L_2_, L_193_, {
- L_129_,
- L_111_,
- L_109_,
- L_104_,
- L_128_,
- L_108_,
- L_110_,
- L_122_,
- L_122_.GripW
- });
- end
- --[[function InspectAnim(InspectAnim)
- config.InspectAnim(char, speed, {LAW, RAW});
- end]]--
- function nadeReload(L_400_arg1)
- L_7_.nadeReload(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function PatrolAnim(L_401_arg1)
- L_7_.PatrolAnim(L_2_, L_193_, {
- L_104_,
- L_109_,
- L_111_
- });
- end
- function AttachRopeAnim(L_402_arg1)
- L_52_.AttachRopeAnim(L_2_, L_193_, {
- L_109_,
- L_111_,
- L_133_,
- L_82_
- });
- end
- function ContactAnim(L_403_arg1)
- L_52_.ContactAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function CountAnim(L_404_arg1)
- L_52_.CountAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function FollowAnim(L_405_arg1)
- L_52_.FollowAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function GetDownAnim(L_406_arg1)
- L_52_.GetDownAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function GoAnim(L_407_arg1)
- L_52_.GoAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function HoldAnim(L_408_arg1)
- L_52_.HoldAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function PointAnim(L_409_arg1)
- L_52_.PointAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
- function InspectAnim(L_410_arg1)
- L_52_.InspectAnim(L_2_, L_193_, {
- L_109_,
- L_111_
- });
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement