Advertisement
memberhero

Ace Gun

Feb 9th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.87 KB | None | 0 0
  1. ---EDIT by naser2018----
  2. Brickcolor = "Crimson"
  3.  
  4. r = 125
  5. g = 0
  6. b = 0
  7.  
  8. Ply = game.Players.LocalPlayer
  9. Char = Ply.Character
  10. Tor = Char.Torso
  11. He = Char.Head
  12. Ne = Tor.Neck
  13. Hu = Char.Humanoid
  14. LA = Char["Left Arm"]
  15. LL = Char["Left Leg"]
  16. RA = Char["Right Arm"]
  17. RL = Char["Right Leg"]
  18. LS = Tor["Left Shoulder"]
  19. RS = Tor["Right Shoulder"]
  20. LH = Tor["Left Hip"]
  21. RH = Tor["Right Hip"]
  22. Combo = 1
  23. Effects = { }
  24.  
  25. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. RP = Char.HumanoidRootPart
  27. RJ = RP.RootJoint
  28. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  29. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  30. RHCF = CFrame.Angles(0, math.rad(90), 0)
  31. attack = false
  32. equipped = false
  33. local Anim = "Idle"
  34. cam = workspace.CurrentCamera
  35. local RbxUtility = LoadLibrary("RbxUtility")
  36. local Create = RbxUtility.Create
  37. local m = Create("Model"){
  38. Parent = Char,
  39. Name = "WeaponModel",
  40. }
  41.  
  42. RS.Parent = nil
  43. LS.Parent = nil
  44.  
  45. RW = Create("Weld"){
  46. Name = "Right Shoulder",
  47. Part0 = Tor ,
  48. C0 = CFrame.new(1.5, 0.5, 0),
  49. C1 = CFrame.new(0, 0.5, 0),
  50. Part1 = RA ,
  51. Parent = Tor ,
  52. }
  53.  
  54. LW = Create("Weld"){
  55. Name = "Left Shoulder",
  56. Part0 = Tor ,
  57. C0 = CFrame.new(-1.5, 0.5, 0),
  58. C1 = CFrame.new(0, 0.5, 0) ,
  59. Part1 = LA ,
  60. Parent = Tor ,
  61. }
  62.  
  63.  
  64.  
  65. mouse = Ply:GetMouse()
  66. if Brickcolor == "" then
  67. choiceofcolor = BrickColor.new(Color3.fromRGB(r,g,b))
  68. else
  69. choiceofcolor = BrickColor.new(Brickcolor)
  70. end
  71.  
  72.  
  73. tclr = choiceofcolor.Name
  74. tlcr3 = choiceofcolor.Color
  75. function swait(num)
  76. if num == 0 or num == nil then
  77. game:service'RunService'.Heartbeat:wait()
  78. else
  79. for i = 0, num do
  80. game:service'RunService'.Heartbeat:wait()
  81. end
  82. end
  83. end
  84.  
  85. function RemoveOutlines(part)
  86. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  87. end
  88.  
  89. function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz)
  90. local Part = Create("Part"){
  91. formFactor = FF,
  92. Parent = Par,
  93. Reflectance = Ref,
  94. Transparency = Tra,
  95. CanCollide = false,
  96. Locked = true,
  97. BrickColor = BrickColor.new(tostring(BC)),
  98. Name = Nam,
  99. Size = Siz,
  100. Position = Tor.Position,
  101. Material = Mat,
  102. }
  103. RemoveOutlines(Part)
  104. return Part
  105. end
  106.  
  107. function CreateMesh(Ms, Par, MType, MId, OS, Sca)
  108. local Msh = Create(Ms){
  109. Parent = Par,
  110. Offset = OS,
  111. Scale = Sca,
  112. }
  113. if Ms == "SpecialMesh" then
  114. Msh.MeshType = MType
  115. Msh.MeshId = MId
  116. end
  117. return Msh
  118. end
  119.  
  120. function CreateWeld(Par, PartA, PartB, CA, CB)
  121. local Weld = Create("Weld"){
  122. Parent = Par,
  123. Part0 = PartA,
  124. Part1 = PartB,
  125. C0 = CA,
  126. C1 = CB,
  127. }
  128. return Weld
  129. end
  130.  
  131. local function CFrameFromTopBack(at, top, back)
  132. local right = top:Cross(back)
  133. return CFrame.new(at.x, at.y, at.z,
  134. right.x, top.x, back.x,
  135. right.y, top.y, back.y,
  136. right.z, top.z, back.z)
  137. end
  138.  
  139. function Triangle(a, b, c)
  140. local edg1 = (c - a):Dot((b - a).unit)
  141. local edg2 = (a - b):Dot((c - b).unit)
  142. local edg3 = (b - c):Dot((a - c).unit)
  143. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  144. a, b, c = a, b, c
  145. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  146. a, b, c = b, c, a
  147. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  148. a, b, c = c, a, b
  149. else
  150. assert(false, "unreachable")
  151. end
  152.  
  153. local len1 = (c - a):Dot((b - a).unit)
  154. local len2 = (b - a).magnitude - len1
  155. local width = (a + (b - a).unit * len1 - c).magnitude
  156.  
  157. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  158.  
  159. local list = {}
  160.  
  161. local Color = BrickColor.new(tclr)
  162.  
  163. if len1 > 0.01 then
  164. local w1 = Create('WedgePart', m){
  165. Material = "DiamondPlate",
  166. FormFactor = 'Custom',
  167. BrickColor = Color,
  168. Transparency = 0,
  169. Reflectance = 0,
  170. Material = "Neon",
  171. CanCollide = false,
  172. Anchored = true,
  173. Parent = workspace,
  174. Transparency = 0.3,
  175. }
  176. game:GetService("Debris"):AddItem(w1, 5)
  177. RemoveOutlines(w1)
  178. local sz = Vector3.new(0.2, width, len1)
  179. w1.Size = sz
  180. local sp = Create("SpecialMesh"){
  181. Parent = w1,
  182. MeshType = "Wedge",
  183. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  184. }
  185. w1:BreakJoints()
  186. table.insert(Effects, {
  187. w1,
  188. "Elec",
  189. .05,
  190. 0.03,
  191. 0.03,
  192. 0.03,
  193. sp
  194. })
  195. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  196. table.insert(list, w1)
  197. end
  198. if len2 > 0.01 then
  199. local w2 = Create('WedgePart', m){
  200. Material = "DiamondPlate",
  201. FormFactor = 'Custom',
  202. BrickColor = Color,
  203. Transparency = 0,
  204. Reflectance = 0,
  205. Material = "Neon",
  206. CanCollide = false,
  207. Anchored = true,
  208. Parent = workspace,
  209. Transparency = 0.3,
  210. }
  211. game:GetService("Debris"):AddItem(w2, 5)
  212. RemoveOutlines(w2)
  213. local sz = Vector3.new(0.2, width, len2)
  214. w2.Size = sz
  215. local sp = Create("SpecialMesh"){
  216. Parent = w2,
  217. MeshType = "Wedge",
  218. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  219. }
  220. w2:BreakJoints()
  221. table.insert(Effects, {
  222. w2,
  223. "Elec",
  224. .05,
  225. 0.03,
  226. 0.03,
  227. 0.03,
  228. sp
  229. })
  230. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  231. table.insert(list, w2)
  232. end
  233. return unpack(list)
  234. end
  235.  
  236. function CreateSound(id, par, vol, pit)
  237. coroutine.resume(coroutine.create(function()
  238. local sou = Create("Sound"){
  239. Parent = par or workspace,
  240. Volume = vol,
  241. Pitch = pit or 1,
  242. SoundId = id,
  243. }
  244. wait()
  245. sou:play()
  246. wait(6)
  247. sou:remove()
  248. end))
  249. end
  250.  
  251. function clerp(a,b,t)
  252. return a:lerp(b,t)
  253. end
  254.  
  255. function rayCast(Pos, Dir, Max, Ignore)
  256. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  257. end
  258.  
  259. function Damage(hit, damage, cooldown, Color1, Color3, HSound, HPitch)
  260. for i, v in pairs(hit:GetChildren()) do
  261. if v:IsA("Humanoid") and hit.Name ~= Char.Name then
  262. local find = v:FindFirstChild("Hitz")
  263. if not find then
  264. if v.Parent:findFirstChild("Head") then
  265. local BillG = Create("BillboardGui"){
  266. Parent = v.Parent.Head,
  267. Size = UDim2.new(1, 0, 1, 0),
  268. Adornee = v.Parent.Head,
  269. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  270. }
  271. local TL = Create("TextLabel"){
  272. Parent = BillG,
  273. Size = UDim2.new(3, 3, 3, 3),
  274. BackgroundTransparency = 1,
  275. Text = tostring(damage).."-",
  276. TextColor3 = tclr.Color,
  277. TextStrokeColor3 = tclr3,
  278. TextStrokeTransparency = 0,
  279. TextXAlignment = Enum.TextXAlignment.Center,
  280. TextYAlignment = Enum.TextYAlignment.Center,
  281. FontSize = Enum.FontSize.Size18,
  282. Font = "ArialBold",
  283. }
  284. coroutine.resume(coroutine.create(function()
  285. wait(1)
  286. for i = 0, 1, .1 do
  287. wait(.1)
  288. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  289. end
  290. BillG:Destroy()
  291. end))
  292. end
  293. v.Health = v.Health - damage
  294. local bool = Create("BoolValue"){
  295. Parent = v,
  296. Name = 'Hitz',
  297. }
  298. if HSound ~= nil and HPitch ~= nil then
  299. CreateSound(HSound, game.Players.LocalPlayer.Character["Right Arm"], .7, HPitch)
  300. end
  301. game:GetService("Debris"):AddItem(bool, cooldown)
  302. end
  303. end
  304. end
  305. end
  306.  
  307. function MagnitudeDamage(Part, magni, mindam, maxdam)
  308. for _, c in pairs(workspace:children()) do
  309. local hum = c:findFirstChild("Humanoid")
  310. if hum ~= nil then
  311. local head = c:findFirstChild("Torso")
  312. if head ~= nil then
  313. local targ = head.Position - Part.Position
  314. local mag = targ.magnitude
  315. if mag <= magni and c.Name ~= Ply.Name then
  316. Damage(head.Parent, math.random(mindam,maxdam), 0, BrickColor.new("Really black"), Color, "rbxassetid://199149186", 1)
  317. end
  318. end
  319. end
  320. end
  321. end
  322.  
  323.  
  324. ShotgunHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,1,"Really black","ShotgunHandle",Vector3.new(0.274405897, 0.205804482, 0.411608905))
  325. ShotgunHandleweld=CreateWeld(m,Char["Left Arm"],ShotgunHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.935044765, -0.0157318115, 0.265125275, -2.65166643e-012, -0.999999523, -2.23517418e-007, 1, -2.65166556e-012, -6.50521303e-019, 5.41119453e-023, -2.23517389e-007, 0.999999642))
  326. Barrel=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,1,"Really black","Barrel",Vector3.new(0.411608934, 0.200000003, 0.343007416))
  327. Barrelweld=CreateWeld(m,ShotgunHandle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.54535675, -2.64179325, -0.000228881836, -7.04824706e-005, -1.86838183e-016, -0.999999464, 0.999999464, 2.65166535e-012, -7.04824706e-005, 2.65166643e-012, -1, -5.41138134e-023))
  328. CreateMesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.360157818, 1))
  329. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.205804482, 0.200000003, 0.343007416))
  330. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.373851776, -2.6417737, -0.000228881836, -7.04824706e-005, -1.86838183e-016, -0.999999464, 0.999999464, 2.65166535e-012, -7.04824706e-005, 2.65166643e-012, -1, -5.41138134e-023))
  331. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.360157818, 1))
  332. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  333. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.36594534, -0.857486725, -0.000274658203, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41138134e-023))
  334. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.343007356, 0.343007445, 0.343007445))
  335. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.205804482, 0.200000003, 0.343007416))
  336. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.648262024, -2.64179325, -0.000228881836, -7.04824706e-005, -1.86838183e-016, -0.999999464, 0.999999464, 2.65166535e-012, -7.04824706e-005, 2.65166643e-012, -1, -5.41138134e-023))
  337. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.360157818, 1))
  338. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Light stone grey","Part",Vector3.new(0.343007416, 2.05804467, 0.343007416))
  339. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.377281189, -1.64534235, -0.000228881836, -7.04824706e-005, -1.86838183e-016, -0.999999464, 0.999999464, 2.65166535e-012, -7.04824706e-005, 2.65166643e-012, -1, -5.41138134e-023))
  340. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  341. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.480210334, 0.686014831, 0.343007416))
  342. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.651687622, -0.273382664, -0.000198364258, -7.04824706e-005, -1.86838183e-016, -0.999999464, 0.999999464, 2.65166535e-012, -7.04824706e-005, 2.65166643e-012, -1, -5.41138134e-023))
  343. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  344. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 0.205804601, 0.200000003))
  345. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.754508972, -2.16281223, -0.105438232, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  346. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.68601501, 1, 0.686014891))
  347. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Light stone grey","Part",Vector3.new(0.411603868, 0.200000003, 0.411603898))
  348. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.272898197, 0.205749512, 0.480178833, 0.999999642, 2.98028588e-008, -7.06910869e-005, -2.98028482e-008, 1, 2.10409446e-012, 7.06910869e-005, 1.07548546e-015, 0.999999642))
  349. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.343003303, 1))
  350. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 0.205804601, 0.200000003))
  351. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.754508972, -1.06519508, 0.100372314, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  352. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.68601501, 1, 0.686014891))
  353. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,tclr,"Part",Vector3.new(0.411608875, 0.200000003, 0.274405926))
  354. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.272881031, 0.207458496, 0.480178833, 0.999999642, 2.98028588e-008, -7.06910869e-005, -2.98028482e-008, 1, 2.10409446e-012, 7.06910869e-005, 1.07562829e-015, 0.999999642))
  355. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.360157818, 1))
  356. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 0.205804601, 0.200000003))
  357. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.754508972, -1.06519508, -0.105438232, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  358. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.68601501, 1, 0.686014891))
  359. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.411608964, 0.205804601, 0.346437484))
  360. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.342899323, -1.06519222, -0.000823974609, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  361. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  362. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 0.205804601, 0.200000003))
  363. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.754508972, -2.16281223, 0.100372314, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  364. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.68601501, 1, 0.686014891))
  365. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.346437484, 0.205804482))
  366. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.478748322, -0.00122070313, 0.102870941, 0.999999642, -1.08415606e-018, -7.06910869e-005, -8.67319759e-019, 1, -1.87299419e-016, 7.06910869e-005, 1.87391349e-016, 0.999999642))
  367. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.686014831, 1, 1))
  368. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.411608875, 0.205804482, 0.343007416))
  369. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 0, 0.171504974, 0.999999285, -1.51788294e-018, 0, -1.51788294e-018, 1, -5.77734993e-020, 0, -5.77734993e-020, 0.999999285))
  370. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  371. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  372. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.65212965, -0.85749054, -0.0690460205, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41138134e-023))
  373. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.343007356, 0.343007445, 0.343007445))
  374. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Light stone grey","Part",Vector3.new(0.343007416, 2.05804467, 0.343007416))
  375. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.648254395, -1.64535713, -0.000228881836, -7.04824706e-005, -1.86838183e-016, -0.999999464, 0.999999464, 2.65166535e-012, -7.04824706e-005, 2.65166643e-012, -1, -5.41138134e-023))
  376. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  377. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.686014771, 0.480210334, 0.343007416))
  378. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.27342844, -0.445884705, -0.000259399414, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41119453e-023))
  379. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  380. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.651693344, -0.85749054, 0.0681915283, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41138134e-023))
  381. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.343007356, 0.343007445, 0.343007445))
  382. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.891819119, 0.411608845, 0.343007416))
  383. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.113838196, -0.423885345, 0.000503540039, -0.865529597, -2.29509619e-012, 0.50085628, -0.50085628, -1.32810386e-012, -0.865529597, 2.65166643e-012, -1, -5.41119453e-023))
  384. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(1.783638, 0.200000003, 0.205804422))
  385. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.50810814, -0.754581451, -0.000137329102, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41138134e-023))
  386. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.68601495, 1))
  387. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,tclr,"Part",Vector3.new(0.411608875, 0.200000003, 0.274405926))
  388. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.273527622, -0.209014893, 0.480205536, 0.999999344, 2.98028588e-008, -0.000141352371, -2.98028411e-008, 1, 4.21351756e-012, 0.000141352371, 1.26303582e-015, 0.999999344))
  389. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.37730819, 1))
  390. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.274405956, 0.891819477, 0.346437484))
  391. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.548706055, -1.61399889, -0.000823974609, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  392. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.411608934, 0.205804601, 0.346437484))
  393. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.548706055, -2.16281366, -0.000823974609, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  394. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Light stone grey","Part",Vector3.new(0.411602557, 0.200000003, 0.411602587))
  395. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.273536205, -0.205581665, 0.480205536, 0.999999344, 2.98028588e-008, -0.000141352371, -2.98028411e-008, 1, 4.21351756e-012, 0.000141352371, 1.26288293e-015, 0.999999344))
  396. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.3430022, 1))
  397. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.411608934, 0.205804601, 0.346437484))
  398. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.548706055, -1.06519127, -0.000823974609, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  399. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 1.02902222, 0.205804482))
  400. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.229156494, -0.201507568, 0.480171204, -0.258818954, 0.965925455, -6.5301144e-008, -0.96592468, -0.258819073, -7.28488203e-009, -4.47033983e-008, 9.78950112e-008, 0.999998987))
  401. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0517941117, 0.753587306, 0.148865223))
  402. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 1.02902222, 0.200000003))
  403. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.295913696, 0.0476303101, 0.119953156, -0.183012679, 0.965925515, 0.18301259, -0.683011949, -0.258819044, 0.683012009, 0.707105875, 1.14738882e-007, 0.707106292))
  404. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0517941117, 0.753587306, 0.148865223))
  405. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(1.30342817, 0.205804482, 0.343007416))
  406. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.26771879, -0.171478271, -0.000198364258, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41119453e-023))
  407. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 1.02902222, 0.200000003))
  408. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.109359741, -0.655639648, 0.510620117, 0.183012411, 0.965925574, 0.183012441, -0.68301183, 0.258818775, -0.683012307, -0.707106233, 5.37700018e-008, 0.707106113))
  409. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0517941117, 0.753450096, 0.148796618))
  410. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 1.02902222, 0.200000003))
  411. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.297683716, 0.0471572876, 0.119953156, 0.183012515, 0.965925515, -0.183012411, -0.683012307, 0.258818865, 0.68301183, 0.707105637, 7.80294496e-009, 0.707106352))
  412. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0517941117, 0.753587306, 0.148865223))
  413. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.411608964, 0.205804601, 0.346437484))
  414. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.342903137, -2.16281414, -0.000823974609, 4.02331182e-007, 1.12467571e-018, -0.999999106, 0.99999702, 2.65165884e-012, 2.08615674e-007, 2.65166079e-012, -0.999997854, -5.41118318e-023))
  415. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  416. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.343007386, 0.343007356, 0.343007416))
  417. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0353784561, -0.651687622, 0.00016784668, -0.999999344, -2.65166491e-012, 7.00652381e-005, -7.00652381e-005, -1.85731826e-016, -0.999999344, 2.65166643e-012, -1, -5.4111939e-023))
  418. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  419. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.274405956, 0.205804482, 0.343007416))
  420. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.478794575, -0.102890015, -0.000198364258, -0.999999642, -2.65166578e-012, 7.06910869e-005, -7.06910869e-005, -1.87391362e-016, -0.999999642, 2.65166643e-012, -1, -5.41119453e-023))
  421. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.82321763, 0.343007356, 0.343007416))
  422. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0818824768, -0.459415436, -7.62939453e-005, -0.865718424, -2.29559687e-012, 0.500530124, -0.500530124, -1.32723899e-012, -0.865718424, 2.65166643e-012, -1, -5.41119453e-023))
  423. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 1.02902222, 0.200000003))
  424. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.10760498, -0.655174255, 0.510620117, -0.18301256, 0.965925455, -0.183012798, -0.683011591, -0.258819133, -0.683012605, -0.707106292, -2.35276794e-008, 0.707105815))
  425. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0517941117, 0.753587306, 0.148865223))
  426. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,tclr,"Part",Vector3.new(0.200000003, 1.02902222, 0.205804482))
  427. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.230926514, -0.201982498, 0.480171204, 0.258818656, 0.965925574, 8.02022342e-008, -0.965924799, 0.258818835, -5.28825353e-007, -4.47034608e-007, 4.54816842e-008, 0.999999046))
  428. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0517941117, 0.753587306, 0.148865223))
  429. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(1.09762359, 0.343007356, 0.343007416))
  430. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.10375023, -0.155986786, 0.00102233887, -0.999999166, -2.65155259e-012, 0.000461965625, -0.000468551938, 5.56010587e-014, -0.999994993, 2.65157514e-012, -0.999996066, -4.26325438e-014))
  431. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.617413342, 1.09762371, 0.343007416))
  432. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.293060303, 1.10386992, 0.00102233887, -0.00047101063, 1.29604875e-014, -0.999999285, 0.999999285, 2.65161482e-012, -0.00047101063, 2.65160962e-012, -1, -1.42093589e-014))
  433. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  434. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Part",Vector3.new(0.480210334, 0.823217809, 0.343007416))
  435. Partweld=CreateWeld(m,ShotgunHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.594764709, 0.147701263, 0.00117492676, -0.499999762, -1.32583267e-012, -0.866024554, 0.866024554, 2.29640851e-012, -0.499999762, 2.65166643e-012, -1, -6.73411617e-023))
  436. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  437. Wedge=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Wedge",Vector3.new(0.343007326, 0.205804482, 0.343007416))
  438. Wedgeweld=CreateWeld(m,ShotgunHandle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00016784668, 0.171470642, 2.0906744, -1.553847e-012, -1, -5.96497784e-008, 7.06910869e-005, -5.96498282e-008, 0.999999642, -0.999999642, -2.65166578e-012, 7.06910869e-005))
  439. CreateMesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  440. Wedge=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.DiamondPlate,0,0,"Really black","Wedge",Vector3.new(0.343007326, 0.274405897, 1.09762394))
  441. Wedgeweld=CreateWeld(m,ShotgunHandle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00102233887, -0.153308868, -1.10388994, 2.34347741e-012, -0.999999285, -5.96529546e-008, 5.28991086e-006, -5.96529972e-008, 0.99999851, -0.999999583, -2.65160051e-012, 4.23192796e-006))
  442. CreateMesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  443.  
  444.  
  445. local PE1 = Create("ParticleEmitter"){
  446. Parent = game.Players.LocalPlayer.Character["Right Arm"],
  447. Color = ColorSequence.new(tlcr3, Color3.new (0, 0, 0)),
  448. Transparency = NumberSequence.new(.5),
  449. Size = NumberSequence.new(0.3),
  450. Texture = "rbxassetid://263433152",
  451. Lifetime = NumberRange.new(1.8),
  452. Rate = 25,
  453. VelocitySpread = 180,
  454. Rotation = NumberRange.new(100),
  455. Speed = NumberRange.new(2),
  456. LightEmission = 0.5,
  457. LockedToPart = true
  458. }
  459.  
  460. local PE1 = Create("ParticleEmitter"){
  461. Parent = Barrel,
  462. Color = ColorSequence.new(BrickColor.new(tclr).Color),
  463. Transparency = NumberSequence.new(0),
  464. Size = NumberSequence.new(.5),
  465. Texture = "rbxassetid://257430870",
  466. Lifetime = NumberRange.new(.1),
  467. Rate = 100,
  468. VelocitySpread = 180,
  469. Rotation = NumberRange.new(0),
  470. Speed = NumberRange.new(0),
  471. LightEmission = .6,
  472. LockedToPart = true,
  473. Enabled = false
  474. }
  475.  
  476. local PE2 = PE1:Clone()
  477. PE2.Size = NumberSequence.new(.7)
  478. PE2.LightEmission = 1
  479. PE2.Texture = "rbxassetid://87729590"
  480.  
  481. local Lite = Create("PointLight"){
  482. Parent = Barrel,
  483. Color = BrickColor.new(tclr).Color,
  484. Shadows = true,
  485. Range = 10,
  486. Brightness = 0.5,
  487. Enabled = false
  488. }
  489.  
  490. function FirstAttack()
  491. attack = true
  492. for i = 0,1,0.2 do
  493. wait()
  494. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  495. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(30)), .3)
  496. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 1, 0) * CFrame.Angles(math.rad(170), math.rad(0), math.rad(20)), .3)
  497. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, -.5) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(20)), .3)
  498. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(30), math.rad(0)), .3)
  499. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(30), math.rad(0)), .3)
  500. ---.C0 = clerp(FakeHandlewelFakeHandleweldd.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-30)), .3)
  501. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  502. end
  503. CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,1)
  504. local HitDeb = game.Players.LocalPlayer.Character["Right Arm"].Touched:connect(function(hit)
  505. Damage(hit.Parent, math.random(30,50), 0.1, BrickColor.new("Really black"), BrickColor.new(tclr), "rbxassetid://154965973", 1)
  506. end)
  507. for i = 0,1,0.1 do
  508. wait()
  509. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  510. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-40)), .3)
  511. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.3, -.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-20)), .5)
  512. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-40)), .5)
  513. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-40), math.rad(0)), .5)
  514. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-40), math.rad(0)), .5)
  515. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(35)), .4)
  516. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  517. end
  518. attack = false
  519. HitDeb:disconnect()
  520. end
  521.  
  522.  
  523.  
  524. function ThirdAttack()
  525. attack = true
  526. for i = 0,1,0.2 do
  527. wait()
  528. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  529. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(80)), .3)
  530. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(-50), math.rad(0)), .3)
  531. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-70)), .3)
  532. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  533. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  534. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(.7, .6, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-80)), .3)
  535. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  536. end
  537. CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,1)
  538. local HitDeb = game.Players.LocalPlayer.Character["Right Arm"].Touched:connect(function(hit)
  539. Damage(hit.Parent, math.random(30,50), 0.1, BrickColor.new("Really black"), BrickColor.new(tclr), "rbxassetid://154965973", 1)
  540. end)
  541. for i = 0,1,0.1 do
  542. wait()
  543. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  544. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-60)), .3)
  545. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(-70)), .5)
  546. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-50)), .3)
  547. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  548. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -.5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  549. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  550. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  551. end
  552. attack = false
  553. HitDeb:disconnect()
  554. end
  555.  
  556. function FourthAttack()
  557. attack = true
  558. for i = 0,1,0.2 do
  559. wait()
  560. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  561. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-60)), .3)
  562. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(130), math.rad(100)), .3)
  563. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-50)), .3)
  564. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  565. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -.5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  566. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  567. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  568. end
  569. --- CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,.9)
  570. local HitDeb = game.Players.LocalPlayer.Character["Right Arm"].Touched:connect(function(hit)
  571. Damage(hit.Parent, math.random(30,50), 0.1, BrickColor.new("Really black"), BrickColor.new(tclr), "rbxassetid://154965973", 1)
  572. end)
  573. for i = 0,1,0.1 do
  574. wait()
  575. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  576. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(10), math.rad(0), math.rad(80)), .3)
  577. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(50)), .5)
  578. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-80)), .3)
  579. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  580. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  581. --FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  582. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  583. end
  584. attack = false
  585. HitDeb:disconnect()
  586. end
  587.  
  588. function ContAttack()
  589. attack = true
  590. local HitDeb = game.Players.LocalPlayer.Character["Right Arm"].Touched:connect(function(hit)
  591. Damage(hit.Parent, math.random(10,30), 0.1, BrickColor.new("Really black"), BrickColor.new(tclr), "rbxassetid://154965973", 1)
  592. end)
  593. for i = 1,4 do
  594. for i = 0,1,0.3 do
  595. wait()
  596. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  597. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(80)), .3)
  598. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(-50), math.rad(0)), .3)
  599. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-70)), .3)
  600. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  601. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  602. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(.7, .6, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-80)), .3)
  603. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  604. end
  605. CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,1)
  606. for i = 0,1,0.2 do
  607. wait()
  608. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  609. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-60)), .3)
  610. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(-70)), .5)
  611. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-50)), .3)
  612. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  613. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -.5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  614. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  615. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  616. end
  617. for i = 0,1,0.3 do
  618. wait()
  619. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  620. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-60)), .3)
  621. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(130), math.rad(100)), .3)
  622. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-50)), .3)
  623. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  624. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -.5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-60), math.rad(0)), .3)
  625. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  626. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  627. end
  628. ---CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,.9)
  629. for i = 0,1,0.2 do
  630. wait()
  631. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  632. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(3), math.rad(0), math.rad(80)), .3)
  633. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(70)), .5)
  634. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-80)), .3)
  635. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  636. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .5) * LHCF * CFrame.Angles(math.rad(-3), math.rad(80), math.rad(0)), .3)
  637. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), .3)
  638. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  639. end
  640. end
  641. attack = false
  642. HitDeb:disconnect()
  643. end
  644.  
  645. function Spin()
  646. attack = true
  647. for i = 0,1,0.1 do
  648. wait()
  649. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(70)), .3)
  650. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(-70)), .3)
  651. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(120), math.rad(100)), .3)
  652. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  653. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .4) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-50), math.rad(-10)), .3)
  654. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -.4) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-50), math.rad(10)), .3)
  655. ----FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  656. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  657. end
  658. local HitDeb = game.Players.LocalPlayer.Character["Right Arm"].Touched:connect(function(hit)
  659. Damage(hit.Parent, math.random(20,30), 0, BrickColor.new("Really black"), BrickColor.new(tclr), "rbxassetid://154965973", 1)
  660. end)
  661. for i = 1,2 do
  662. --CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,.95)
  663. for i = 0,1,0.2 do
  664. wait()
  665. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(6), math.rad(0), -6*i), .43)
  666. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  667. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(90)), .3)
  668. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(-70)), .3)
  669. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .4) * RHCF * CFrame.Angles(math.rad(-3), math.rad(-50), math.rad(-10)), .3)
  670. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -.4) * LHCF * CFrame.Angles(math.rad(-3), math.rad(-50), math.rad(10)), .3)
  671. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  672. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  673. end
  674. end
  675. for i = 0,1,0.1 do
  676. wait()
  677. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-70)), .3)
  678. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(70)), .3)
  679. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(-100)), .3)
  680. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  681. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.4) * RHCF * CFrame.Angles(math.rad(-3), math.rad(50), math.rad(5)), .3)
  682. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .4) * LHCF * CFrame.Angles(math.rad(-3), math.rad(50), math.rad(-5)), .3)
  683. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  684. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  685. end
  686. for i = 1,2 do
  687. ---CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,1)
  688. for i = 0,1,0.2 do
  689. wait()
  690. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(6), math.rad(0), 6*i), .43)
  691. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-50)), .3)
  692. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-150), math.rad(-90)), .3)
  693. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(-70)), .3)
  694. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.4) * RHCF * CFrame.Angles(math.rad(-3), math.rad(50), math.rad(-10)), .3)
  695. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .4) * LHCF * CFrame.Angles(math.rad(-3), math.rad(50), math.rad(10)), .3)
  696. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  697. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  698. end
  699. end
  700. attack = false
  701. HitDeb:disconnect()
  702. end
  703.  
  704. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  705. local prt = CreatePart(3, Char, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  706. prt.Anchored = true
  707. prt.CFrame = cframe
  708. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  709. game:GetService("Debris"):AddItem(prt, 2)
  710. Effects[#Effects + 1] = {
  711. prt,
  712. "Cylinder",
  713. delay,
  714. x3,
  715. y3,
  716. z3
  717. } --part, type, delay
  718. end
  719.  
  720. function Shoot(asd, spread1, spread2)
  721. local MainPos = asd.Position
  722. local MainPos2 = mouse.Hit.p
  723. local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100
  724. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread)
  725. num = 30
  726. coroutine.resume(coroutine.create(function(Spreaded)
  727. repeat
  728. wait()
  729. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RP.Parent)
  730. local TheHit = mouse.Hit.p
  731. local mag = (MainPos - pos).magnitude
  732. CylinderEffect(BrickColor.new(tclr), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1)
  733. MainPos = MainPos + (MouseLook.lookVector * 10)
  734. num = num - 1
  735. if hit ~= nil then
  736. num = 0
  737. local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new(tclr), "Reference", Vector3.new())
  738. ref.Anchored = true
  739. ref.CFrame = CFrame.new(pos)
  740. MagnitudeDamage(ref, 5, 5, 10)
  741. game:GetService("Debris"):AddItem(ref, 1)
  742. end
  743. until num <= 0
  744. end))
  745. end
  746.  
  747. gyro = Instance.new("BodyGyro")
  748. gyro.Parent = nil
  749. gyro.P = 1e7
  750. gyro.D = 1e3
  751. gyro.MaxTorque = Vector3.new(0,1e7,0)
  752.  
  753. local shoot = false
  754. local gun = false
  755. function Aim()
  756. attack = true
  757. gun = true
  758. gyro.Parent = RP
  759. for i = 0, 1, 0.2 do
  760. swait()
  761. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
  762. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  763. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  764. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.5)
  765. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.2) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  766. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .2) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  767. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(.7, .6, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-80)), .3)
  768. end
  769. local offset = nil
  770. while gun == true do
  771. wait()
  772. local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z)
  773. offset = (Tor.Position.y - mouse.Hit.p.y) / 60
  774. local mag = (Tor.Position - mouse.Hit.p).magnitude / 80
  775. offset = offset / mag
  776. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.fromEulerAnglesXYZ(0, 0, 1.57), .3)
  777. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), .5)
  778. end
  779. if shoot == true then
  780. PE1.Enabled,PE2.Enabled = true,true
  781. Lite.Enabled = true
  782. for i = 1,2 do
  783. for i = 1,5 do
  784. Shoot(Barrel, 1, 3)
  785. end
  786. CreateSound("rbxassetid://212032538", Barrel, .5, .8)
  787. CreateSound("rbxassetid://168413145", Barrel, .7, 1)
  788. Shoot(Barrel, 0, 0)
  789. for i = 0, 1, 0.2 do
  790. swait()
  791. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  792. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(85)), .3)
  793. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(20)), 0.3)
  794. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(-50), math.rad(-90)), 0.5)
  795. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.2) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  796. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .2) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  797. end
  798. for i = 0, 1, 0.1 do
  799. swait()
  800. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  801. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(85)), .3)
  802. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  803. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.5)
  804. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.2) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  805. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .2) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  806. end
  807. end
  808. Lite.Enabled = false
  809. PE1.Enabled,PE2.Enabled = false,false
  810. end
  811. gyro.Parent = nil
  812. shoot = false
  813. attack = false
  814. end
  815.  
  816. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  817. local prt = CreatePart("Custom", workspace, "DiamondPlate", 0, 0, brickcolor, "Effect", Vector3.new())
  818. prt.Anchored = true
  819. prt.CFrame = cframe
  820. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  821. game:GetService("Debris"):AddItem(prt, 5)
  822. table.insert(Effects, {
  823. prt,
  824. "Cylinder",
  825. delay,
  826. x3,
  827. y3,
  828. z3,
  829. msh
  830. })
  831. end
  832.  
  833. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  834. local prt = CreatePart("Custom", workspace, "DiamondPlate", 0, 0, brickcolor, "Effect", Vector3.new())
  835. prt.Anchored = true
  836. prt.CFrame = cframe
  837. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  838. game:GetService("Debris"):AddItem(prt, 5)
  839. table.insert(Effects, {
  840. prt,
  841. "Block1",
  842. delay,
  843. x3,
  844. y3,
  845. z3,
  846. msh
  847. })
  848. end
  849.  
  850.  
  851. function GroundWave()
  852. attack = true
  853. --[[ for i = 1,2 do
  854. CreateSound("rbxassetid://154965962",game.Players.LocalPlayer.Character["Right Arm"],.5,.95)
  855. for i = 0,1,0.2 do
  856. wait()
  857. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  858. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(60)), .3)
  859. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(30)), .3)
  860. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-80)), .3)
  861. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.4) * RHCF * CFrame.Angles(math.rad(-3), math.rad(50), math.rad(0)), .3)
  862. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .4) * LHCF * CFrame.Angles(math.rad(-3), math.rad(50), math.rad(0)), .3)
  863. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(50), math.rad(50), 6*i), .6)
  864. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  865. end
  866. end]]--
  867. for i = 0,1,0.1 do
  868. wait()
  869. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  870. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-70)), .3)
  871. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(70)), .3)
  872. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3)
  873. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  874. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  875. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(50)), .3)
  876. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  877. end
  878. Hu.WalkSpeed = 0
  879. coroutine.resume(coroutine.create(function()
  880. local CF = RP.CFrame
  881. local numb = -5
  882. local BaseCF = CF
  883. for i = 1, 10 do
  884. BaseCF = CF * CFrame.new(0, -2, numb)
  885. local baseprt = CreatePart(3, workspace, "DiamondPlate", 0, 1, BrickColor.new("Black"), "Part1", Vector3.new(1, 1, 1))
  886. baseprt.Anchored = true
  887. baseprt.CFrame = BaseCF
  888. game:GetService("Debris"):AddItem(baseprt, .5)
  889. local c = game.Workspace:GetChildren()
  890. for i = 1, #c do
  891. local hum = c[i]:findFirstChild("Humanoid")
  892. if hum ~= nil and hum.Health ~= 0 then
  893. local head = c[i]:findFirstChild("Head")
  894. if head ~= nil then
  895. local targ = head.Position - baseprt.Position
  896. local mag = targ.magnitude
  897. if mag <= 7 and c[i].Name ~= Ply.Name then
  898. MagnitudeDamage(head, 20, 20, 30)
  899. end
  900. end
  901. end
  902. end
  903. CreateSound("http://www.roblox.com/asset/?id=278596476",baseprt,.7,0.7)
  904. CreateSound("http://www.roblox.com/asset/?id=199145264",baseprt,.6,1.3)
  905. CreateSound("http://www.roblox.com/asset/?id=168413145",baseprt,.7,1.2)
  906. BlockEffect(BrickColor.new("Really black"), BaseCF, 0.5, 0.5, 0.5, 2, 2, 2, 0.05)
  907. WaveEffect(BrickColor.new(tclr), BaseCF, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  908. numb = numb - 3
  909. wait(0.15)
  910. end
  911. end))
  912. for i = 0,1,0.02 do
  913. wait()
  914. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  915. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(-90)), .3)
  916. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(10), math.rad(90)), .5)
  917. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(5), math.rad(-30), math.rad(-60)), .3)
  918. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.3) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  919. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(50)), .3)
  920. --- FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(190)), .5)
  921. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  922. end
  923. attack = false
  924. Hu.WalkSpeed = 16
  925. end
  926.  
  927. mouse.Button1Down:connect(function()
  928. if attack == false and Combo == 1 then
  929. Combo = 2
  930. FirstAttack()
  931. elseif attack == false and Combo == 2 then
  932. Combo = 3
  933. ---SecondAttack()
  934. elseif attack == false and Combo == 3 then
  935. Combo = 4
  936. ThirdAttack()
  937. elseif attack == false and Combo == 4 then
  938. Combo = 1
  939. FourthAttack()
  940. end
  941. if gun == true then
  942. shoot = true
  943. gun = false
  944. end
  945. end)
  946.  
  947. mouse.KeyDown:connect(function(k)
  948. k = k:lower()
  949. if k == "q" and attack == false then
  950. ContAttack()
  951. elseif k == "e" and attack == false then
  952. Spin()
  953. elseif attack == false and k == 'f' then
  954. Aim()
  955. elseif attack == false and k == 'r' then
  956. GroundWave()
  957. end
  958. end)
  959.  
  960. local sine = 0
  961. local change = 1
  962. local val = 0
  963. local donum = 0
  964.  
  965. while true do
  966. swait()
  967. gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100)
  968. sine = sine + change
  969. local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude
  970. local velderp = RP.Velocity.y
  971. hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  972. if equipped == true or equipped == false then
  973. if RP.Velocity.y > 1 and hitfloor == nil then
  974. Anim = "Jump"
  975. if attack == false then
  976. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  977. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(20)), .3)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  980. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  981. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(30)), .3)
  982. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(.7, .6, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-80)), .3)
  983. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  984. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .5)
  985. end
  986. elseif RP.Velocity.y < -1 and hitfloor == nil then
  987. Anim = "Fall"
  988. if attack == false then
  989. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  990. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  991. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(150), math.rad(0), math.rad(10)), .3)
  992. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(-30)), .3)
  993. RH.C0 = clerp(RH.C0, CFrame.new(1, -.7, -.2) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(10)), .3)
  994. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(10)), .3)
  995. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(.7, .6, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-80)), .3)
  996. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  997. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .5)
  998. end
  999. elseif torvel < 1 and hitfloor ~= nil then
  1000. Anim = "Idle"
  1001. if attack == false then
  1002. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1003. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(30)), .3)
  1004. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(20)), .3)
  1005. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0) * CFrame.Angles(math.rad(45), math.rad(0), math.rad(-10)), .3)
  1006. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.2) * RHCF * CFrame.Angles(math.rad(-3), math.rad(30), math.rad(0)), .3)
  1007. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, .2) * LHCF * CFrame.Angles(math.rad(-3), math.rad(30), math.rad(0)), .3)
  1008. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(.7, .6, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(-80)), .3)
  1009. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), .3)
  1010. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .5)
  1011. end
  1012. elseif torvel > 2 and hitfloor ~= nil then
  1013. Anim = "Walk"
  1014. if attack == false then
  1015. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1016. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1017. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(20)), .3)
  1018. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.4, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-10)), .3)
  1019. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), .3)
  1020. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), .3)
  1021. ---FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1022. ShotgunHandleweld.C0 = clerp(ShotgunHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1023. LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), .5)
  1024. end
  1025. end
  1026. end
  1027. if #Effects > 0 then
  1028. for e = 1, #Effects do
  1029. if Effects[e] ~= nil then
  1030. local Thing = Effects[e]
  1031. if Thing ~= nil then
  1032. local Part = Thing[1]
  1033. local Mode = Thing[2]
  1034. local Delay = Thing[3]
  1035. local IncX = Thing[4]
  1036. local IncY = Thing[5]
  1037. local IncZ = Thing[6]
  1038. if Thing[1].Transparency <= 1 then
  1039. if Thing[2] == "Block1" then
  1040. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1041. Mesh = Thing[1].Mesh
  1042. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1043. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1044. elseif Thing[2] == "Cylinder" then
  1045. Mesh = Thing[1].Mesh
  1046. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1047. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1048. elseif Thing[2] == "Blood" then
  1049. Mesh = Thing[7]
  1050. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1051. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1052. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1053. elseif Thing[2] == "Elec" then
  1054. Mesh = Thing[1].Mesh
  1055. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1056. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1057. elseif Thing[2] == "Disappear" then
  1058. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1059. end
  1060. else
  1061. Part.Parent = nil
  1062. table.remove(Effects, e)
  1063. end
  1064. end
  1065. end
  1066. end
  1067. end
  1068. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement