Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Services
- local ts = game:GetService('TweenService')
- local ss = game:GetService('SoundService')
- --// Module
- local module = {
- ---------------// Global Settings \\---------------
- --// Ammo Config
- Ammo = 30;
- StoredAmmo = 60;
- MagCount = math.huge;
- RoundType = '5.56x45mm';
- --// Aim Config
- AimZoom = 65;
- AltAimZoom = 60;
- AimZoomSpeed = 0.5;
- AimSpeedMult = 10;
- --// Firing Config
- BurstNum = 3; -- Number of bullets per burst
- Firerate = 60 / 720; -- 60 = 1 Minute, 700 = Rounds per that 60 seconds. DO NOT TOUCH THE 60!
- FireMode = 2; -- 1 = Semi, 2 = Auto, 3 = Burst, 4 = Bolt Action, 5 = Explosive (Explosive is currently disabled)
- ShotCount = 5; -- Number of pellets per shot round
- CanSelectFire = true;
- SemiEnabled = true;
- AutoEnabled = true;
- BurstEnabled = true;
- BoltAction = false;
- ExplosiveEnabled = false;
- ShotEnabled = false;
- --// Damage Stats
- Head = 100;
- Base = 40;
- Limbs = 35;
- --// Bullet Physics
- ShotSpread = 2; -- Amount of Spread when Shot is Enabled
- AimedShotSpread = 1; -- Amount of spread when shot is enabled and aiming
- BulletSpread = 1; -- Amount of Spread
- AimedBulletSpread = 0.25; -- Amount of Aimed Spread
- --// Recoil Configurations
- gunRecoilMin = 20; -- How much the gun recoils backwards when not aiming
- gunRecoilMax = 35; -- How much the gun recoils backwards when not aiming
- AimGunRecoilMin = 8; -- How much the gun recoils backwards when aiming
- AimGunRecoilMax = 13; -- How much the gun recoils backwards when aiming
- KickbackMin = 3; -- Upward gun rotation when not aiming
- KickbackMax = 4; -- Upward gun rotation when not aiming
- AimKickbackMin = 1.5; -- Upward gun rotation when aiming
- AimKickbackMax = 2; -- Upward gun rotation when aiming
- SideKickMin = -1;
- SideKickMax = 1;
- AimSideKickMin = -0.5;
- AimSideKickMax = 0.5;
- camRecoilX = 20;
- camRecoilY = 20;
- camRecoilZ = 20;
- aimCamRecoilX = 8;
- aimCamRecoilY = 8;
- aimCamRecoilZ = 12;
- --// Other Configs
- CanBolt = true;
- CanSlideLock = false;
- --// Laser Config
- LaserColor = BrickColor.new('Persimmon');
- LaserEmission = 1;
- LaserInfluence = 0;
- LaserTransparency = NumberSequence.new(0.3);
- --// Viewport Configs
- HUDPortPos = CFrame.Angles(0,math.rad(-90),0) * CFrame.new(-0.5,0.2,1.5);
- HUDKillPortPos = CFrame.Angles(0,math.rad(-90),0) * CFrame.new(-0.5,0.2,1.5);
- ---------------// Third Person Settings \\---------------
- ----------// R6 Settings \\----------
- --// Positioning
- R6RightArmPosC0 = CFrame.new(-0.200000763, -0.399999857, 1.69999695, 1, 4.23704588e-33, 2.11852294e-33, 4.23704588e-33, 1, 0, 2.11852294e-33, 0, 1);
- R6RightArmPosC1 = CFrame.new(-0.5, 0.899999976, 0, 0.99999994, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08);
- R6LeftArmPosC0 = CFrame.new(-0.633024216, -0.559508562, 0.402908325, 0.8660537, -0.499951005, -1.33365393e-05, -0.129406273, -0.224141717, -0.965926707, 0.482913077, 0.836546123, -0.258815527);
- R6LeftArmPosC1 = CFrame.new(0.5, 0.899999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R6GunPosC0 = CFrame.new(0.900001526, -0.800000429, -1.00000763, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R6GunPosC1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R6HolsterPos = CFrame.new(0.141421318, -0.0242638588, -0.599998474, -4.37113883e-08, -0.70710665, 0.707106888, 0, 0.707106829, 0.70710659, -1, 3.09086126e-08, -3.09086268e-08) ;
- R6SprintPos = CFrame.new(-0.144908816, -0.228167713, 0.312184274, 0.388552725, -0.336824059, 0.857657492, 0.196174651, 0.939692616, 0.280166537, -0.900301218, 0.0593911707, 0.431196511);
- --/ Customization
- R6HolstPart = 'Torso';
- R6SprintWalkIntensity = 0.18;
- R6SprintWalkAnimSpeed = 15;
- --// Animations
- R6IdleAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R6GunPosC0}):Play()
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R6GunPosC1}):Play()
- ts:Create(objs[2],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R6RightArmPosC0}):Play()
- ts:Create(objs[2],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R6RightArmPosC1}):Play()
- ts:Create(objs[3],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R6LeftArmPosC0}):Play()
- ts:Create(objs[3],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R6LeftArmPosC1}):Play()
- ts:Create(objs[4],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- wait(0.25)
- end;
- R6SprintAnim = function(char,objs)
- end;
- R6AimAnim = function(char,objs)
- end;
- R6unAimAnim = function(char,objs)
- end;
- R6FireSelectAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.99619472, -0.087155737, 0, 0.087155737, 0.99619472, 0, 0, 0, 1)}):Play()
- ts:Create(objs[2],TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(-0.5, 0.899999976, 0.100000001, 1, 0, 0, 0, 0, 1, 0, -1, 0)}):Play()
- objs[5]:WaitForChild('Grip'):WaitForChild('Click'):Play()
- wait(0.1)
- end;
- R6ReloadAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, -0.411136597, 0.100000001, 0.965925813, -0.258819044, 0, 0.243210346, 0.907673359, 0.342020124, -0.0885213241, -0.330366075, 0.939692616)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.778897762, 0.677004576, -0.257680714, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616, 0, 0, 0, 1)}):Play()
- wait(0.5)
- local magC = objs[5]:WaitForChild('Mag'):Clone()
- magC.Parent = objs[5]
- magC.Name = 'MagC'
- for _,v in pairs(objs[5]:WaitForChild('Mag'):GetDescendants()) do
- if v and v:IsA('BasePart') then
- v:SetAttribute('LastTrans', v.Transparency)
- v.Transparency = 1
- end;
- end;
- objs[5]:WaitForChild('Mag').Transparency = 1
- local magCW = Instance.new('WeldConstraint')
- magCW.Parent = magC
- magCW.Part0 = magC
- magCW.Part1 = char:WaitForChild('Left Arm')
- magC.Mag:Destroy()
- ss:PlayLocalSound(objs[5]:WaitForChild('Grip'):WaitForChild('MagOut'))
- ts:Create(objs[1],TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, -0.210271925, 0.100000001, 0.965925813, -0.258819044, 0, 0.254886985, 0.951251209, 0.173648372, -0.0449435003, -0.167731434, 0.98480767)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.20000005, -2.01165676e-07, -1.5999999, 1, 0, 0, 0, 0.0871559232, -0.996194661, 0, 0.996194661, 0.0871559232)}):Play()
- wait(0.15)
- ts:Create(objs[1],TweenInfo.new(0.8,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out),{C1 = CFrame.new(0, -0.475943327, 0.100000001, 0.965925813, -0.258819044, 0, 0.243210331, 0.907673299, 0.342020333, -0.0885213688, -0.330366254, 0.939692557)}):Play()
- wait(0.35)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, -0.578590989, 0.100000001, 0.906990528, -0.420070022, -0.0301537234, 0.404579937, 0.849180579, 0.339422107, -0.116975091, -0.320052207, 0.940150678)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.551335156, 0.657050908, -0.881087601, 0.953947425, 0.270688057, 0.129274964, -0.285736799, 0.951150835, 0.116902903, -0.0913157761, -0.148457721, 0.984693825)}):Play()
- wait(0.1)
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.67829597, 0.738943696, -0.514886916, 0.953947425, 0.270688057, 0.129274964, -0.285736799, 0.951150835, 0.116902903, -0.0913157761, -0.148457721, 0.984693825)}):Play()
- wait(0.25)
- ss:PlayLocalSound(objs[5]:WaitForChild('Grip'):WaitForChild('MagIn'))
- ts:Create(objs[1],TweenInfo.new(0.4,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(-0.113398686, -0.577261984, 0.308594972, 0.943201959, -0.327689976, -0.0546732172, 0.30945456, 0.806719899, 0.503428996, -0.120862633, -0.491754115, 0.862305045)}):Play()
- wait(0.3)
- magC:Destroy()
- objs[5]:WaitForChild('Mag').Transparency = 0
- for _,v in pairs(objs[5]:WaitForChild('Mag'):GetDescendants()) do
- if v and v:IsA('BasePart') then
- v.Transparency = v:GetAttribute('LastTrans')
- end;
- end;
- end;
- R6BoltBackAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.24516189, 0.271353781, 0.163031191, 0.087155804, 0, 0.99619472, 0, 1, 0, -0.99619472, 0, 0.087155804)}):Play()
- wait(0.5)
- objs[5]:WaitForChild('Bolt'):WaitForChild('BoltBack'):Play()
- ts:Create(objs[1],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.300000012, 1, 0, 0, 0, 0.939692557, 0.342020124, 0, -0.342020124, 0.939692557)}):Play()
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.400000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.24516189, -0.128646225, 0.446238458, 0.087155804, 0, 0.99619472, 0, 1, 0, -0.99619472, 0, 0.087155804)}):Play()
- wait(0.25)
- end;
- R6BoltForwardAnim = function(char,objs)
- objs[5]:WaitForChild('Bolt'):WaitForChild('BoltForward'):Play()
- ts:Create(objs[1],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.600000024, 0.98480773, 0.173648164, 5.175119e-09, -0.173648179, 0.984807611, 2.93495575e-08, 0, -2.98023224e-08, 0.999999881)}):Play()
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- ts:Create(objs[3],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.24516189, 0.271353781, 0.246238455, 0.087155804, 0, 0.99619472, 0, 1, 0, -0.99619472, 0, 0.087155804)}):Play()
- wait(0.3)
- end;
- R6ActionBackAnim = function(char,objs)
- if objs[5]:FindFirstChild('Action') then
- ts:Create(objs[5]:WaitForChild('Action'):WaitForChild('Action'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.300000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- else
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.300000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- end;
- end;
- R6ActionForwardAnim = function(char,objs)
- if objs[5]:FindFirstChild('Action') then
- ts:Create(objs[5]:WaitForChild('Action'):WaitForChild('Action'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- else
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- end;
- end;
- ----------// R15 Settings \\----------
- --// Positioning
- R15RightShoulderPosC0 = CFrame.new(-0.199996948, 0, 1.40000153, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15RightShoulderPosC1 = CFrame.new(-0.5, 0.5, 0, 1, 0, 0, 0, 0.766044438, 0.642787576, 0, -0.642787576, 0.766044438);
- R15RightElbowPosC0 = CFrame.new(-5.96046448e-07, -0.334165096, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15RightElbowPosC1 = CFrame.new(1.1920929e-07, 0.258579493, 0, 1, 0, 0, 0, 0.4226183, 0.906307757, 0, -0.906307757, 0.4226183);
- R15RightWristPosC0 = CFrame.new(1.1920929e-07, -0.5009287, -6.86244753e-18, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15RightWristPosC1 = CFrame.new(3.57627869e-07, 0.125045404, 5.96046448e-08, 1, 0, 0, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813);
- R15LeftShoulderPosC0 = CFrame.new(-0.76171875, -0.691240072, 0.405693054, 0.821578026, -0.465466142, -0.329166889, -0.416224599, -0.095187664, -0.904265642, 0.389572442, 0.879932165, -0.271942616);
- R15LeftShoulderPosC1 = CFrame.new(0.5, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15LeftElbowPosC0 = CFrame.new(0.000479221344, -0.334056377, 8.94069672e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15LeftElbowPosC1 = CFrame.new(0.000478625298, 0.258688211, 0, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697);
- R15LeftWristPosC0 = CFrame.new(0.000478625298, -0.5009287, 7.64462551e-20, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15LeftWristPosC1 = CFrame.new();
- R15GunPosC0 = CFrame.new(0.900001526, -0.800000429, -1.00000763, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15GunPosC1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- R15HolsterPos = CFrame.new(0.141421318, -0.141421318, -0.599998474, -4.37113883e-08, -0.707106769, 0.707106769, 0, 0.707106709, 0.707106709, -1, 3.09086197e-08, -3.09086197e-08);
- R15SprintPos = CFrame.new(-0.200000107, -0.400000095, 0.600000024, 0.433012605, -0.5, 0.75, 0.249999955, 0.866025388, 0.433012724, -0.866025448, 0, 0.499999911);
- --/ Customization
- R15HolstPart = 'UpperTorso';
- --// Configurations
- R15SprintWalkIntensity = 0.18;
- R15SprintWalkAnimSpeed = 15;
- --// Animations
- R15IdleAnim = function(char,objs)
- print(objs[3].Parent:WaitForChild('LeftElbow').Name)
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15GunPosC0}):Play()
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15GunPosC1}):Play()
- ts:Create(objs[2],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15RightShoulderPosC0}):Play()
- ts:Create(objs[2],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15RightShoulderPosC1}):Play()
- ts:Create(objs[2].Parent:WaitForChild('RightElbow'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15RightElbowPosC0}):Play()
- ts:Create(objs[2].Parent:WaitForChild('RightElbow'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15RightElbowPosC1}):Play()
- ts:Create(objs[2].Parent:WaitForChild('RightWrist'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15RightWristPosC0}):Play()
- ts:Create(objs[2].Parent:WaitForChild('RightWrist'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15RightWristPosC1}):Play()
- ts:Create(objs[3],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15LeftShoulderPosC0}):Play()
- ts:Create(objs[3],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15LeftShoulderPosC1}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15LeftElbowPosC0}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15LeftElbowPosC1}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftWrist'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).R15LeftWristPosC0}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftWrist'),TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).R15LeftWristPosC1}):Play()
- ts:Create(objs[4],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- wait(0.25)
- end;
- R15SprintAnim = function(char,objs)
- end;
- R15AimAnim = function(char,objs)
- end;
- R15unAimAnim = function(char,objs)
- end;
- R15FireSelectAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.99619472, -0.087155737, 0, 0.087155737, 0.99619472, 0, 0, 0, 1)}):Play()
- ts:Create(objs[4].Parent:WaitForChild('RightElbow'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.1920929e-07, 0.258579493, 0, 1, 0, 0, 0, 0.258819312, 0.965925753, 0, -0.965925753, 0.258819312)}):Play()
- objs[5]:WaitForChild('Grip'):WaitForChild('Click'):Play()
- wait(0.1)
- end;
- R15ReloadAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.5, 0.400000006, 0, 0.98480773, 0.157378703, -0.0733868629, -0.173648179, 0.892538965, -0.416197568, 0, 0.422618091, 0.906307817)}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.000478625298, 0.258688211, 0, 1, 0, 0, 0, 0.64276731, 0.766061425, 0, -0.766061425, 0.64276731)}):Play()
- wait(0.5)
- local magC = objs[5]:WaitForChild('Mag'):Clone()
- magC.Parent = objs[5]
- magC.Name = 'MagC'
- for _,v in pairs(objs[5]:WaitForChild('Mag'):GetDescendants()) do
- if v and v:IsA('BasePart') then
- v:SetAttribute('LastTrans', v.Transparency)
- v.Transparency = 1
- end;
- end;
- objs[5]:WaitForChild('Mag').Transparency = 1
- local magCW = Instance.new('WeldConstraint')
- magCW.Parent = magC
- magCW.Part0 = magC
- magCW.Part1 = char:WaitForChild('LeftHand')
- magC.Mag:Destroy()
- ss:PlayLocalSound(objs[5]:WaitForChild('Grip'):WaitForChild('MagOut'))
- ts:Create(objs[1],TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0.300000012, 0, 0.965925813, -0.258819044, 0, 0.254886985, 0.951251209, -0.173648179, 0.0449434556, 0.167731255, 0.98480773)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.10000002, 0.899999976, -0.400000006, 0.98480773, 0.157378703, -0.0733868629, 0.0301536825, -0.57118535, -0.820267081, -0.171010077, 0.805592477, -0.567253292)}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.000478625298, 0.258688211, 0, 1, 0, 0, 0, 0.98480314, 0.173674047, 0, -0.173674047, 0.98480314)}):Play()
- wait(0.15)
- ts:Create(objs[1],TweenInfo.new(0.8,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out),{C1 = CFrame.new(0, 7.4505806e-09, 0, 0.965925813, -0.258819044, 0, 0.257834136, 0.962250173, 0.087155506, -0.0225575007, -0.0841857642, 0.996194661)}):Play()
- wait(0.35)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.200000003, 0.200000018, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813, -2.23517418e-07, 6.14672899e-08, 2.08616257e-07, 0.99999994)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.333106846, 0.860069692, 7.4505806e-09, 0.989095569, -0.00648961961, 0.147131592, 0.0897039324, 0.818875194, -0.566918433, -0.116803318, 0.573934853, 0.8105281)}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.000478625298, 0.258688211, 0, 1, 0, 0, 0, 0.25879401, 0.965932488, 0, -0.965932488, 0.25879401)}):Play()
- wait(0.1)
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.518853426, 0.388986677, 0.305201918, 0.993104994, 0.114937618, 0.0230629183, -0.0626223385, 0.686450839, -0.724474728, -0.0991009474, 0.718035102, 0.688915431)}):Play()
- wait(0.25)
- ss:PlayLocalSound(objs[5]:WaitForChild('Grip'):WaitForChild('MagIn'))
- ts:Create(objs[1],TweenInfo.new(0.4,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.200000003, 0.131062716, 0, 0.965925813, -0.258819044, 0, 0.257834166, 0.962250173, 0.087155506, -0.0225575026, -0.0841857642, 0.996194661)}):Play()
- wait(0.3)
- magC:Destroy()
- objs[5]:WaitForChild('Mag').Transparency = 0
- for _,v in pairs(objs[5]:WaitForChild('Mag'):GetDescendants()) do
- if v and v:IsA('BasePart') then
- v.Transparency = v:GetAttribute('LastTrans')
- end;
- end;
- end;
- R15BoltBackAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.625999451, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.966279447, -0.400367886, -0.316106498, 0.342020124, 0, 0.939692616, 0, 1, 0, -0.939692616, 0, 0.342020124)}):Play()
- wait(0.5)
- objs[5]:WaitForChild('Bolt'):WaitForChild('BoltBack'):Play()
- ts:Create(objs[1],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.425999463, 1, 0, 0, 0, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813)}):Play()
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.300000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.966279447, -0.600367963, -0.216106504, 0.342020124, 0, 0.939692616, 0, 1, 0, -0.939692616, 0, 0.342020124)}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.000478625298, 0.258688211, 0, 1, 0, 0, 0, 0.866012275, 0.500022769, 0, -0.500022769, 0.866012275)}):Play()
- wait(0.25)
- end;
- R15BoltForwardAnim = function(char,objs)
- objs[5]:WaitForChild('Bolt'):WaitForChild('BoltForward'):Play()
- ts:Create(objs[1],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.800000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- ts:Create(objs[3],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.966279447, -0.600367963, -0.216106504, 0.342020124, 0, 0.939692616, 0, 1, 0, -0.939692616, 0, 0.342020124)}):Play()
- ts:Create(objs[3].Parent:WaitForChild('LeftElbow'),TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.000478625298, 0.358688205, 0, 1, 0, 0, 0, 0.965919018, 0.258844435, 0, -0.258844435, 0.965919018)}):Play()
- wait(0.3)
- end;
- R15ActionBackAnim = function(char,objs)
- if objs[5]:FindFirstChild('Action') then
- ts:Create(objs[5]:WaitForChild('Action'):WaitForChild('Action'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.300000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- else
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.300000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- end;
- end;
- R15ActionForwardAnim = function(char,objs)
- if objs[5]:FindFirstChild('Action') then
- ts:Create(objs[5]:WaitForChild('Action'):WaitForChild('Action'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- else
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- end;
- end;
- ----------// Third Person Global Settings \\----------
- TPSRecoilAnim = function(char,objs)
- local result = math.random(1,5)
- local speed = 0.08
- if require(script).Firerate/2 < 0.08 then
- speed = require(script).Firerate/2
- end;
- if result == 1 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, -0.200000003, 1, 0, 0, 0, 0.999662876, 0.0259648059, 0, -0.0259648059, 0.999662876)}):Play()
- elseif result == 2 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, -0.300000012, 0.999426246, -0.0338702984, 0, 0.0338464342, 0.998722136, 0.0375300162, -0.00127115287, -0.037508484, 0.999295473)}):Play()
- elseif result == 3 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, -0.300000012, 0.99926424, 0.0383533314, 0, -0.0383458771, 0.999070048, 0.0197114106, 0.000755998248, -0.0196969081, 0.999805689)}):Play()
- elseif result == 4 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, -0.300000012, 0.999992311, 7.61571137e-05, -0.00391724566, 0, 0.999811053, 0.0194378216, 0.00391798606, -0.0194376726, 0.999803364)}):Play()
- elseif result == 5 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, -0.200000003, 0.999907613, -0.000129684398, 0.0135900769, 0, 0.999954462, 0.00954214577, -0.0135906963, -0.0095412638, 0.999862075)}):Play()
- end;
- delay(speed,function()
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).GunPosC1}):Play()
- end)
- end;
- ---------------// First Person Settings \\---------------
- --// Positioning
- RightArmPosC0 = CFrame.new(-0.200006485, -0.400001287, 2.79998016, 1.00000226, 3.7252903e-09, 4.07453626e-10, -4.07453626e-10, 5.9325248e-07, -1.00000441, -1.86264515e-09, 0.999997854, -6.80796802e-07);
- RightArmPosC1 = CFrame.new(-0.5, 1.39999998, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- LeftArmPosC0 = CFrame.new(-1.49166489, -0.89978838, 0.823638916, 0.819153905, -0.573577762, 0, -0.196175247, -0.280167252, -0.939696968, 0.538984299, 0.769749403, -0.342020035);
- LeftArmPosC1 = CFrame.new(0.5, 1.39999998, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- GunPosC0 = CFrame.new(0.599998474, -1.00000119, -1.19998169, 1.0000006, 0, 0, -5.82076609e-11, 1.00000095, 1.06170774e-07, 0, 1.06170774e-07, 0.999999642);
- GunPosC1 = CFrame.new(0, 0, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1);
- SprintPos = CFrame.new(0, 0.0433661044, 0, 0.469846278, -0.411645651, 0.780892015, 0.171010047, 0.910301507, 0.37697044, -0.866025448, -0.0435777716, 0.49809733);
- --// Configurations
- SprintWalkIntensity = 0.18;
- SprintWalkAnimSpeed = 15;
- --// Animations
- IdleAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).GunPosC0}):Play()
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).GunPosC1}):Play()
- ts:Create(objs[2],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).RightArmPosC0}):Play()
- ts:Create(objs[2],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).RightArmPosC1}):Play()
- ts:Create(objs[3],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).LeftArmPosC0}):Play()
- ts:Create(objs[3],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).LeftArmPosC1}):Play()
- ts:Create(objs[4],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- wait(0.25)
- end;
- SprintAnim = function(char,objs)
- end;
- AimAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = CFrame.new(0.600002289, -1.00001955, -1.72389984, 1, 3.70097695e-08, 1.7883815e-07, -3.70093787e-08, 1, -2.17832917e-06, -1.78838221e-07, 2.17832917e-06, 1)}):Play()
- end;
- unAimAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C0 = require(script).GunPosC0}):Play()
- end;
- FireSelectAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.99619472, -0.087155737, 0, 0.087155737, 0.99619472, 0, 0, 0, 1)}):Play()
- ts:Create(objs[2],TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(-0.5, 1.39999998, 0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- objs[5]:WaitForChild('Grip'):WaitForChild('Click'):Play()
- wait(0.1)
- end;
- RecoilAnim = function(char,objs)
- local result = math.random(1,5)
- local speed = 0.08
- if require(script).Firerate/2 < 0.08 then
- speed = require(script).Firerate/2
- end;
- if result == 1 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 1, 0, 0, 0, 0.999662876, 0.0259648059, 0, -0.0259648059, 0.999662876)}):Play()
- elseif result == 2 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.999426246, -0.0338702984, 0, 0.0338464342, 0.998722136, 0.0375300162, -0.00127115287, -0.037508484, 0.999295473)}):Play()
- elseif result == 3 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.99926424, 0.0383533314, 0, -0.0383458771, 0.999070048, 0.0197114106, 0.000755998248, -0.0196969081, 0.999805689)}):Play()
- elseif result == 4 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.999992311, 7.61571137e-05, -0.00391724566, 0, 0.999811053, 0.0194378216, 0.00391798606, -0.0194376726, 0.999803364)}):Play()
- elseif result == 5 then
- ts:Create(objs[1],TweenInfo.new(0.08,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.100000001, 0.999907613, -0.000129684398, 0.0135900769, 0, 0.999954462, 0.00954214577, -0.0135906963, -0.0095412638, 0.999862075)}):Play()
- end;
- delay(speed,function()
- ts:Create(objs[1],TweenInfo.new(0.2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = require(script).GunPosC1}):Play()
- end)
- end;
- ReloadAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, -0.411136597, 0.100000001, 0.965925813, -0.258819044, 0, 0.243210346, 0.907673359, 0.342020124, -0.0885213241, -0.330366075, 0.939692616)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.778897762, 0.677004576, -0.257680714, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616, 0, 0, 0, 1)}):Play()
- wait(0.5)
- local magC = objs[5]:WaitForChild('Mag'):Clone()
- magC.Parent = objs[5]
- magC.Name = 'MagC'
- for _,v in pairs(objs[5]:WaitForChild('Mag'):GetDescendants()) do
- if v and v:IsA('BasePart') then
- v:SetAttribute('LastTrans', v.Transparency)
- v.Transparency = 1
- end;
- end;
- objs[5]:WaitForChild('Mag').Transparency = 1
- local magCW = Instance.new('WeldConstraint')
- magCW.Parent = magC
- magCW.Part0 = magC
- magCW.Part1 = objs[3].Parent.Parent:WaitForChild('Left Arm')
- magC.Mag:Destroy()
- ss:PlayLocalSound(objs[5]:WaitForChild('Grip'):WaitForChild('MagOut'))
- ts:Create(objs[1],TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, -0.210271925, 0.100000001, 0.965925813, -0.258819044, 0, 0.254886985, 0.951251209, 0.173648372, -0.0449435003, -0.167731434, 0.98480767)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(-0.112400234, -0.266317219, -1.23102295, 0.996194661, -0.0871557593, 0, -0.0298090354, -0.340718776, -0.939692616, 0.0818996206, 0.936116695, -0.342020273)}):Play()
- wait(0.15)
- ts:Create(objs[1],TweenInfo.new(0.8,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out),{C1 = CFrame.new(0, -0.475943327, 0.100000001, 0.965925813, -0.258819044, 0, 0.243210331, 0.907673299, 0.342020333, -0.0885213688, -0.330366254, 0.939692557)}):Play()
- wait(0.35)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, -0.578590989, 0.100000001, 0.906990528, -0.420070022, -0.0301537234, 0.404579937, 0.849180579, 0.339422107, -0.116975091, -0.320052207, 0.940150678)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.551335156, 0.657050908, -0.881087601, 0.953947425, 0.270688057, 0.129274964, -0.285736799, 0.951150835, 0.116902903, -0.0913157761, -0.148457721, 0.984693825)}):Play()
- wait(0.1)
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.67829597, 0.738943696, -0.514886916, 0.953947425, 0.270688057, 0.129274964, -0.285736799, 0.951150835, 0.116902903, -0.0913157761, -0.148457721, 0.984693825)}):Play()
- wait(0.25)
- ss:PlayLocalSound(objs[5]:WaitForChild('Grip'):WaitForChild('MagIn'))
- ts:Create(objs[1],TweenInfo.new(0.4,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(-0.113398686, -0.577261984, 0.308594972, 0.943201959, -0.327689976, -0.0546732172, 0.30945456, 0.806719899, 0.503428996, -0.120862633, -0.491754115, 0.862305045)}):Play()
- wait(0.3)
- magC:Destroy()
- objs[5]:WaitForChild('Mag').Transparency = 0
- for _,v in pairs(objs[5]:WaitForChild('Mag'):GetDescendants()) do
- if v and v:IsA('BasePart') then
- v.Transparency = v:GetAttribute('LastTrans')
- end;
- end;
- end;
- BoltBackAnim = function(char,objs)
- ts:Create(objs[1],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.24516189, 0.271353781, 0.163031191, 0.087155804, 0, 0.99619472, 0, 1, 0, -0.99619472, 0, 0.087155804)}):Play()
- wait(0.5)
- objs[5]:WaitForChild('Bolt'):WaitForChild('BoltBack'):Play()
- ts:Create(objs[1],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.300000012, 1, 0, 0, 0, 0.939692557, 0.342020124, 0, -0.342020124, 0.939692557)}):Play()
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.400000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- ts:Create(objs[3],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.24516189, -0.128646225, 0.446238458, 0.087155804, 0, 0.99619472, 0, 1, 0, -0.99619472, 0, 0.087155804)}):Play()
- wait(0.25)
- end;
- BoltForwardAnim = function(char,objs)
- objs[5]:WaitForChild('Bolt'):WaitForChild('BoltForward'):Play()
- ts:Create(objs[1],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0, 0, 0.600000024, 0.98480773, 0.173648164, 5.175119e-09, -0.173648179, 0.984807611, 2.93495575e-08, 0, -2.98023224e-08, 0.999999881)}):Play()
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- ts:Create(objs[3],TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(1.24516189, 0.271353781, 0.246238455, 0.087155804, 0, 0.99619472, 0, 1, 0, -0.99619472, 0, 0.087155804)}):Play()
- wait(0.3)
- end;
- ActionBackAnim = function(char,objs)
- if objs[5]:FindFirstChild('Action') then
- ts:Create(objs[5]:WaitForChild('Action'):WaitForChild('Action'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.300000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- else
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new(0.300000012, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)}):Play()
- end;
- end;
- ActionForwardAnim = function(char,objs)
- if objs[5]:FindFirstChild('Action') then
- ts:Create(objs[5]:WaitForChild('Action'):WaitForChild('Action'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- else
- ts:Create(objs[5]:WaitForChild('Bolt'):WaitForChild('Bolt'),TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{C1 = CFrame.new()}):Play()
- end;
- end;
- }
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement