Advertisement
Pop4484

Pauhi Script (The One V2 Edit)

Oct 17th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 78.20 KB | None | 0 0
  1. RemoteEvent = Instance.new("RemoteEvent")
  2. RemoteEvent.Name = "PlayerWaiting.."
  3. RemoteEvent.Parent = game.ReplicatedStorage
  4. Debris = game:GetService("Debris")
  5. PhysicsService = game:GetService("PhysicsService")
  6. TweenService = game:GetService("TweenService")
  7. success, failure = pcall(function()
  8.     PhysicsService:CreateCollisionGroup("TopLimbs")
  9.     PhysicsService:CreateCollisionGroup("BottomLimbs")
  10.     PhysicsService:CreateCollisionGroup("BignSmallLimbs")
  11.     PhysicsService:CollisionGroupSetCollidable("TopLimbs", "BignSmallLimbs", false)
  12.     PhysicsService:CollisionGroupSetCollidable("BottomLimbs", "BignSmallLimbs", false)
  13. end)
  14. interruptingaction = false
  15. Character = nil
  16. Playerr = nil
  17.  
  18. RShoulder = nil
  19. LShoulder = nil
  20. RHip = nil
  21. LHip = nil
  22. Neck = nil
  23. RJoint = nil
  24.  
  25. shiftdown = false
  26. walking = false
  27. running = false
  28. action = false
  29. enabled = false
  30. shotavailable = true
  31. GunEquipped = false
  32. shoutplaying = false
  33. shooting = false
  34. music = false
  35. freefall = false
  36. grabbed = false
  37. on = "true"
  38.  
  39. Orange = Color3.new(244 / 255, 119 / 255, 70 / 255)
  40.  
  41. Gun = Instance.new("Part")
  42. Gun.Size = Vector3.new(1, 0.4, 1)
  43. Gun.CanCollide = false
  44.  
  45. GunMesh = Instance.new("SpecialMesh")
  46. GunMesh.MeshId = "http://www.roblox.com/asset/?id=4372594"
  47. GunMesh.Scale = Vector3.new(1.2, 1.2, 1.2)
  48. GunMesh.VertexColor = Vector3.new(1, 1, 1)
  49.  
  50. GunGradient = Instance.new("Decal")
  51. GunGradient.Color3 = Color3.new(1, 1, 1)
  52. GunGradient.Texture = "http://www.roblox.com/asset/?id=156579757"
  53. GunGradient.Face = "Top"
  54.  
  55. GunWeld = Instance.new("Weld")
  56. GunWeld.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  57. GunWeld.C0 = CFrame.new(0.00025177002, -1.30018997, 4.76837158e-05, 1.00000012, -4.7326088e-05, 8.3854422e-05, -8.38935375e-05, 9.13441181e-06, 1, -4.73186374e-05, -1, 9.13441181e-06)
  58.  
  59. GunMesh.Parent = Gun
  60. GunGradient.Parent = Gun
  61. GunWeld.Parent = Gun
  62.  
  63. Explosion1 = Instance.new("Part")
  64. Explosion1.Shape = "Ball"
  65. Explosion1.Transparency = 0.4
  66. Explosion1.Color = Color3.new(226/255, 155/255, 64/255)
  67. Explosion1.Size = Vector3.new(20.65, 20.65, 20.65)
  68. Explosion1.CanCollide = false
  69. Explosion1.Material = "SmoothPlastic"
  70. Explosion1.Anchored = true
  71. Explosion2 = Instance.new("Part")
  72. Explosion2.Shape = "Ball"
  73. Explosion2.Transparency = 0.5
  74. Explosion2.Color = Color3.new(140/255, 140/255, 22/255)
  75. Explosion2.Size = Vector3.new(15.05, 15.05, 15.05)
  76. Explosion2.CanCollide = false
  77. Explosion2.Material = "SmoothPlastic"
  78. Explosion2.Anchored = true
  79.  
  80. SightModel = Instance.new("Model")
  81. SightModel.Name = "LaserSight"
  82.  
  83. GunHole = Instance.new("Part")
  84. GunHole.Shape = "Cylinder"
  85. GunHole.Material = "SmoothPlastic"
  86. GunHole.Size = Vector3.new(0.15, 0.1, 0.1)
  87. GunHole.CanCollide = false
  88. GunHole.Anchored = false
  89. GunHole.Color = Color3.new(17/255, 17/255, 17/255)
  90. GunHole.Parent = SightModel
  91.  
  92. GunSightBall = Instance.new("Part")
  93. GunSightBall.Shape = "Ball"
  94. GunSightBall.Material = "SmoothPlastic"
  95. GunSightBall.Size = Vector3.new(0.35, 0.35, 0.35)
  96. GunSightBall.CanCollide = false
  97. GunSightBall.Anchored = false
  98. GunSightBall.Color = Color3.new(99/255, 95/255, 98/255)
  99. GunSightBall.Parent = SightModel
  100.  
  101. GunSightCylinder = Instance.new("Part")
  102. GunSightCylinder.Shape = "Cylinder"
  103. GunSightCylinder.Material = "SmoothPlastic"
  104. GunSightCylinder.Size = Vector3.new(0.35, 0.35, 0.35)
  105. GunSightCylinder.CanCollide = false
  106. GunSightCylinder.Anchored = false
  107. GunSightCylinder.Color = Color3.new(99/255, 95/255, 98/255)
  108. GunSightCylinder.Parent = SightModel
  109.  
  110. GunLaser1 = Instance.new("Part")
  111. GunLaser1.Shape = "Cylinder"
  112. GunLaser1.Material = "SmoothPlastic"
  113. GunLaser1.Size = Vector3.new(2.8, 0.05, 0.05)
  114. GunLaser1.CanCollide = false
  115. GunLaser1.Anchored = false
  116. GunLaser1.Color = Color3.new(1, 0, 0)
  117. GunLaser1.Transparency = 1
  118. GunLaser1.Parent = SightModel
  119.  
  120. GunLaser2 = Instance.new("Part")
  121. GunLaser2.Shape = "Cylinder"
  122. GunLaser2.Material = "SmoothPlastic"
  123. GunLaser2.Size = Vector3.new(0.975, 0.05, 0.05)
  124. GunLaser2.CanCollide = false
  125. GunLaser2.Anchored = false
  126. GunLaser2.Color = Color3.new(1, 0, 0)
  127. GunLaser2.Transparency = 1
  128. GunLaser2.Parent = SightModel
  129.  
  130. GunLaser3 = Instance.new("Part")
  131. GunLaser3.Shape = "Cylinder"
  132. GunLaser3.Material = "SmoothPlastic"
  133. GunLaser3.Size = Vector3.new(0.975, 0.05, 0.05)
  134. GunLaser3.CanCollide = false
  135. GunLaser3.Anchored = false
  136. GunLaser3.Color = Color3.new(1, 0, 0)
  137. GunLaser3.Transparency = 1
  138. GunLaser3.Parent = SightModel
  139.  
  140. Laser1Weld = Instance.new("Weld")
  141. Laser1Weld.C0 = CFrame.new(1.36249876, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  142. Laser1Weld.Part0 = GunHole
  143. Laser1Weld.Part1 = GunLaser1
  144. Laser1Weld.Parent = SightModel
  145.  
  146. Laser2Weld = Instance.new("Weld")
  147. Laser2Weld.C0 = CFrame.new(1.88750744, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  148. Laser2Weld.Part0 = GunLaser1
  149. Laser2Weld.Part1 = GunLaser2
  150. Laser2Weld.Parent = SightModel
  151.  
  152. Laser3Weld = Instance.new("Weld")
  153. Laser3Weld.C0 = CFrame.new(0.975002289, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  154. Laser3Weld.Part0 = GunLaser2
  155. Laser3Weld.Part1 = GunLaser3
  156. Laser3Weld.Parent = SightModel
  157.  
  158. HoleWeld = Instance.new("Weld")
  159. HoleWeld.C0 = CFrame.new(0.125, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  160. HoleWeld.Part0 = GunSightCylinder
  161. HoleWeld.Part1 = GunHole
  162. HoleWeld.Parent = SightModel
  163.  
  164. SightBallWeld = Instance.new("Weld")
  165. SightBallWeld.C0 = CFrame.new(-0.175001144, 5.96046448e-08, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  166. SightBallWeld.Part0 = GunSightCylinder
  167. SightBallWeld.Part1 = GunSightBall
  168. SightBallWeld.Parent = SightModel
  169.  
  170. CylinderToGunWeld = Instance.new("Weld")
  171. CylinderToGunWeld.C0 = CFrame.new(0.0250000954, 0.0750001669, -0.712492466, -8.6274035e-08, 1.75032611e-07, 1, 3.56865471e-08, 1, -1.75032596e-07, -1, 3.56865257e-08, -8.62740421e-08)
  172. CylinderToGunWeld.Part1 = GunSightCylinder
  173. CylinderToGunWeld.Parent = SightModel
  174.  
  175. Ring = Instance.new("Part")
  176. Ring.Name = "Ring"
  177. Ring.Transparency = 0.5
  178. Ring.Anchored = true
  179. Ring.CanCollide = false
  180. Ring.Size = Vector3.new(0.01, 0.01, 0.01)
  181.  
  182. RingMesh = Instance.new("SpecialMesh")
  183. RingMesh.MeshId = "rbxassetid://3270017"
  184. RingMesh.Scale = Vector3.new(2, 2, 1)
  185. RingMesh.Parent = Ring
  186.  
  187. possibleshotnoise = {"rbxassetid://139469366", "rbxassetid://139469366", "rbxassetid://139469366", "rbxassetid://139469366", "rbxassetid://139469366"}
  188. possiblefannoise = {"ahh~ soft~", "you're really soft :D", "squishy.. eee..", "squishy~",  
  189. "this is fun~", "so fluffy..", "you're a nice stress reliever..", "can you be my pillow for a day? pleaaase?",
  190. "i have a lot of feelings now :D", "aaahhhhhhh!", "i don't want to let go..!", "cuteness overload!", "aaaaaaaaaaahhhhh~",
  191. "soft soft soft..", "i can't stop :D", "i love you!", "fluffy..!"}
  192. gunraycastignorelist = {}
  193. walksound = Instance.new("Sound")
  194. walksound.SoundId = "rbxassetid://2213622028"
  195. walksound.Name = "Walk"
  196. walksound.Volume = 2
  197. cocksound = Instance.new("Sound")
  198. cocksound.SoundId = "rbxassetid://361550324"
  199. cocksound.Name = "GunSlide"
  200. cocksound.Volume = 2
  201. masksound = Instance.new("Sound")
  202. masksound.SoundId = "rbxassetid://2706199011"
  203. masksound.Name = "Mask"
  204. masksound.Volume = 2
  205. equipsound = Instance.new("Sound")
  206. equipsound.SoundId = "rbxassetid://1498950813"
  207. equipsound.Name = "Equip"
  208. equipsound.Volume = 2
  209. explosionsound = Instance.new("Sound")
  210. explosionsound.SoundId = "rbxassetid://1776706665"
  211. explosionsound.Volume = 4
  212. explosionsound.PlayOnRemove = true
  213. ShotMarker = Instance.new("Sound")
  214. ShotMarker.Name = "ShotMarker"
  215. ShotMarker.SoundId = "rbxassetid://296102734"
  216. ShotMarker.Volume = 3
  217. ShotMarker.PlayOnRemove = true
  218. Useless = Instance.new("Sound")
  219. Useless.Name = "Useless"
  220. Useless.SoundId = "rbxassetid://3034338716"
  221. Useless.Volume = 3
  222. Useless.PlayOnRemove = true
  223. Kill1 = Instance.new("Sound")
  224. Kill1.Name = "Kill1"
  225. Kill1.SoundId = "rbxassetid://449759304"
  226. Kill1.Volume = 0
  227. Kill2 = Instance.new("Sound")
  228. Kill2.Name = "Kill2"
  229. Kill2.SoundId = "rbxassetid://1854510736"
  230. Kill2.Volume = 0
  231. Kill3 = Instance.new("Sound")
  232. Kill3.Name = "Kill3"
  233. Kill3.SoundId = "rbxassetid://1278706842"
  234. Kill3.Volume = 0
  235. DashJump = Instance.new("Sound")
  236. DashJump.Name = "DashJump"
  237. DashJump.SoundId = "rbxassetid://1295417556"
  238. DashJump.Volume = 2
  239. SmallSquish = Instance.new("Sound")
  240. SmallSquish.Name = "SmallSquish"
  241. SmallSquish.SoundId = "rbxassetid://162180713"
  242. SmallSquish.Volume = 2
  243. BigSquish = Instance.new("Sound")
  244. BigSquish.Name = "BigSquish"
  245. BigSquish.SoundId = "rbxassetid://1139819274"
  246. BigSquish.Volume = 1
  247. BodyFall = Instance.new("Sound")
  248. BodyFall.Name = "BodyFall"
  249. BodyFall.SoundId = "rbxassetid://178646271"
  250. BodyFall.Volume = 2
  251. Grab = Instance.new("Sound")
  252. Grab.Name = "Grab"
  253. Grab.SoundId = "rbxassetid://260411131"
  254. Grab.Volume = 1.5
  255. FlashlightClick = Instance.new("Sound")
  256. FlashlightClick.Name = "FlashClick"
  257. FlashlightClick.SoundId = "rbxassetid://242135745"
  258. FlashlightClick.Volume = 4
  259.  
  260. YoshisIsland = Instance.new("Sound")
  261. YoshisIsland.Name = "YoshisIsland"
  262. YoshisIsland.SoundId = "rbxassetid://152828706"
  263. YoshisIsland.Volume = 2
  264.  
  265. lerpintensity = 0.4
  266. gunshotdamage = 10
  267. headshotdamage = 21
  268. explosionshotdamage = 41
  269. jumppower = 60
  270.  
  271. RemoteEvent.OnServerEvent:Connect(function(player, contact)
  272.         if enabled == false then
  273.                 Playerr = player
  274.                 repeat
  275.                     wait()
  276.                 until player.Character ~= nil
  277.                 Character = player.Character
  278.                 gunraycastignorelist = {Gun, Character}
  279.                 if Character.Head:FindFirstChild("Typing") == nil then
  280.                     local ClickTyping = Instance.new("Sound")
  281.                     ClickTyping.Name = "Typing"
  282.                     ClickTyping.Parent = Character.Head
  283.                     ClickTyping.SoundId = "rbxassetid://903267862"
  284.                     walksound.Parent = Character.Torso
  285.                     masksound.Parent = Character.Torso
  286.                     equipsound.Parent = Character.Torso
  287.                     Kill1.Parent = Character.Head
  288.                     Kill2.Parent = Character.Head
  289.                     Kill3.Parent = Character.Head
  290.                     YoshisIsland.Parent = Character.Torso
  291.                     DashJump.Parent = Character.Torso
  292.                     BigSquish.Parent = Character.Torso
  293.                     SmallSquish.Parent = Character.Torso
  294.                     BodyFall.Parent = Character.Torso
  295.                     Grab.Parent = Character.Torso
  296.                     FlashlightClick.Parent = Gun
  297.                 end
  298.                 Character.Humanoid.BreakJointsOnDeath = false
  299.                 Character.Humanoid.JumpPower = jumppower
  300.             RemoteEvent.Name = contact
  301.         RShoulder = Character.Torso["Right Shoulder"]
  302.         LShoulder = Character.Torso["Left Shoulder"]
  303.         RHip = Character.Torso["Right Hip"]
  304.         LHip = Character.Torso["Left Hip"]
  305.         Neck = Character.Torso.Neck
  306.         RJoint = Character.HumanoidRootPart.RootJoint
  307.         GunWeld.Part0 = Character["Right Arm"]
  308.         GunWeld.Part1 = Gun
  309.         CylinderToGunWeld.Part0 = Gun
  310.         SightModel.Parent = Gun
  311.        
  312.         for i, v in pairs(Character.Humanoid:GetPlayingAnimationTracks()) do
  313.             v:Stop()
  314.             v:Remove()
  315.         end
  316.        
  317.         wait()
  318.        
  319.        
  320.         Character.Humanoid:ClearAllChildren()
  321.        
  322.         if Character:FindFirstChild("Animate") then
  323.             Character.Animate:Destroy()
  324.         end
  325.        
  326.         Character.Humanoid.WalkSpeed = 10
  327.         print("The One 2 v-beta..")
  328.         print("The script isn't really finished yet, but there's some things you should know.")
  329.         print("If you don't have your gun out, you can do a tackle hug with C.")
  330.         print("If you've caught someone, you can press the same key to go crazy.")
  331.         print("If you want to stop (crazy or not) then you can press the V key.")
  332.         print("You can press T to take out a gun. Click to shoot, as usual.")
  333.         print("You can use an alternative, explosive shot by pressing Z. It has a cooldown.")
  334.         print("If you have your gun out, you can hold shift to run.")
  335.         print("Headshots count!")
  336.         print("You can stop and start the music included in this script by pressing M.")
  337.         print("Finally, you can put your gun back by pressing the same key.")
  338.         enabled = true
  339.         end
  340. end)
  341. while wait() do
  342.     if Character ~= nil then
  343.         break
  344.     end
  345. end
  346.  
  347. function FallingAnimation()
  348.     lerpintensity = 0.2
  349.     action = true
  350.     while true do
  351.         if freefall == false then
  352.             action = false
  353.             wait()
  354.                 if GunEquipped == true then
  355.                     if running == true then
  356.                         spawn(GunRunAnimation)
  357.                     elseif walking == true and running == false then
  358.                         spawn(GunWalkAnimation)
  359.                     elseif walking == false then
  360.                         spawn(GunIdleAnimation)
  361.                     end
  362.                 elseif GunEquipped == false then
  363.                     if walking == true then
  364.                             spawn(WalkAnimation)
  365.                     elseif walking == false then
  366.                             spawn(IdleAnimation)
  367.                     end
  368.             break
  369.             end
  370.         end
  371.             if freefall == false then
  372.                 action = false
  373.                 return
  374.             end
  375.             wait()
  376.           RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0.362036288, 0.0565351993, 0.930447936, -0.859061539, 0.407714725, 0.309486657, -0.361860543, -0.911357462, 0.196174711), lerpintensity)
  377.           LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0.331345797, -0.110222727, -0.937049031, 0.601457059, 0.789876997, 0.119767353, 0.726952195, -0.603279114, 0.328016579), lerpintensity)
  378.           RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.600000024, 0.800000012, 0, 0, 1, -0.342020363, 0.939692557, 0, -0.939692557, -0.342020363, 0), lerpintensity)
  379.           LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0.258818835, 0.965925932, 0, 0.965925932, -0.258818835, 0), lerpintensity)
  380.           Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.258819103, 0.965925872, 0, 0.965925872, 0.258819103), lerpintensity)
  381.           RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.173647806, 0.984807849, 0, 0.984807849, -0.173647806), lerpintensity)
  382.     end
  383. end
  384.  
  385. function IdleAnimation()
  386.     lerpintensity = 0.2
  387.     Character.Humanoid.WalkSpeed = 10
  388.     while true do
  389.         if walking == true or action == true or GunEquipped == true or running == true then
  390.                 break
  391.             end
  392.         for i = 1, 15 do
  393.             wait()
  394.             if walking == true or action == true or GunEquipped == true or running == true then
  395.                 return
  396.             end
  397.             if i < 7 then
  398.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.415476322, 0.681261539, 0, 0, 0.42261827, 0.906307817, 0, 0.906307817, -0.42261827, -1, 0, 0), lerpintensity)
  399.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.41547823, 0.681262493, 0, 0, -0.42261827, -0.906307817, 0, 0.906307817, -0.42261827, 1, 0, 0), lerpintensity)
  400.                 RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.257117271, 0.646629333, 0, 0, 1, 0.422618151, 0.906307101, 0, -0.906307101, 0.422618151, 0), lerpintensity)
  401.                 LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.25711441, 0.646625519, 0, 0, -1, -0.422617823, 0.906306565, 0, 0.906306565, 0.422617823, 0), lerpintensity)
  402.                 Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.499999166, 1.90734863e-06, -1, 0, 0, 0, -0.0871553198, 0.996194422, 0, 0.996194422, 0.0871553198), lerpintensity)
  403.                 RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.599619389, 0.0087146759, -1, 0, 0, 0, -0.0871555209, 0.996194661, 0, 0.996194661, 0.0871555209), lerpintensity)
  404.             else
  405.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0, 0.087155737, 0.99619472, 0, 0.99619472, -0.087155737, -1, 0, 0), lerpintensity)
  406.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, -0.087155737, -0.99619472, 0, 0.99619472, -0.087155737, 1, 0, 0), lerpintensity)
  407.                 RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  408.                 LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  409.                 Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0871559083, 0.99619472, 0, 0.99619472, -0.0871559083), lerpintensity)
  410.                 RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  411.             end
  412.         end
  413.     end
  414. end
  415.  
  416. function GunIdleAnimation()
  417.     lerpintensity = 0.1
  418.     while true do
  419.         if walking == true or action == true or GunEquipped == false or running == true then
  420.                 break
  421.             end
  422.         for i = 1, 30 do
  423.             wait()
  424.             if walking == true or action == true or GunEquipped == false or running == true then
  425.                 return
  426.             end
  427.             if i < 15 then
  428.                     RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  429.                       LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  430.                       RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  431.                       LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  432.                       Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
  433.                       RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  434.             else
  435.                     RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.182569504, 0.300760746, -0.799999237, -7.61939578e-09, -7.4505806e-09, 1.00000012, -0.0871556401, -0.996194839, -8.08630141e-09, 0.99619472, -0.0871556476, 6.9410433e-09), lerpintensity)
  436.                       LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, -0.00759610627, 0.99619472, -0.086824052, 0.086823903, 0.0871557072, 0.992403924, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  437.                       RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.899999976, 0.100000001, 0, 0, 1, 0.087155737, 0.99619472, 0, -0.99619472, 0.087155737, 0), lerpintensity)
  438.                       LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.899999976, 0.100000001, 0, 0, -1, -0.0871555507, 0.99619472, 0, 0.99619472, 0.0871555507, 0), lerpintensity)
  439.                       Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0871553868, 0.99619478, 0, 0.99619478, 0.0871553868), lerpintensity)
  440.                       RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.100000001, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  441.             end
  442.         end
  443.     end
  444. end
  445.  
  446. function WalkAnimation()
  447.     lerpintensity = 0.3
  448.     Character.Humanoid.WalkSpeed = 10
  449.     while true do
  450.         if walking == false or action == true or GunEquipped == true then
  451.                 break
  452.             end
  453.         for i = 1, 40 do
  454.             wait()
  455.             if walking == false or action == true or GunEquipped == true then
  456.                 return
  457.             end
  458.             if i < 10 then
  459.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, -0.0616284236, -0.061628405, 0.99619472, 0.704416156, 0.704415977, 0.087155737, -0.707106709, 0.707106888, 0), lerpintensity)
  460.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, -0.30839169, 0.00395292044, -0.951251209, 0.791240096, -0.554032326, -0.258819044, -0.528047025, -0.832485735, 0.167731255), lerpintensity)
  461.                 RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0.258819044, 0, 0.965925813, 0.482962906, 0.866025388, -0.129409522, -0.836516261, 0.5, 0.224143863), lerpintensity)
  462.                 LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, -0.258819044, 0, -0.965925813, 0.330366075, 0.939692616, -0.0885213241, 0.907673359, -0.342020124, -0.243210346), lerpintensity)
  463.                 Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 3.50177288e-07, 1, 0, 1, -3.50177288e-07), lerpintensity)
  464.                 RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.965925872, 0.258818835, 0, 0, 0, 1, 0.258818835, 0.965925872, 0), lerpintensity)
  465.                 if i == 1 then
  466.                     walksound:Play()
  467.                 end
  468.             elseif i < 20 and i >= 10 then
  469.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0, 0.087155737, 0.99619472, -0.342020363, 0.936116755, -0.0818995982, -0.939692557, -0.340718865, 0.0298090372), lerpintensity)
  470.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, -0.087155737, -0.99619472, 0.342020333, 0.936116815, -0.0818995982, 0.939692557, -0.340718865, 0.0298090354), lerpintensity)
  471.                 RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.200000033, 0.400000006, 0, 0, 1, 0.422618628, 0.906307638, 0, -0.906307638, 0.422618628, 0), lerpintensity)
  472.                 LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.200000033, 0.400000006, 0, 0, -1, -0.422618449, 0.906307757, 0, 0.906307757, 0.422618449, 0), lerpintensity)
  473.                 Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0871553719, 0.99619478, 0, 0.99619478, 0.0871553719), lerpintensity)
  474.                 RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.8, 0, -1, 0, 0, 0, -0.0871555507, 0.99619472, 0, 0.99619472, 0.0871555507), lerpintensity)
  475.             elseif i > 20 and i <= 30 then
  476.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.499996185, 0.5, 3.81469727e-06, -0.340922296, -0.0478352159, 0.938873351, -0.761456788, -0.571644545, -0.305624068, 0.551321626, -0.819105804, 0.158462048), lerpintensity)
  477.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.600001931, 0.700000226, 0, -0.35627985, 0.0741284862, -0.931434155, -0.533899546, 0.801937878, 0.268042684, 0.76682198, 0.592790484, -0.246137157), lerpintensity)
  478.                 RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.936495781, 0.0307388306, -0.258819014, 1.71735223e-07, 0.965925455, -0.330366135, 0.939692497, -0.0885215253, -0.90767324, -0.342020124, -0.243210346), lerpintensity)
  479.                 LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.487262726, 1.04538441, -0.17134285, 0.20372057, -0.0667651445, -0.976749659, -0.476055801, 0.865028381, -0.1584194, 0.855493069, 0.49726063, 0.144440174), lerpintensity)
  480.                 Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 3.50177288e-07, 1, 0, 1, -3.50177288e-07), lerpintensity)
  481.                 RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.965925753, -0.258819252, 0, 0, 0, 1, -0.258819252, 0.965925753, 0), lerpintensity)
  482.                 if i == 21 then
  483.                     walksound:Play()
  484.                 end
  485.             else
  486.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0, 0.087155737, 0.99619472, -0.342020363, 0.936116755, -0.0818995982, -0.939692557, -0.340718865, 0.0298090372), lerpintensity)
  487.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, -0.087155737, -0.99619472, 0.342020333, 0.936116815, -0.0818995982, 0.939692557, -0.340718865, 0.0298090354), lerpintensity)
  488.                 RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.200000033, 0.400000006, 0, 0, 1, 0.422618628, 0.906307638, 0, -0.906307638, 0.422618628, 0), lerpintensity)
  489.                 LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.200000033, 0.400000006, 0, 0, -1, -0.422618449, 0.906307757, 0, 0.906307757, 0.422618449, 0), lerpintensity)
  490.                 Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0871553719, 0.99619478, 0, 0.99619478, 0.0871553719), lerpintensity)
  491.                 RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.8, 0, -1, 0, 0, 0, -0.0871555507, 0.99619472, 0, 0.99619472, 0.0871555507), lerpintensity)
  492.             end
  493.         end
  494.     end
  495. end
  496.  
  497. function Tackle()
  498.     local timeout = 1
  499.     local clocktime = 0
  500.     grabbed = false
  501.     local grabbedtorso = nil
  502.     if action == true or freefall == true then
  503.         return
  504.     else
  505.         action = true
  506.         lerpintensity = 0.3
  507.     end
  508.     Character.Humanoid.JumpPower = 0
  509.     Character.Humanoid.WalkSpeed = 35
  510.     local connection
  511.     local function onTouched(part)
  512.         if part.Parent:FindFirstChildOfClass("Humanoid") then
  513.             grabbed = true
  514.             if part.Parent:FindFirstChild("Torso") then
  515.                 grabbedtorso = part.Parent.Torso
  516.             else
  517.                 grabbedtorso = part.Parent.UpperTorso
  518.             end
  519.             connection:Disconnect()
  520.         end
  521.     end
  522.     connection = Character.Torso.Touched:Connect(onTouched)
  523.     local connection2
  524.     local function onTouched(part)
  525.         if part.Parent:FindFirstChildOfClass("Humanoid") then
  526.             grabbed = true
  527.             if part.Parent:FindFirstChild("Torso") then
  528.                 grabbedtorso = part.Parent.Torso
  529.             else
  530.                 grabbedtorso = part.Parent.UpperTorso
  531.             end
  532.             connection2:Disconnect()
  533.         end
  534.     end
  535.     connection2 = Character.Torso.Touched:Connect(onTouched)
  536.     coroutine.resume(coroutine.create(function()
  537.         repeat
  538.             wait(0.1)
  539.             clocktime = clocktime + 0.1
  540.         until clocktime >= timeout or grabbed == true
  541.         if clocktime >= timeout then
  542.             action = false
  543.             Character.Humanoid.WalkSpeed = 10
  544.             Character.Humanoid.JumpPower = jumppower
  545.             connection:Disconnect()
  546.             connection2:Disconnect()
  547.             if GunEquipped == true then
  548.                 if running == true then
  549.                     spawn(GunRunAnimation)
  550.                 elseif walking == true and running == false then
  551.                     spawn(GunWalkAnimation)
  552.                 elseif walking == false then
  553.                     spawn(GunIdleAnimation)
  554.                 end
  555.             elseif GunEquipped == false then
  556.                 if walking == true then
  557.                         spawn(WalkAnimation)
  558.                 elseif walking == false then
  559.                         spawn(IdleAnimation)
  560.                 end
  561.             end
  562.         end
  563.     end))
  564.     Ring:Clone().Parent = Character.Torso
  565.     Character.Torso.Ring.CFrame = CFrame.new(Character.Torso.Position.X, Character.Torso.Position.Y, Character.Torso.Position.Z) * CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(90), 0, 0)
  566.     local property = {}
  567.     property.Scale = Vector3.new(10, 10, 1)
  568.     local TweenInf = TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  569.     local Tween = TweenService:Create(Character.Torso.Ring.Mesh, TweenInf, property)
  570.     Tween:Play()
  571.     property.Scale = nil
  572.     property.Transparency = 1
  573.     local TweenL = TweenService:Create(Character.Torso.Ring, TweenInf, property)
  574.     TweenL:Play()
  575.     DashJump:Play()
  576.     TweenL.Completed:Connect(function()
  577.         pcall(function()
  578.             Character.Torso.Ring:Destroy()
  579.         end)
  580.     end)
  581.     repeat
  582.         wait()
  583.           RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0, 1.00000012, 0, -0.70710659, 0.707106829, 4.27863256e-08, 0.54167515, 0.541674972, -0.642787635, -0.45451957, -0.454519361, -0.766044259), lerpintensity)
  584.           LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(8.34465027e-07, 1.00000191, 6.67572021e-06, -0.707940221, -0.704223514, 0.0537614711, -0.543834805, 0.494970024, -0.677678764, 0.45062694, -0.508993328, -0.733390272), lerpintensity)
  585.           RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, -0.173647985, 0.984807789, 0, -0.984807789, -0.173647985, 0), lerpintensity)
  586.           LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, -0.573576212, 0.819152176, 0, 0.819152176, 0.573576212, 0), lerpintensity)
  587.           Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.766044736, 0.642787337, 0, 0.642787337, -0.766044736), lerpintensity)
  588.           RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.766044736, 0.642787278, 0, 0.642787278, 0.766044736), lerpintensity)
  589.     until action == false or grabbed == true
  590.     if action == false then
  591.         return
  592.     end
  593.     if grabbed == true then
  594.         Grab:Play()
  595.         local Motor = Instance.new("Motor6D")
  596.         Motor.Name = "Hugging"
  597.         Motor.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  598.         Motor.C0 = CFrame.new(-0.0495090485, 2.10305977, -0.770607471, -1, 0, 0, 0, 0.25881806, 0.965925753, 0, 0.965921581, -0.258819163)
  599.         Motor.Part0 = Character.Torso
  600.         Motor.Part1 = grabbedtorso
  601.         Motor.Parent = Character.Torso
  602.         grabbedtorso.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  603.         Character.Humanoid.WalkSpeed = 10
  604.         for i = 1, 5 do
  605.                 wait()
  606.               RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0, 1, 3.81469727e-06, -0.974663973, 0.209261209, -0.0789904445, -0.110879198, -0.75873363, -0.641894579, -0.194256395, -0.616873205, 0.762713253), lerpintensity)
  607.               LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0, 1.00000572, 3.81469727e-06, -0.982130229, -0.159923553, 0.0992236137, 0.0376849174, -0.683640063, -0.728845835, 0.184392825, -0.712082028, 0.677450061), lerpintensity)
  608.               RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.00000191, -4.76837158e-07, 0, 0, 1, 0.258819193, 0.965925634, 0, -0.965925634, 0.258819193, 0), lerpintensity)
  609.               LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 4.76837158e-07, 0, 0, -1, -0.342020035, 0.939692497, -0, 0.939692497, 0.342020035, 0), lerpintensity)
  610.               Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 3.81469727e-06, -1, 0, 0, 0, 0.866025209, 0.499999702, 0, 0.499999702, -0.866025209), lerpintensity)
  611.               RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, -0.0517673492, -0.193184853, -1, 0, 0, 0, -0.965925753, 0.258819163, 0, 0.258819163, 0.965925753), lerpintensity)
  612.         end
  613.         Motor.C0 = CFrame.new(0.0504875183, 0.0701274872, -0.862149239, -1, 0, 0, 0, 0.996194601, -0.0871558636, 0, -0.0871558636, -0.996194601)
  614.         BodyFall:Play()
  615.         for i = 1, 10 do
  616.             wait()
  617.             if i <= 5 then
  618.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
  619.               LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
  620.               RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.80000186, 0.199999526, 0.291695803, 0.213656619, 0.932343423, -0.597755134, 0.801671684, 0.00330370665, -0.746727645, -0.558276713, 0.361558706), lerpintensity)
  621.               LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.173228294, -0.273797244, -0.946058512, 0.636360347, 0.764258087, -0.104661986, 0.751689196, -0.583903611, 0.306625158), lerpintensity)
  622.               Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.474807769, -0.620455384, 0.624173164, 0.0938992277, 0.740881205, 0.665039182), lerpintensity)
  623.               RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, 0.0815296173, -0.639691174, 0.0149785243, 0.768486202, -0.0754790828, -0.996201873, -0.0434121788, 0.764917135, -0.0857750028, 0.63839215), lerpintensity)
  624.             else
  625.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
  626.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
  627.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.900001884, 0.199999526, 0.183465198, 0.349619538, 0.91875273, -0.571812093, 0.798185349, -0.189554393, -0.799606979, -0.490577221, 0.346355975), lerpintensity)
  628.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, 0.593890965, 0.713699996, -0.371382505, 0.804291248, -0.515072167, 0.296336442), lerpintensity)
  629.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.483899832, -0.482376635, 0.730173528, 0.0100231878, 0.837366521, 0.546549261), lerpintensity)
  630.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, -1.61847043, 0.706253648, -0.084143132, 0.702940762, -0.0754790828, -0.996201873, -0.0434121788, 0.703923762, -0.022397304, -0.709922373), lerpintensity)
  631.             end
  632.         end
  633.         Character.Humanoid.WalkSpeed = 0
  634.         lerpintensity = 0.1
  635.         repeat
  636.             local chance = math.random(1, 40)
  637.             if chance < 40 then
  638.             wait()
  639.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.917693615, 0.0283914581, 0.396272838, -0.385745138, -0.175017014, 0.905852914, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
  640.                 LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.39999986, 0.300005764, -0.0999961793, 0.937335551, 0.0720017105, -0.340908438, 0.296476424, 0.349182725, 0.888916969, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
  641.                  RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.327021897, 0.859677553, -0.392442137, -0.944811285, 0.306082666, -0.116811), lerpintensity)
  642.                  LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.234377176, 0.853325725, -0.465726942, 0.971935332, 0.215643987, -0.0940141678), lerpintensity)
  643.                  Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.474807769, -0.620455384, 0.624173164, 0.0938992277, 0.740881205, 0.665039182), lerpintensity)
  644.                  RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, -0.498519897, -2.41847038, 1, 0, 9.68575478e-08, 8.38190317e-09, -0.996194601, -0.0871558636, 1.04308128e-07, 0.0871558636, -0.996194661), lerpintensity)
  645.             else
  646.                 local squishnoise = math.random(1, 2)
  647.                 if squishnoise == 1 then
  648.                     SmallSquish:Play()
  649.                 else
  650.                     BigSquish:Play()
  651.                 end
  652.                 for i = 1, 15 do
  653.                     wait()
  654.                     if i <= 7 then
  655.                   RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.970735729, 0.0583515093, 0.232952893, -0.22052899, -0.167427987, 0.960903049, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
  656.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.49999988, 0.600005746, -0.0999961793, 0.937335551, 0.072001718, -0.340908438, 0.296476394, 0.349182725, 0.888916969, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
  657.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.560413837, 0.751164854, -0.348837137, -0.827978253, 0.518153906, -0.214402184), lerpintensity)
  658.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.148775578, 0.868873179, -0.472148597, 0.98866415, 0.140451163, -0.0530656464), lerpintensity)
  659.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.609982133, 0.279235959, 0.741585016, 0.474807769, -0.620455384, 0.624173164, 0.634412527, 0.732844889, 0.245883197), lerpintensity)
  660.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0.482963562, -0.498519897, -2.28906155, 0.965925872, -0.022557579, 0.257834017, 8.38190317e-09, -0.996194601, -0.0871558636, 0.258818924, 0.0841861069, -0.962250173), lerpintensity)
  661.                     else
  662.                  RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.986262202, 0.0727217793, 0.148318172, -0.135084629, -0.161705196, 0.977549672, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
  663.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.39999986, 0.400005758, -0.0999961793, 0.959608316, 0.10216102, -0.262136966, 0.213654071, 0.341578633, 0.915246546, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
  664.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.327021867, 0.859677553, -0.392442137, -0.944811285, 0.306082606, -0.116810992), lerpintensity)
  665.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.688944399, 0.631179631, -0.356324226, 0.724531949, 0.613416135, -0.314282209), lerpintensity)
  666.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.804779053, -0.593144536, 0.022582531, 0.474807739, -0.620455325, 0.624173105, -0.356213689, 0.513043761, 0.780958951), lerpintensity)
  667.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(-0.527271271, -0.498519897, -2.06670284, 0.965925813, 0.0225576181, -0.257834285, 8.38190317e-09, -0.996194601, -0.0871558636, -0.258819163, 0.084186092, -0.962250113), lerpintensity)
  668.                     end
  669.                 end
  670.             end
  671.         until on == "more" or on == "false"
  672.             local first = false
  673.             repeat
  674.                 if on == "false" then
  675.                     break
  676.                 end
  677.             local chance = math.random(1, 40)
  678.                 local squishnoise = math.random(1, 2)
  679.                 if squishnoise == 1 then
  680.                     SmallSquish:Play()
  681.                 else
  682.                     BigSquish:Play()
  683.                 end
  684.                 if first == false then
  685.                     first = true
  686.                     coroutine.resume(coroutine.create(function()
  687.                         Talk("i can't hold back my feelings anymore, ".. grabbedtorso.Parent.Name.. "!")
  688.                     end))
  689.                 else
  690.                     coroutine.resume(coroutine.create(function()
  691.                         Talk(possiblefannoise[math.random(1, #possiblefannoise)])
  692.                     end))
  693.                 end
  694.                 for i = 1, 15 do
  695.                     wait()
  696.                     if i <= 7 then
  697.                   RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.970735729, 0.0583515093, 0.232952893, -0.22052899, -0.167427987, 0.960903049, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
  698.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.49999988, 0.600005746, -0.0999961793, 0.937335551, 0.072001718, -0.340908438, 0.296476394, 0.349182725, 0.888916969, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
  699.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.560413837, 0.751164854, -0.348837137, -0.827978253, 0.518153906, -0.214402184), lerpintensity)
  700.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.148775578, 0.868873179, -0.472148597, 0.98866415, 0.140451163, -0.0530656464), lerpintensity)
  701.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.609982133, 0.279235959, 0.741585016, 0.474807769, -0.620455384, 0.624173164, 0.634412527, 0.732844889, 0.245883197), lerpintensity)
  702.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0.482963562, -0.498519897, -2.28906155, 0.965925872, -0.022557579, 0.257834017, 8.38190317e-09, -0.996194601, -0.0871558636, 0.258818924, 0.0841861069, -0.962250173), lerpintensity)
  703.                     else
  704.                  RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.986262202, 0.0727217793, 0.148318172, -0.135084629, -0.161705196, 0.977549672, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
  705.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.39999986, 0.400005758, -0.0999961793, 0.959608316, 0.10216102, -0.262136966, 0.213654071, 0.341578633, 0.915246546, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
  706.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.327021867, 0.859677553, -0.392442137, -0.944811285, 0.306082606, -0.116810992), lerpintensity)
  707.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.688944399, 0.631179631, -0.356324226, 0.724531949, 0.613416135, -0.314282209), lerpintensity)
  708.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.804779053, -0.593144536, 0.022582531, 0.474807739, -0.620455325, 0.624173105, -0.356213689, 0.513043761, 0.780958951), lerpintensity)
  709.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(-0.527271271, -0.498519897, -2.06670284, 0.965925813, 0.0225576181, -0.257834285, 8.38190317e-09, -0.996194601, -0.0871558636, -0.258819163, 0.084186092, -0.962250113), lerpintensity)
  710.                     end
  711.                 end
  712.             until on == "false"
  713.                 coroutine.resume(coroutine.create(function()
  714.                     Talk("Bye Bye!")
  715.                 end))
  716.         for i = 1, 10 do
  717.             wait()
  718.             if i > 5 then
  719.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
  720.               LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
  721.               RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.80000186, 0.199999526, 0.291695803, 0.213656619, 0.932343423, -0.597755134, 0.801671684, 0.00330370665, -0.746727645, -0.558276713, 0.361558706), lerpintensity)
  722.               LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.173228294, -0.273797244, -0.946058512, 0.636360347, 0.764258087, -0.104661986, 0.751689196, -0.583903611, 0.306625158), lerpintensity)
  723.               Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.474807769, -0.620455384, 0.624173164, 0.0938992277, 0.740881205, 0.665039182), lerpintensity)
  724.               RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, 0.0815296173, -0.639691174, 0.0149785243, 0.768486202, -0.0754790828, -0.996201873, -0.0434121788, 0.764917135, -0.0857750028, 0.63839215), lerpintensity)
  725.             else
  726.                 RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
  727.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
  728.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.900001884, 0.199999526, 0.183465198, 0.349619538, 0.91875273, -0.571812093, 0.798185349, -0.189554393, -0.799606979, -0.490577221, 0.346355975), lerpintensity)
  729.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, 0.593890965, 0.713699996, -0.371382505, 0.804291248, -0.515072167, 0.296336442), lerpintensity)
  730.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.483899832, -0.482376635, 0.730173528, 0.0100231878, 0.837366521, 0.546549261), lerpintensity)
  731.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, -1.61847043, 0.706253648, -0.084143132, 0.702940762, -0.0754790828, -0.996201873, -0.0434121788, 0.703923762, -0.022397304, -0.709922373), lerpintensity)
  732.             end
  733.         end
  734.         grabbedtorso.Anchored = true
  735.         coroutine.resume(coroutine.create(function()
  736.             wait(0.2)
  737.             grabbedtorso.Anchored = false
  738.         end))
  739.         on = true
  740.         action = false
  741.         pcall(function()
  742.             for i, v in pairs(Character.Torso:GetChildren()) do
  743.                 if v.Name == "Hugging" and v.ClassName == "Motor6D" then
  744.                     v:Destroy()
  745.                 end
  746.             end
  747.         end)
  748.         grabbedtorso.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  749.         if walking == true then
  750.             spawn(WalkAnimation)
  751.         elseif walking == false then
  752.             spawn(IdleAnimation)
  753.         end
  754.         Character.Humanoid.WalkSpeed = 10
  755.         Character.Humanoid.JumpPower = jumppower
  756.     end
  757. end
  758.  
  759. function GunWalkAnimation()
  760.     lerpintensity = 0.15
  761.     while true do
  762.         if walking == false or action == true or GunEquipped == false or running == true then
  763.                 break
  764.             end
  765.         for i = 1, 20 do
  766.             wait()
  767.             if walking == false or action == true or GunEquipped == false or running == true then
  768.                 break
  769.             end
  770.             if i < 5 then
  771.                    RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  772.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  773.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173206329, -0.173648134, 0, 0.984807551, 0.492403775, 0.866025448, 0.0868240669, -0.852868378, 0.5, -0.150383696), lerpintensity)
  774.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.05000019, 0.0866088867, 0.173648134, 0, -0.984807551, 0.492404044, 0.866025329, 0.0868241116, 0.852868319, -0.500000179, 0.150383681), lerpintensity)
  775.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
  776.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.98480773, -0.173648179, 0, 0, 0, 1, -0.173648179, 0.98480773, 0), lerpintensity)
  777.                   if i == 1 then
  778.                     walksound:Play()
  779.                   end
  780.             elseif i >= 5 and i < 10 then
  781.                  RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  782.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  783.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173206329, -0.173648134, 0, 0.984807551, 0.492403775, 0.866025448, 0.0868240669, -0.852868378, 0.5, -0.150383696), lerpintensity)
  784.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.05000019, 0.0866088867, 0.173648134, 0, -0.984807551, 0.492404044, 0.866025329, 0.0868241116, 0.852868319, -0.500000179, 0.150383681), lerpintensity)
  785.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
  786.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.0999999046, 0, -0.98480773, -0.173648179, 0, 0, 0, 1, -0.173648179, 0.98480773, 0), lerpintensity)
  787.             elseif i >= 10 and i < 15 then
  788.                   RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  789.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  790.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.499996185, 1.19015789, 0.129904747, 0.173648402, -1.62060473e-07, 0.984807253, -0.564862609, 0.819151878, 0.0996008292, -0.806706905, -0.573576272, 0.142244384), lerpintensity)
  791.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.15000057, -0.0866012573, -0.173648402, 1.54857418e-07, -0.984807372, -0.492403805, 0.866025448, 0.0868243426, 0.852868497, 0.499999762, -0.150383979), lerpintensity)
  792.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
  793.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.98480767, 0.173648551, 0, 0, 0, 1, 0.173648551, 0.98480767, 0), lerpintensity)
  794.                   if i == 10 then
  795.                     walksound:Play()
  796.                   end
  797.             elseif i >= 15 then
  798.                   RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  799.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  800.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.499996185, 1.19015789, 0.129904747, 0.173648402, -1.62060473e-07, 0.984807253, -0.564862609, 0.819151878, 0.0996008292, -0.806706905, -0.573576272, 0.142244384), lerpintensity)
  801.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.15000057, -0.0866012573, -0.173648402, 1.54857418e-07, -0.984807372, -0.492403805, 0.866025448, 0.0868243426, 0.852868497, 0.499999762, -0.150383979), lerpintensity)
  802.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
  803.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.0999999046, 0, -0.98480767, 0.173648551, 0, 0, 0, 1, 0.173648551, 0.98480767, 0), lerpintensity)
  804.             end
  805.         end
  806.     end
  807. end
  808.  
  809. function GunRunAnimation()
  810.     lerpintensity = 0.3
  811.     if running == true then
  812.         return
  813.     end
  814.     running = true
  815.     while true do
  816.         if action == true and shooting == false or GunEquipped == false or running == false then
  817.             stoprunning()
  818.             break
  819.         elseif walking == false then
  820.                 stoprunning()
  821.                 return
  822.             end
  823.         for i = 1, 15 do
  824.             wait()
  825.             if action == true and shooting == false or GunEquipped == false or running == false then
  826.                 stoprunning()
  827.                 return
  828.             elseif walking == false then
  829.                 stoprunning()
  830.                 return
  831.             end
  832.             if i < 7 then
  833.                     RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  834.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  835.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173206329, -0.173648134, 0, 0.984807551, 0.95125103, 0.258818895, 0.167731225, -0.254886776, 0.965925932, -0.0449434109), lerpintensity)
  836.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.05000019, 0.0866088867, 0.173648134, 0, -0.984807551, 0.92541647, 0.342020363, 0.163175881, 0.336824238, -0.939692557, 0.0593911819), lerpintensity)
  837.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.98480773, 0.157378688, -0.0733869597, 0, 0.422618657, 0.906307757, 0.173648179, 0.892538905, -0.416198134), lerpintensity)
  838.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.98480767, -0.150383741, -0.0868240148, 1.04308164e-07, -0.500000119, 0.866025329, -0.173648134, 0.852868378, 0.492404073), lerpintensity)
  839.                 if i == 1 then
  840.                     walksound:Play()
  841.                 end
  842.             else
  843.                   RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
  844.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
  845.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173204422, 0.128024429, 0.000197760761, 0.991770387, -0.960408211, 0.249515295, 0.12392614, -0.247437179, -0.968370795, 0.0321339779), lerpintensity)
  846.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.49105835, 0.978897095, -0.000112436712, -0.0653868467, -0.0641448647, -0.995795369, -0.98073405, 0.188220412, 0.0522734299, 0.184076607, 0.980029821, -0.0752162114), lerpintensity)
  847.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.98480773, -0.157378688, 0.0733869597, 0, 0.422618657, 0.906307757, -0.173648179, 0.892538905, -0.416198134), lerpintensity)
  848.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.996194601, 0.0754786804, 0.0435777977, 1.04308164e-07, -0.500000119, 0.866025329, 0.0871553645, 0.862729728, 0.498097539), lerpintensity)
  849.                 if i == 7 then
  850.                     walksound:Play()
  851.                 end
  852.             end
  853.         end
  854.     end
  855. end
  856.  
  857. function GunTakeOut()
  858.     if action == true then
  859.         return
  860.     else
  861.         action = true
  862.     end
  863.     lerpintensity = 0.3
  864.     Character.Humanoid.WalkSpeed = 0
  865.     Character.Humanoid.JumpPower = 0
  866.     if GunEquipped == false then
  867.         for i = 1, 45 do
  868.             wait()
  869.             if i >= 1 and i < 15 then
  870.                     if i == 1 then
  871.                         masksound:Play()
  872.                     end
  873.                   RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, -0.0885213241, -0.411008537, 0.907323539, 0.243210346, 0.874410391, 0.41982758, -0.965925813, 0.257834166, 0.0225575641), lerpintensity)
  874.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, -0.00644042995, 0.0771135688, -0.997001529, 0.036346633, 0.996381342, 0.0768309459, 0.999318421, -0.035742797, -0.00922000408), lerpintensity)
  875.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  876.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  877.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.817427635, 0.574380577, 0.0435779542, -0.306258202, -0.49742949, 0.811646461, 0.487870991, 0.650116205, 0.582521319), lerpintensity)
  878.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  879.             elseif i >= 15 and i < 30 then
  880.                 if i == 15 then
  881.                 Gun.Parent = Character["Right Arm"]
  882.                 cocksound.Parent = Gun
  883.                 cocksound:Play()
  884.                 end
  885.                  RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.499996185, 0.500000954, -0.299999237, 0.573117733, 0.450334728, 0.684641957, -0.810699165, 0.189650699, 0.553894997, 0.119595334, -0.872485697, 0.473778099), lerpintensity)
  886.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, 0.0871557593, -0.99619472, 0, 0.99619472, 0.0871557593, 1, 0, 0), lerpintensity)
  887.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  888.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  889.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.836516201, 0.247167766, 0.489028335, 0.224143848, -0.660038292, 0.717013896, 0.500000179, 0.709406495, 0.496731579), lerpintensity)
  890.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  891.             elseif i >= 30 then
  892.                  RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.399996191, 0.500000954, -0.0999992415, 0.390131444, -0.530427456, 0.752624869, -0.810699165, 0.189650699, 0.553894997, -0.436536878, -0.826244116, -0.356028348), lerpintensity)
  893.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, 0.0871557593, -0.99619472, 0, 0.99619472, 0.0871557593, 1, 0, 0), lerpintensity)
  894.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  895.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  896.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.859785378, 0.00365444645, 0.51064235, 0.365998089, -0.692931056, 0.621201932, 0.356110126, 0.720994592, 0.59443444), lerpintensity)
  897.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  898.             end
  899.         end
  900.         FlashlightClick.PlaybackSpeed = 1.1
  901.         FlashlightClick:Play()
  902.         GunLaser1.Transparency = 0.6
  903.         GunLaser2.Transparency = 0.8
  904.         GunLaser3.Transparency = 0.95
  905.         action = false
  906.         walking = false
  907.         running = false
  908.         GunEquipped = true
  909.         Character.Humanoid.WalkSpeed = 10
  910.         GunIdleAnimation()
  911.         Character.Humanoid.JumpPower = jumppower
  912.     else
  913.         action = true
  914.         GunEquipped = false
  915.         running = false
  916.         shiftdown = false
  917.         FlashlightClick.PlaybackSpeed = 0.9
  918.         FlashlightClick:Play()
  919.         GunLaser1.Transparency = 1
  920.         GunLaser2.Transparency = 1
  921.         GunLaser3.Transparency = 1
  922.         Character.Humanoid.JumpPower = 0
  923.         for i = 1, 15 do
  924.             wait()
  925.             if i == 1 then
  926.                 masksound:Play()
  927.             elseif i == 14 then
  928.                 equipsound:Play()
  929.             end
  930.              RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, -0.0885213241, -0.411008537, 0.907323539, 0.243210346, 0.874410391, 0.41982758, -0.965925813, 0.257834166, 0.0225575641), lerpintensity)
  931.                   LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, -0.00644042995, 0.0771135688, -0.997001529, 0.036346633, 0.996381342, 0.0768309459, 0.999318421, -0.035742797, -0.00922000408), lerpintensity)
  932.                   RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  933.                   LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  934.                   Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.817427635, 0.574380577, 0.0435779542, -0.306258202, -0.49742949, 0.811646461, 0.487870991, 0.650116205, 0.582521319), lerpintensity)
  935.                   RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  936.         end
  937.         Gun.Parent = nil
  938.         action = false
  939.         walking = false
  940.         running = false
  941.         shiftdown = false
  942.         wait()
  943.         Character.Humanoid.WalkSpeed = 10
  944.         Character.Humanoid.JumpPower = jumppower
  945.         IdleAnimation()
  946.     end
  947. end
  948.  
  949. function GunFire(hitP)
  950.     if action == true then
  951.         return
  952.     else
  953.         action = true
  954.         shooting = true
  955.         lerpintensity = 0.7
  956.     end
  957.     Character.Humanoid.JumpPower = 0
  958.     for i = 1, 5 do
  959.         wait()
  960.           RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0.200000018, 1.10000014, 0, -1.94808241e-08, -1.49011603e-08, 0.99999994, -1, 1.87256603e-07, -2.00234354e-08, -1.78955474e-07, -1.00000012, 8.75252168e-16), lerpintensity)
  961.               LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 1.10000026, 0, 0.819151998, -3.58062735e-08, -0.573576331, 0.573576391, -2.50718202e-08, 0.819151938, -4.37113883e-08, -1, 0), lerpintensity)
  962.               RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  963.               LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  964.               Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0871559083, 0.99619472, 0, 0.99619472, -0.0871559083), lerpintensity)
  965.               RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  966.     end
  967.     local Rya = Ray.new(Gun.CFrame.p, (hitP - Gun.CFrame.p).unit * 500)
  968.     if not game.Workspace:FindFirstChild("ShotFolder") then
  969.         local Folder = Instance.new("Folder")
  970.         Folder.Name = "ShotFolder"
  971.         Folder.Parent = game.Workspace
  972.         RemoteEvent:FireClient(Playerr, "folderexists")
  973.     end
  974.     for i, v in pairs(game.Workspace.ShotFolder:GetChildren()) do
  975.         table.insert(gunraycastignorelist, 1, v)
  976.     end
  977.     for i, v in pairs(game.Workspace:GetDescendants()) do
  978.         if v.ClassName == "Accessory" then
  979.             table.insert(gunraycastignorelist, 1, v)
  980.         end
  981.     end
  982.     local part, hitposition = workspace:FindPartOnRayWithIgnoreList(Rya, gunraycastignorelist)
  983.     local FireBeam = Instance.new("Part")
  984.     local Magn = (Gun.Position - hitposition).magnitude
  985.     if part then
  986.         if part.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  987.             if part.Name == "Head" then
  988.                 if part.Parent:FindFirstChildOfClass("Humanoid").Health - headshotdamage <= 0 and part.Parent:FindFirstChildOfClass("Humanoid"):GetState() ~= Enum.HumanoidStateType.Dead then
  989.                 if shoutplaying == true then
  990.                     return
  991.                 else
  992.                     local chance = math.random(1, 3)
  993.                 if chance == 1 then
  994.                     Character.Head.Kill1:Play()
  995.                     Character.Head.Kill1.Ended:Connect(function()
  996.                         shoutplaying = false
  997.                     end)
  998.                 elseif chance == 2 then
  999.                     Character.Head.Kill2:Play()
  1000.                     Character.Head.Kill2.Ended:Connect(function()
  1001.                         shoutplaying = false
  1002.                     end)
  1003.                 elseif chance == 3 then
  1004.                     Character.Head.Kill3:Play()
  1005.                     Character.Head.Kill3.Ended:Connect(function()
  1006.                         shoutplaying = false
  1007.                     end)
  1008.                 end
  1009.                 end
  1010.             end
  1011.                 if headshotdamage <= part.Parent:FindFirstChildOfClass("Humanoid").Health / 40 then
  1012.                 Useless:Clone().Parent = part
  1013.                 part.Useless.PlaybackSpeed = (math.random(9, 12)) / 10
  1014.                 part.Useless:Remove()
  1015.                 else
  1016.                     ShotMarker:Clone().Parent = part
  1017.                     part.ShotMarker.PlaybackSpeed = 1.4
  1018.                     part.ShotMarker:Remove()
  1019.                 end
  1020.                 part.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(headshotdamage)
  1021.             else
  1022.                 if part.Parent:FindFirstChildOfClass("Humanoid").Health - gunshotdamage <= 0 and part.Parent:FindFirstChildOfClass("Humanoid"):GetState() ~= Enum.HumanoidStateType.Dead then
  1023.                 if shoutplaying == true then
  1024.                     return
  1025.                 else
  1026.                     local chance = math.random(1, 3)
  1027.                 if chance == 1 then
  1028.                     Character.Head.Kill1:Play()
  1029.                     Character.Head.Kill1.Ended:Connect(function()
  1030.                         shoutplaying = false
  1031.                     end)
  1032.                 elseif chance == 2 then
  1033.                     Character.Head.Kill2:Play()
  1034.                     Character.Head.Kill2.Ended:Connect(function()
  1035.                         shoutplaying = false
  1036.                     end)
  1037.                 elseif chance == 3 then
  1038.                     Character.Head.Kill3:Play()
  1039.                     Character.Head.Kill3.Ended:Connect(function()
  1040.                         shoutplaying = false
  1041.                     end)
  1042.                 end
  1043.                 end
  1044.             end
  1045.                 if gunshotdamage <= part.Parent:FindFirstChildOfClass("Humanoid").Health / 60 then
  1046.                 Useless:Clone().Parent = part
  1047.                 part.Useless.PlaybackSpeed = (math.random(9, 12)) / 10
  1048.                 part.Useless:Remove()
  1049.                 else
  1050.                     ShotMarker:Clone().Parent = part
  1051.                     part.ShotMarker.PlaybackSpeed = 1
  1052.                     part.ShotMarker:Remove()
  1053.                 end
  1054.                 part.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(gunshotdamage)
  1055.             end
  1056.         end
  1057.     end
  1058.     FireBeam.Transparency = 0.4
  1059.     FireBeam.CanCollide = false
  1060.     if part then
  1061.         FireBeam.Size = Vector3.new(0.3, 0.3, Magn)
  1062.     else
  1063.         FireBeam.Size = Vector3.new(0.3, 0.3, 500)
  1064.     end
  1065.     FireBeam.Material = "Neon"
  1066.     FireBeam.CFrame = Gun.CFrame:Lerp(CFrame.new(hitposition), 0.5)
  1067.     FireBeam.CFrame = CFrame.new(FireBeam.Position, hitposition)
  1068.     FireBeam.Anchored = true
  1069.     FireBeam.Name = "PlayerGunFire"
  1070.     FireBeam.Parent = game.Workspace.ShotFolder
  1071.     local properties = {}
  1072.     properties.Transparency = 1
  1073.     properties.Size = FireBeam.Size + Vector3.new(1, 1, 0)
  1074.     local TweenEnfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear)
  1075.     local TTween = TweenService:Create(FireBeam, TweenEnfo, properties)
  1076.     TTween:Play()
  1077.     TTween.Completed:Connect(function()
  1078.         FireBeam:Destroy()
  1079.     end)
  1080.         local chance = possibleshotnoise[math.random(1, #possibleshotnoise)]
  1081.         if chance == possibleshotnoise[1] then
  1082.             if not Gun:FindFirstChild("first") then
  1083.                 local FireSound = Instance.new("Sound")
  1084.                 FireSound.Name = "first"
  1085.                 FireSound.Volume = 4
  1086.                 FireSound.SoundId = possibleshotnoise[1]
  1087.                 FireSound.Parent = Gun
  1088.             end
  1089.             Gun.first.Pitch = (math.random(8,12)) / 10
  1090.             Gun.first:Play()
  1091.         elseif chance == possibleshotnoise[2] then
  1092.             if not Gun:FindFirstChild("second") then
  1093.             local FireSound = Instance.new("Sound")
  1094.                 FireSound.Name = "second"
  1095.                 FireSound.Volume = 4
  1096.                 FireSound.SoundId = possibleshotnoise[2]
  1097.                 FireSound.Parent = Gun
  1098.             end
  1099.             Gun.second.Pitch = (math.random(8,12)) / 10
  1100.             Gun.second:Play()
  1101.         elseif chance == possibleshotnoise[3] then
  1102.             if not Gun:FindFirstChild("third") then
  1103.             local FireSound = Instance.new("Sound")
  1104.                 FireSound.Name = "third"
  1105.                 FireSound.Volume = 4
  1106.                 FireSound.SoundId = possibleshotnoise[3]
  1107.                 FireSound.Parent = Gun
  1108.             end
  1109.             Gun.third.Pitch = (math.random(8,12)) / 10
  1110.             Gun.third:Play()
  1111.         elseif chance == possibleshotnoise[4] then
  1112.             if not Gun:FindFirstChild("fourth") then
  1113.             local FireSound = Instance.new("Sound")
  1114.                 FireSound.Name = "fourth"
  1115.                 FireSound.Volume = 4
  1116.                 FireSound.SoundId = possibleshotnoise[4]
  1117.                 FireSound.Parent = Gun
  1118.             end
  1119.             Gun.fourth.Pitch = (math.random(8,12)) / 10
  1120.             Gun.fourth:Play()
  1121.         elseif chance == possibleshotnoise[5] then
  1122.             if not Gun:FindFirstChild("fifth") then
  1123.             local FireSound = Instance.new("Sound")
  1124.                 FireSound.Name = "fifth"
  1125.                 FireSound.Volume = 4
  1126.                 FireSound.SoundId = possibleshotnoise[5]
  1127.                 FireSound.Parent = Gun
  1128.             end
  1129.             Gun.fifth.Pitch = (math.random(8,12)) / 10
  1130.             Gun.fifth:Play()
  1131.         end
  1132.     action = false
  1133.     if walking == true then
  1134.         if running == true then
  1135.             GunRunAnimation()
  1136.         else
  1137.             GunWalkAnimation()
  1138.         end
  1139.     else
  1140.         GunIdleAnimation()
  1141.     end
  1142.     shooting = false
  1143.     Character.Humanoid.JumpPower = jumppower
  1144.     gunraycastignorelist = {Gun, Character}
  1145. end
  1146.  
  1147. function GunExplosionFire(hitP)
  1148.     local Cooldown = coroutine.wrap(function(cooldowntime)
  1149.         repeat
  1150.             wait(0.1)
  1151.             cooldowntime = cooldowntime - 0.1
  1152.         until cooldowntime <= 0
  1153.         shotavailable = true
  1154.     end)
  1155.     if action == true then
  1156.         return
  1157.     else
  1158.         action = true
  1159.     end
  1160.     Character.Humanoid.JumpPower = 0
  1161.     lerpintensity = 0.7
  1162.     shooting = true
  1163.     shotavailable = false
  1164.     for i = 1, 5 do
  1165.         wait()
  1166.           RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0.200000018, 1.10000014, 0, -1.94808241e-08, -1.49011603e-08, 0.99999994, -1, 1.87256603e-07, -2.00234354e-08, -1.78955474e-07, -1.00000012, 8.75252168e-16), lerpintensity)
  1167.               LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 1.10000026, 0, 0.819151998, -3.58062735e-08, -0.573576331, 0.573576391, -2.50718202e-08, 0.819151938, -4.37113883e-08, -1, 0), lerpintensity)
  1168.               RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
  1169.               LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
  1170.               Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0871559083, 0.99619472, 0, 0.99619472, -0.0871559083), lerpintensity)
  1171.               RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
  1172.     end
  1173.     local Rya = Ray.new(Gun.CFrame.p, (hitP - Gun.CFrame.p).unit * 500)
  1174.     if not game.Workspace:FindFirstChild("ShotFolder") then
  1175.         local Folder = Instance.new("Folder")
  1176.         Folder.Name = "ShotFolder"
  1177.         Folder.Parent = game.Workspace
  1178.         RemoteEvent:FireClient(Playerr, "folderexists")
  1179.     end
  1180.     for i, v in pairs(game.Workspace.ShotFolder:GetChildren()) do
  1181.         if v.Name == "PlayerGunFire" then
  1182.             table.insert(gunraycastignorelist, 1, v)
  1183.         end
  1184.     end
  1185.     local part, hitposition = workspace:FindPartOnRayWithIgnoreList(Rya, gunraycastignorelist)
  1186.     local FireBeam = Instance.new("Part")
  1187.     FireBeam.Color = Orange
  1188.     local Magn = (Gun.Position - hitposition).magnitude
  1189.     FireBeam.Transparency = 0.4
  1190.     FireBeam.CanCollide = false
  1191.     if part then
  1192.         FireBeam.Size = Vector3.new(0.3, 0.3, Magn)
  1193.     else
  1194.         FireBeam.Size = Vector3.new(0.3, 0.3, 500)
  1195.     end
  1196.     FireBeam.Material = "Neon"
  1197.     FireBeam.CFrame = Gun.CFrame:Lerp(CFrame.new(hitposition), 0.5)
  1198.     FireBeam.CFrame = CFrame.new(FireBeam.Position, hitposition)
  1199.     FireBeam.Anchored = true
  1200.     FireBeam.Name = "PlayerGunFire"
  1201.     local SecondBeam = FireBeam:Clone()
  1202.     SecondBeam.Size = FireBeam.Size + Vector3.new(0.7, 0.7, 0)
  1203.     SecondBeam.Name = "PlayerGunFire"
  1204.     FireBeam.Parent = game.Workspace.ShotFolder
  1205.     SecondBeam.Parent = game.Workspace.ShotFolder
  1206.     local properties = {}
  1207.     properties.Transparency = 1
  1208.     properties.CFrame = FireBeam.CFrame
  1209.     properties.Size = FireBeam.Size + Vector3.new(FireBeam.Size.X + 1, FireBeam.Size.Y + 1, 0)
  1210.     local TweenEnfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear)
  1211.     local TTween = TweenService:Create(FireBeam, TweenEnfo, properties)
  1212.     TTween:Play()
  1213.     TTween = TweenService:Create(SecondBeam, TweenEnfo, properties)
  1214.     TTween:Play()
  1215.     TTween.Completed:Connect(function()
  1216.         FireBeam:Destroy()
  1217.         SecondBeam:Destroy()
  1218.     end)
  1219.     local Explosioo1 = Explosion1:Clone()
  1220.     local Explosioo2 = Explosion2:Clone()
  1221.     properties.Size = Vector3.new(Explosioo1.Size.X + 1, Explosioo1.Size.Y + 1, Explosioo1.Size.Z + 1)
  1222.     properties.CFrame = CFrame.new(hitposition)
  1223.     Explosioo1.CFrame = CFrame.new(hitposition)
  1224.     Explosioo1.Parent = game.Workspace
  1225.     TTween = TweenService:Create(Explosioo1, TweenEnfo, properties)
  1226.     TTween:Play()
  1227.     Explosioo2.CFrame = CFrame.new(hitposition)
  1228.     Explosioo2.Parent = game.Workspace
  1229.     explosionsound:Clone().Parent = Explosioo2
  1230.     Explosioo2.Sound:Remove()
  1231.     TTween = TweenService:Create(Explosioo2, TweenEnfo, properties)
  1232.     TTween:Play()
  1233.     TTween.Completed:Connect(function()
  1234.         Explosioo1:Destroy()
  1235.         Explosioo2:Destroy()
  1236.         wait()
  1237.     end)
  1238.     local Explosion = Instance.new("Explosion")
  1239.     Explosion.BlastPressure = 500000
  1240.     Explosion.BlastRadius = 18
  1241.     Explosion.DestroyJointRadiusPercent = 0
  1242.     Explosion.ExplosionType = Enum.ExplosionType.NoCraters
  1243.     Explosion.Visible = false
  1244.     Explosion.Position = Explosioo1.Position
  1245.     Explosion.Parent = game.Workspace
  1246.     Explosioo1.Touched:Connect(function(hit)
  1247.         if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1248.             if hit.Parent:FindFirstChildOfClass("Humanoid"):FindFirstChild("Hit") then
  1249.                 return
  1250.             end
  1251.                 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1252.                 if hit.Parent:FindFirstChildOfClass("Humanoid").Health - explosionshotdamage <= 0 and hit.Parent:FindFirstChildOfClass("Humanoid"):GetState() ~= Enum.HumanoidStateType.Dead then
  1253.                 if shoutplaying == true then
  1254.                     return
  1255.                 else
  1256.                     local chance = math.random(1, 3)
  1257.                 if chance == 1 then
  1258.                     Character.Head.Kill1:Play()
  1259.                     Character.Head.Kill1.Ended:Connect(function()
  1260.                         shoutplaying = false
  1261.                     end)
  1262.                 elseif chance == 2 then
  1263.                     Character.Head.Kill2:Play()
  1264.                     Character.Head.Kill2.Ended:Connect(function()
  1265.                         shoutplaying = false
  1266.                     end)
  1267.                 elseif chance == 3 then
  1268.                     Character.Head.Kill3:Play()
  1269.                     Character.Head.Kill3.Ended:Connect(function()
  1270.                         shoutplaying = false
  1271.                     end)
  1272.                 end
  1273.                 end
  1274.                 end
  1275.             if explosionshotdamage <= hit.Parent:FindFirstChildOfClass("Humanoid").Health / 20 then
  1276.                 Useless:Clone().Parent = hit
  1277.                 hit.Useless.PlaybackSpeed = (math.random(9, 12)) / 10
  1278.                 hit.Useless:Remove()
  1279.             end
  1280.             local Haet = Instance.new("NumberValue")
  1281.             Haet.Name = "Hit"
  1282.             Haet.Parent = hit.Parent:FindFirstChildOfClass("Humanoid")
  1283.             hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(explosionshotdamage)
  1284.             end
  1285.         end
  1286.     end)
  1287.         local chance = possibleshotnoise[math.random(1, #possibleshotnoise)]
  1288.         if chance == possibleshotnoise[1] then
  1289.             if not Gun:FindFirstChild("first") then
  1290.                 local FireSound = Instance.new("Sound")
  1291.                 FireSound.Name = "first"
  1292.                 FireSound.Volume = 4
  1293.                 FireSound.Parent = Gun
  1294.             end
  1295.             Gun.first.Pitch = (math.random(8,12)) / 10
  1296.             Gun.first:Play()
  1297.         elseif chance == possibleshotnoise[2] then
  1298.             if not Gun:FindFirstChild("second") then
  1299.             local FireSound = Instance.new("Sound")
  1300.                 FireSound.Name = "second"
  1301.                 FireSound.Volume = 4
  1302.                 FireSound.Parent = Gun
  1303.             end
  1304.             Gun.second.Pitch = (math.random(8,12)) / 10
  1305.             Gun.second:Play()
  1306.         elseif chance == possibleshotnoise[3] then
  1307.             if not Gun:FindFirstChild("third") then
  1308.             local FireSound = Instance.new("Sound")
  1309.                 FireSound.Name = "third"
  1310.                 FireSound.Volume = 4
  1311.                 FireSound.Parent = Gun
  1312.             end
  1313.             Gun.third.Pitch = (math.random(8,12)) / 10
  1314.             Gun.third:Play()
  1315.         elseif chance == possibleshotnoise[4] then
  1316.             if not Gun:FindFirstChild("fourth") then
  1317.             local FireSound = Instance.new("Sound")
  1318.                 FireSound.Name = "fourth"
  1319.                 FireSound.Volume = 4
  1320.                 FireSound.Parent = Gun
  1321.             end
  1322.             Gun.fourth.Pitch = (math.random(8,12)) / 10
  1323.             Gun.fourth:Play()
  1324.         elseif chance == possibleshotnoise[5] then
  1325.             if not Gun:FindFirstChild("fifth") then
  1326.             local FireSound = Instance.new("Sound")
  1327.                 FireSound.Name = "fifth"
  1328.                 FireSound.Volume = 4
  1329.                 FireSound.Parent = Gun
  1330.             end
  1331.             Gun.fifth.Pitch = (math.random(8,12)) / 10
  1332.             Gun.fifth:Play()
  1333.         end
  1334.     action = false
  1335.     Cooldown(2)
  1336.     if walking == true then
  1337.         if running == true then
  1338.             GunRunAnimation()
  1339.         else
  1340.             GunWalkAnimation()
  1341.         end
  1342.     else
  1343.         GunIdleAnimation()
  1344.     end
  1345.     lerpintensity = 0.2
  1346.     gunraycastignorelist = {Gun, Character}
  1347.     shooting = false
  1348.     Character.Humanoid.JumpPower = jumppower
  1349.     wait()
  1350.     for i, v in pairs(game.Workspace:GetDescendants()) do
  1351.         if v.ClassName == "NumberValue" and v.Name == "Hit" then
  1352.             v:Destroy()
  1353.         end
  1354.     end
  1355. end
  1356.  
  1357. function Ragdoll()
  1358.             Character.Humanoid.AutoRotate = false
  1359.            
  1360.             local xrandom = 0
  1361.             local yrandom = 0
  1362.             local zrandom = 0
  1363.            
  1364.             xrandom = math.random(1,2)
  1365.             yrandom = math.random(1,2)
  1366.             zrandom = math.random(1,2)
  1367.            
  1368.             if xrandom == 1 then
  1369.                 xrandom = -10
  1370.             else
  1371.                 xrandom = 10
  1372.             end
  1373.             if yrandom == 1 then
  1374.                 yrandom = -10
  1375.             else
  1376.                 yrandom = 10
  1377.             end
  1378.             if zrandom == 1 then
  1379.                 zrandom = -10
  1380.             else
  1381.                 yrandom = 10
  1382.             end
  1383.            
  1384.             Character.Torso.RotVelocity = Vector3.new(Character.Torso.RotVelocity.X + xrandom, Character.Torso.RotVelocity.Y + yrandom, Character.Torso.RotVelocity.Z + zrandom)
  1385.             local LeftC = Instance.new("Attachment")
  1386.             LeftC.Position = Vector3.new(0.5, 1, -0)
  1387.             LeftC.Name = "LeftCollarAttachment"
  1388.             local RightC = Instance.new("Attachment")
  1389.             RightC.Position = Vector3.new(-0.5, 1, -0)
  1390.             RightC.Name = "RightCollarAttachment"
  1391.             local LeftH = Instance.new("Attachment")
  1392.             LeftH.Position = Vector3.new(0.1, 1, -0)
  1393.             LeftH.Name = "LeftHipAttachment"
  1394.             local LeftHOrig = Instance.new("Attachment")
  1395.             LeftHOrig.Position = Vector3.new(-0.4, -1, 0)
  1396.             LeftHOrig.Name = "LeftHipAttachmentOrig"
  1397.             local RightH = Instance.new("Attachment")
  1398.             RightH.Position = Vector3.new(-0.1, 1, 0)
  1399.             RightH.Name = "RightHipAttachment"
  1400.             local RightHOrig = Instance.new("Attachment")
  1401.             RightHOrig.Position = Vector3.new(0.4, -1, 0)
  1402.             RightHOrig.Name = "RightHipAttachmentOrig"
  1403.             local NH = Instance.new("Attachment")
  1404.             NH.Position = Vector3.new(0, -0.5, 0)
  1405.             NH.Name = "NeckAttachment"
  1406.            
  1407.             local LeftArmdoll = Instance.new("BallSocketConstraint")
  1408.             LeftArmdoll.TwistLimitsEnabled = false
  1409.             LeftArmdoll.Name = "LeftArmdoll"
  1410.             local RightArmdoll = Instance.new("BallSocketConstraint")
  1411.             RightArmdoll.TwistLimitsEnabled = false
  1412.             RightArmdoll.Name = "RightArmdoll"
  1413.             local LeftLegdoll = Instance.new("BallSocketConstraint")
  1414.             LeftLegdoll.TwistLimitsEnabled = false
  1415.             LeftLegdoll.Name = "LeftLegdoll"
  1416.             local RightLegdoll = Instance.new("BallSocketConstraint")
  1417.             RightLegdoll.TwistLimitsEnabled = false
  1418.             RightLegdoll.Name = "RightLegdoll"
  1419.             local Neckdoll = Instance.new("BallSocketConstraint")
  1420.             Neckdoll.TwistLimitsEnabled = false
  1421.             Neckdoll.Name = "Neckdoll"
  1422.            
  1423.             LeftC:Clone().Parent = Character["Left Arm"]
  1424.             RightC:Clone().Parent = Character["Right Arm"]
  1425.             LeftH:Clone().Parent = Character["Left Leg"]
  1426.             LeftHOrig:Clone().Parent = Character.Torso
  1427.             RightH:Clone().Parent = Character["Right Leg"]
  1428.             RightHOrig:Clone().Parent = Character.Torso
  1429.             NH:Clone().Parent = Character["Head"]
  1430.            
  1431.  
  1432.             LeftArmdoll:Clone().Parent = Character.Torso
  1433.             RightArmdoll:Clone().Parent = Character.Torso
  1434.             LeftLegdoll:Clone().Parent = Character.Torso
  1435.             RightLegdoll:Clone().Parent = Character.Torso
  1436.             Neckdoll:Clone().Parent = Character.Torso
  1437.            
  1438.             Character.Torso.LeftArmdoll.Attachment0 = Character.Torso.LeftCollarAttachment
  1439.             Character.Torso.LeftArmdoll.Attachment1 = Character["Left Arm"].LeftCollarAttachment
  1440.             Character.Torso.RightArmdoll.Attachment0 = Character.Torso.RightCollarAttachment
  1441.             Character.Torso.RightArmdoll.Attachment1 = Character["Right Arm"].RightCollarAttachment
  1442.             Character.Torso.LeftLegdoll.Attachment0 = Character.Torso.LeftHipAttachmentOrig
  1443.             Character.Torso.LeftLegdoll.Attachment1 = Character["Left Leg"].LeftHipAttachment
  1444.             Character.Torso.RightLegdoll.Attachment0 = Character.Torso.RightHipAttachmentOrig
  1445.             Character.Torso.RightLegdoll.Attachment1 = Character["Right Leg"].RightHipAttachment
  1446.             Character.Torso.Neckdoll.Attachment0 = Character.Torso.NeckAttachment
  1447.             Character.Torso.Neckdoll.Attachment1 = Character.Head.NeckAttachment
  1448.             for i, v in pairs(Character:GetChildren()) do
  1449.                 if v:IsA("BasePart") then
  1450.                     if v.Name == "Right Arm" or v.Name == "Left Arm" then
  1451.                         v.CustomPhysicalProperties = PhysicalProperties.new(0.1, 0, 0, 0, 0)
  1452.                         local legpart = Instance.new("Part")
  1453.                         legpart.Size = Vector3.new(1,2,1)
  1454.                         legpart.Transparency = 1
  1455.                         legpart.Parent = v
  1456.                        
  1457.                         local weld = Instance.new("ManualWeld")
  1458.                         weld.Parent = script.Parent
  1459.                         weld.Part0 = legpart
  1460.                         weld.Part1 = v
  1461.                        
  1462.                         weld.C0 = CFrame.new(0,0,0)
  1463.                         weld.C1 = CFrame.new(0,0,0)
  1464.                        
  1465.            
  1466.                         PhysicsService:SetPartCollisionGroup(legpart, "TopLimbs")
  1467.                     elseif v.Name == "Left Leg" or v.Name == "Right Leg" then
  1468.                         v.CustomPhysicalProperties = PhysicalProperties.new(0.1, 0, 0, 0, 0)
  1469.                         local legpart = Instance.new("Part")
  1470.                         legpart.Size = Vector3.new(1,2,1)
  1471.                         legpart.Transparency = 1
  1472.                         legpart.Parent = v
  1473.                        
  1474.                         local weld = Instance.new("ManualWeld")
  1475.                         weld.Parent = script.Parent
  1476.                         weld.Part0 = legpart
  1477.                         weld.Part1 = v
  1478.                        
  1479.                         weld.C0 = CFrame.new(0,0,0)
  1480.                         weld.C1 = CFrame.new(0,0,0)
  1481.                        
  1482.            
  1483.                         PhysicsService:SetPartCollisionGroup(legpart, "BottomLimbs")
  1484.                     elseif v.Name == "Torso" or v.Name == "Head" then
  1485.                         if v.Size == Vector3.new(2, 1, 1) then
  1486.                             v.CustomPhysicalProperties = PhysicalProperties.new(0.1, 0, 0, 0, 0)
  1487.                             local headpart = Instance.new("Part")
  1488.                             headpart.Size = Vector3.new(2,1,1)
  1489.                             headpart.Transparency = 1
  1490.                             headpart.Parent = v
  1491.                            
  1492.                             local weld = Instance.new("ManualWeld")
  1493.                             weld.Parent = script.Parent
  1494.                             weld.Part0 = headpart
  1495.                             weld.Part1 = v
  1496.                            
  1497.                             weld.C0 = CFrame.new(0,0,0)
  1498.                             weld.C1 = CFrame.new(0,0,0)
  1499.                         else
  1500.                             local torsopart = Instance.new("Part")
  1501.                             torsopart.Size = Vector3.new(2,2,1)
  1502.                             torsopart.Transparency = 1
  1503.                             torsopart.Parent = v
  1504.                            
  1505.                             local weld = Instance.new("ManualWeld")
  1506.                             weld.Parent = script.Parent
  1507.                             weld.Part0 = torsopart
  1508.                             weld.Part1 = v
  1509.                            
  1510.                             weld.C0 = CFrame.new(0,0,0)
  1511.                             weld.C1 = CFrame.new(0,0,0)
  1512.                         end
  1513.                         PhysicsService:SetPartCollisionGroup(v, "BignSmallLimbs")
  1514.                     end
  1515.                 end
  1516.             end
  1517.                    
  1518.         for i, v in pairs(Character:GetDescendants()) do
  1519.             if v.ClassName == "Motor6D" then
  1520.                 v:Remove()
  1521.             end
  1522.         end
  1523. end
  1524.  
  1525. function SelfTerminate()
  1526.     while wait() do
  1527.         if Character == nil then
  1528.             wait(1)
  1529.             script:Destroy()
  1530.         end
  1531.     end
  1532. end
  1533.  
  1534. function Talk(chatmessage)
  1535.     local WhatHeSaid = chatmessage
  1536.     if Character.Torso:FindFirstChild("BillboardGui") ~= nil then
  1537.         Character.Torso.BillboardGui:Destroy()
  1538.     elseif Character.Torso:FindFirstChild("SecondBoard") ~= nil then
  1539.         Character.Torso.SecondBoard:Destroy()
  1540.     end
  1541.     local BillboardGui = Instance.new("BillboardGui")
  1542.     BillboardGui.Parent = Character.Torso
  1543.     BillboardGui.StudsOffset = Vector3.new(0, 4, 0)
  1544.     BillboardGui.Size = UDim2.new(1, 0, 1, 0)
  1545.     local Text = Instance.new("TextLabel")
  1546.     Text.Text = ""
  1547.     Text.Size = UDim2.new(1, 0, 1, 0)
  1548.     Text.BackgroundTransparency = 1
  1549.     Text.Parent = BillboardGui
  1550.     Text.TextSize = 16
  1551.     Text.TextColor3 = Color3.new(1, 1, 1)
  1552.     Text.TextStrokeTransparency = 0
  1553.     Text.TextStrokeColor3 = Color3.new(0.4, 0.4, 0.4)
  1554.     Text.Text = WhatHeSaid
  1555.     wait(1)
  1556.     local chance = math.random(1, 2)
  1557.     local properties = {}
  1558.     properties.TextTransparency = 1
  1559.     properties.TextStrokeTransparency = 1
  1560.     if chance == 1 then
  1561.         properties.Rotation = -45
  1562.     else
  1563.         properties.Rotation = 45
  1564.     end
  1565.     local TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
  1566.     local Tween = TweenService:Create(Text, TweenInfo, properties)
  1567.     Tween:Play()
  1568.     Tween.Completed:Connect(function()
  1569.         if BillboardGui then
  1570.             BillboardGui:Destroy()
  1571.         end
  1572.     end)
  1573.     properties.TextTransparency = nil
  1574.     properties.TextStrokeTransparency = nil
  1575.     properties.Rotation = nil
  1576.     Tween = TweenService:Create(BillboardGui, TweenInfo, properties)
  1577.     Tween:Play()
  1578. end
  1579.  
  1580. Character.Humanoid.Running:Connect(function(spd)
  1581.     if spd > 0.1 then
  1582.         if action == true or walking == true then
  1583.             return
  1584.         end
  1585.         if GunEquipped == true then
  1586.             walking = true
  1587.             GunWalkAnimation()
  1588.         else
  1589.             walking = true
  1590.             WalkAnimation()
  1591.         end
  1592.     elseif spd <= 0.1 then
  1593.         if action == true or walking == false then
  1594.             return
  1595.         end
  1596.         if GunEquipped == true then
  1597.             walking = false
  1598.             GunIdleAnimation()
  1599.         else
  1600.             walking = false
  1601.             IdleAnimation()
  1602.         end
  1603.     end
  1604. end)
  1605.  
  1606. Character.Humanoid.StateChanged:Connect(function(old, new)
  1607.     if freefall == true and Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall then
  1608.         freefall = false
  1609.     end
  1610.     if Character.Humanoid:GetState() == Enum.HumanoidStateType.Dead then
  1611.         Ragdoll()
  1612.         if Gun.Parent ~= nil and Gun:FindFirstChildOfClass("ManualWeld") then
  1613.             Gun.ManualWeld:Destroy()
  1614.         end
  1615.         wait(0.1)
  1616.         script:Destroy()
  1617.     elseif Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  1618.         freefall = true
  1619.         FallingAnimation()
  1620.     end
  1621. end)
  1622.  
  1623. Playerr.Chatted:Connect(function(chatmessage)
  1624.     Talk(chatmessage)
  1625. end)
  1626.  
  1627. function stoprunning()
  1628.     if GunEquipped == false then
  1629.             return
  1630.         end
  1631.         shiftdown = false
  1632.         running = false
  1633.         Character.Humanoid.WalkSpeed = 10
  1634.         if walking == true then
  1635.             GunWalkAnimation()
  1636.         else
  1637.             GunIdleAnimation()
  1638.         end
  1639. end
  1640.  
  1641. RemoteEvent.OnServerEvent:Connect(function(player, contact, contact2)
  1642.     if contact == "gunhold" then
  1643.         GunTakeOut()
  1644.     elseif contact == "gunfire" then
  1645.         if GunEquipped == true then
  1646.             GunFire(contact2)
  1647.         end
  1648.     elseif contact == "explosionfire" then
  1649.         if GunEquipped == true and shotavailable == true then
  1650.             GunExplosionFire(contact2)
  1651.         end
  1652.     elseif contact == "startrunning" then
  1653.         if GunEquipped == false or action == true then
  1654.             return
  1655.         end
  1656.         if walking == true then
  1657.             shiftdown = true
  1658.             Character.Humanoid.WalkSpeed = 40
  1659.             GunRunAnimation()
  1660.         end
  1661.     elseif contact == "stoprunning" then
  1662.         shiftdown = false
  1663.         if GunEquipped == false or action == true or running == false then
  1664.             return
  1665.         end
  1666.             stoprunning()
  1667.     elseif contact == "musicswitch" then
  1668.         if music == false then
  1669.             YoshisIsland:Play()
  1670.             music = true
  1671.         else
  1672.             YoshisIsland:Stop()
  1673.             music = false
  1674.         end
  1675.     elseif contact == "tacklehug" then
  1676.         if GunEquipped == true then
  1677.             return
  1678.         end
  1679.         if action == true then
  1680.             if grabbed == true then
  1681.                 if on == "true" then
  1682.                     on = "more"
  1683.                     return
  1684.                 end
  1685.             end
  1686.             return
  1687.         end
  1688.         on = "true"
  1689.         Tackle()
  1690.     elseif contact == "stoptacklehug" then
  1691.         if GunEquipped == true then
  1692.             return
  1693.         end
  1694.         on = "false"
  1695.     end
  1696. end)
  1697.  
  1698. spawn(SelfTerminate)
  1699. wait()
  1700. IdleAnimation()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement