memberhero

Untitled

Aug 3rd, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.12 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attackdebounce = false
  17. attacktype = 1
  18. combo = 0
  19. damage = 3
  20. oridamage = 3
  21. walkdebounce = false
  22. sheathed = true
  23. it=Instance.new
  24. vt=Vector3.new
  25. cf=CFrame.new
  26. euler=CFrame.fromEulerAnglesXYZ
  27. angles=CFrame.new
  28. act = {key = {}}
  29. walking = false
  30. hold=false
  31. MMouse=nil
  32. equipped=false
  33. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  34. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. con1=nil
  36. con2=nil
  37. con3=nil
  38. shootmode=false
  39. mana=400
  40. offset=nil
  41. ammo=3
  42. currentam=0
  43. KABOOM=false
  44. canusepenumbra=true
  45. kicking=false
  46. Did=0
  47. shot=false
  48. Enemy=nil
  49. HP=0
  50. grabbed=false
  51. --player
  52. player = nil
  53. --save shoulders
  54. RSH, LSH = nil, nil
  55. --welds
  56. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  57. RW.Name="Right Shoulder"
  58. LW.Name="Left Shoulder"
  59. RWL.Name="Right Hip"
  60. LWL.Name="Left Hip"
  61. RW2, LW2 = it("Weld"), it("Weld")
  62. --what anim
  63. anim = "none"
  64. if Character:findFirstChild("Arheil",true) ~= nil then
  65. Character:findFirstChild("Arheil",true).Parent = nil
  66. end
  67. if Character:findFirstChild("Penumbra",true) ~= nil then
  68. Character:findFirstChild("Penumbra",true).Parent = nil
  69. end
  70. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  71. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  72. end
  73. bod = it("BodyPosition")
  74. bod.position = Torso.Position
  75. bod.maxForce = vt(4e+080, 4e+080, 4e+080)
  76.  
  77. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  78. local fp = it("Part")
  79. fp.formFactor = formfactor
  80. fp.Material = "SmoothPlastic"
  81. fp.Parent = parent
  82. fp.Reflectance = reflectance
  83. fp.Transparency = transparency
  84. fp.CanCollide = false
  85. fp.BrickColor = brickcolor
  86. fp.Name = name
  87. fp.Size = size
  88. fp.Position = Torso.Position
  89. fp.BottomSurface="SmoothNoOutlines"
  90. fp.TopSurface="SmoothNoOutlines"
  91. fp.LeftSurface="SmoothNoOutlines"
  92. fp.RightSurface="SmoothNoOutlines"
  93. fp:BreakJoints()
  94. return fp
  95. end
  96. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  97. local mesh = it(Mesh)
  98. mesh.Parent = part
  99. if Mesh=="SpecialMesh" then
  100. mesh.MeshType = meshtype
  101. mesh.MeshId = meshid
  102. end
  103. mesh.Offset=offset
  104. mesh.Scale=scale
  105. return mesh
  106. end
  107. EfPart = part(1,modelzorz,0,1,BrickColor.new("Derp"),"EffectPart",vt(1,1,1))
  108. local modelzorz = it("Model")
  109. modelzorz.Name = "Penumbra"
  110. modelzorz.Parent = Character
  111. local handle = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle",vt(1,1,1))
  112. local handle1 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle1",vt(1,1,1))
  113. local handle2 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle2",vt(1,1,1))
  114. local handle3 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle3",vt(1,1,1))
  115. local handle4 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle4",vt(1,1,1))
  116. local handle5 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle5",vt(1,1,1))
  117. local handle7 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle7",vt(1,1,1))
  118. local handle8 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle8",vt(1,1,1))
  119. local handle9 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle9",vt(1,1,1))
  120. local handle10 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle10",vt(1,1,1))
  121. local handle11 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle11",vt(1,1,1))
  122. local handle12 = part(1,modelzorz,0.25,0,BrickColor.new("Navy blue"),"PHandle12",vt(1,1,1))
  123. local handle13 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle13",vt(1,1,1))
  124. local handle14 = part(1,modelzorz,0.25,0,BrickColor.new("Navy blue"),"PHandle14",vt(1,1,1))
  125. local handle15 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle15",vt(1,1,1))
  126. local handle16 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle16",vt(1,1,1))
  127. local handle17 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle17",vt(1,1,1))
  128. local handle18 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle18",vt(1,1,1))
  129. local handle19 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle19",vt(1,1,1))
  130. local handle20 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle20",vt(1,1,1))
  131. local handle21 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle21",vt(2,2.4,1))
  132. local handle22 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle22",vt(2,2.4,1))
  133. local handle23 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle23",vt(2,2.4,1))
  134. local handle24 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle24",vt(1,1,1))
  135. local handle25 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle25",vt(1,1,1))
  136. local handle26 = part(1,modelzorz,0,1,BrickColor.new("Navy blue"),"PHandle26",vt(1,1,1))
  137. local handle27 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle27",vt(0.2,0.2,1.76))
  138. local handle28 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle28",vt(0.2,0.2,1.76))
  139. local handle29 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle29",vt(0.2,0.2,1.76))
  140. local handle30 = part(1,modelzorz,0,0,BrickColor.new("Navy blue"),"PHandle30",vt(0.2,0.2,1.76))
  141. local handle31 = part(1,modelzorz,0,0,BrickColor.new("Really black"),"PHandle31",vt(1,1,1))
  142. local handle32 = part(1,modelzorz,0.25,0.5,BrickColor.new("Cyan"),"PHandle32",vt(1,1,1))
  143. local handle33 = part(1,modelzorz,0,0.5,BrickColor.new("Cyan"),"PHandle33",vt(1,1,1))
  144. local handle34 = part(1,modelzorz,0,0.5,BrickColor.new("Cyan"),"PHandle34",vt(1,1,1))
  145. local Spar=it("Sparkles")
  146. Spar.Parent=handle32
  147. Spar.Enabled=false
  148. Spar.SparkleColor=Color3.new(0, 0, 102)
  149. modelzorz:BreakJoints()
  150. local mesh1 = mesh("BlockMesh",handle,"","",vt(0,0,0),vt(0.18, 1.1, 0.35))
  151. local mesh1 = mesh("CylinderMesh",handle1,"","",vt(0.025, 0, 0.525),vt(0.4, 0.25, 0.4))
  152. local mesh1 = mesh("CylinderMesh",handle2,"","",vt(0.025, 0, 0.525),vt(0.35, 0.3, 0.35))
  153. local mesh1 = mesh("CylinderMesh",handle3,"","",vt(0.1, 0, 0.6),vt(0.35, 0.225, 0.35))
  154. local mesh1 = mesh("BlockMesh",handle4,"","",vt(0, 0, 0),vt(0.25, 0.2, 1))
  155. local mesh1 = mesh("CylinderMesh",handle5,"","",vt(0.17, 0, 0.675),vt(0.325, 0.2, 0.325))
  156. local mesh1 = mesh("BlockMesh",handle7,"","",vt(-0.675, 0, 0.55),vt(0.25, 0.2, 0.6))
  157. local mesh1 = mesh("CylinderMesh",handle8,"","",vt(-0.975, 0, -0.49),vt(0.3, 0.225, 0.3))
  158. local mesh1 = mesh("CylinderMesh",handle9,"","",vt(-0.975, 0, -0.49),vt(0.25, 0.25, 0.25))
  159. local mesh1 = mesh("CylinderMesh",handle10,"","",vt(-0.95, 0, -0.6),vt(0.2, 0.1, 0.2))
  160. local mesh1 = mesh("SpecialMesh",handle11,"Sphere","",vt(0, 0, 0),vt(0.525, 0.725, 0.415))
  161. local mesh1 = mesh("CylinderMesh",handle12,"","",vt(0, -0.25, -0.05),vt(0.45, 0.3, 0.45))
  162. local mesh1 = mesh("BlockMesh",handle13,"","",vt(0.8, 0, -0.115),vt(0.65, 0.18, 0.3))
  163. local mesh1 = mesh("SpecialMesh",handle14,"Sphere","",vt(0, 0, 0),vt(0.45, 0.45, 0.45))
  164. local mesh1 = mesh("SpecialMesh",handle15,"Wedge","",vt(0, 0, 0),vt(0.175, 0.65, 0.55))
  165. local mesh1 = mesh("CylinderMesh",handle16,"","",vt(-0.4, 0.15, 0.25),vt(0.225, 1.5, 0.225))
  166. local mesh1 = mesh("CylinderMesh",handle17,"","",vt(-0.49, 0.8, 0.25),vt(0.22, 0.6, 0.22))
  167. local mesh1 = mesh("SpecialMesh",handle18,"FileMesh","http://www.roblox.com/asset/?id=1033714",vt(0, 0, 0),vt(0.116, 2.2, 0.116))
  168. local mesh1 = mesh("CylinderMesh",handle19,"","",vt(-0.475, 0.4, 0.25),vt(0.15, 0.6, 0.15))
  169. local mesh1 = mesh("CylinderMesh",handle20,"","",vt(-0.3, 0.4, 0.25),vt(0.15, 0.6, 0.15))
  170. local mesh1 = mesh("SpecialMesh",handle21,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0, 0, 0),vt(0.295, 0.295, 0.5))
  171. local mesh1 = mesh("SpecialMesh",handle22,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0, 0, 0),vt(0.295, 0.295, 0.5))
  172. local mesh1 = mesh("SpecialMesh",handle23,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0, 0, 0),vt(0.295, 0.295, 0.5))
  173. local mesh1 = mesh("BlockMesh",handle24,"","",vt(1.1, 0, -1.2),vt(0.075, 0.02, 0.65))
  174. local mesh1 = mesh("BlockMesh",handle25,"","",vt(0.84, 0, -1.2),vt(0.075, 0.02, 0.65))
  175. local mesh1 = mesh("SpecialMesh",handle27,"FileMesh","http://www.roblox.com/asset/?id=51226819",vt(0, 0, 0),vt(0.125, 1, 0.5))
  176. local mesh1 = mesh("SpecialMesh",handle28,"FileMesh","http://www.roblox.com/asset/?id=51226819",vt(0, 0, 0),vt(0.125, 1, 0.5))
  177. local mesh1 = mesh("SpecialMesh",handle29,"FileMesh","http://www.roblox.com/asset/?id=51226819",vt(0, 0, 0),vt(0.125, 1, 0.5))
  178. local mesh1 = mesh("SpecialMesh",handle30,"FileMesh","http://www.roblox.com/asset/?id=51226819",vt(0, 0, 0),vt(0.125, 1, 0.5))
  179. local mesh1 = mesh("SpecialMesh",handle31,"FileMesh","http://www.roblox.com/asset/?id=1365696",vt(0, 0, 0),vt(0.3, 0.4, 0.4))
  180. local msh42 = mesh("SpecialMesh",handle32,"Sphere","",vt(0, 0, 0),vt(0.8,0.8,0.8))
  181. local mesh1 = mesh("SpecialMesh",handle33,"Sphere","",vt(0, 0, 0),vt(0.8,0.8,0.8))
  182. local msh44 = mesh("SpecialMesh",handle34,"Sphere","",vt(0, 0, 0),vt(0.8,0.8,0.8))
  183. --[[local wld1a = it("Weld")
  184. wld1a.Parent = prt1a
  185. wld1a.Part0 = prt1a
  186. wld1a.Part1 = Torso
  187. wld1a.C0 = euler(0,0,0.7) * cf(0,0,-0.75)
  188. local wld1 = it("Weld")
  189. wld1.Parent = prt1
  190. wld1.Part0 = prt1
  191. wld1.Part1 = prt1a
  192. wld1.C0 = euler(0,0,0) * cf(0,0,0)
  193. local wld2 = it("Weld")
  194. wld2.Parent = prt2
  195. wld2.Part0 = prt2
  196. wld2.Part1 = prt1
  197. wld2.C0 = euler(0,0,0) * cf(0,2.5,0)
  198. local wld3 = it("Weld")
  199. wld3.Parent = prt3
  200. wld3.Part0 = prt3
  201. wld3.Part1 = prt1
  202. wld3.C0 = euler(0,0,0) * cf(0,-2.5,0)
  203. local wld4 = it("Weld")
  204. wld4.Parent = prt4
  205. wld4.Part0 = prt4
  206. wld4.Part1 = prt1
  207. wld4.C0 = euler(0,0,0) * cf(0,-3.1,0)
  208. local wld5 = it("Weld")
  209. wld5.Parent = prt5
  210. wld5.Part0 = prt5
  211. wld5.Part1 = prt4
  212. wld5.C0 = euler(0,-1.57,0) * cf(0.5,-0.2,0)
  213. local wld6 = it("Weld")
  214. wld6.Parent = prt6
  215. wld6.Part0 = prt6
  216. wld6.Part1 = prt4
  217. wld6.C0 = euler(0,1.57,0) * cf(-0.5,-0.2,0)
  218. local wld7 = it("Weld")
  219. wld7.Parent = prt7
  220. wld7.Part0 = prt7
  221. wld7.Part1 = prt4
  222. wld7.C0 = euler(0,-1.57,0) * cf(0.5,-0.9,0)
  223. local wld8 = it("Weld")
  224. wld8.Parent = prt8
  225. wld8.Part0 = prt8
  226. wld8.Part1 = prt4
  227. wld8.C0 = euler(0,1.57,0) * cf(-0.5,-0.9,0)
  228. local wld9 = it("Weld")
  229. wld9.Parent = prt9
  230. wld9.Part0 = prt9
  231. wld9.Part1 = prt4
  232. wld9.C0 = euler(0,-1.57,0) * cf(0.3,-1.3,0)
  233. local wld10 = it("Weld")
  234. wld10.Parent = prt10
  235. wld10.Part0 = prt10
  236. wld10.Part1 = prt4
  237. wld10.C0 = euler(0,1.57,0) * cf(-0.3,-1.3,0) ]]
  238. local wld11a = it("Weld")
  239. wld11a.Parent = handle
  240. wld11a.Part0 = handle
  241. wld11a.Part1 = LeftLeg
  242. wld11a.C0 = euler(3.9,0,0) * cf(0.7,-0.5,0.5)
  243. local wld11 = it("Weld")
  244. wld11.Parent = handle1
  245. wld11.Part0 = handle
  246. wld11.Part1 = handle1
  247. wld11.C0 = euler(math.pi/2,0,math.pi/2) * cf(0,0,0)
  248. local wld12 = it("Weld")
  249. wld12.Parent = handle2
  250. wld12.Part0 = handle1
  251. wld12.Part1 = handle2
  252. wld12.C0 = euler(0,0,0) * cf(0,0,0)
  253. local wld13 = it("Weld")
  254. wld13.Parent = handle3
  255. wld13.Part0 = handle2
  256. wld13.Part1 = handle3
  257. wld13.C0 = euler(0,0,0) * cf(0,0,0)
  258. local wld14 = it("Weld")
  259. wld14.Parent = handle4
  260. wld14.Part0 = handle1
  261. wld14.Part1 = handle4
  262. wld14.C0 = euler(0,0,0) * cf(0,0,0)
  263. local wld15 = it("Weld")
  264. wld15.Parent = handle5
  265. wld15.Part0 = handle4
  266. wld15.Part1 = handle5
  267. wld15.C0 = euler(0,0,0) * cf(0,0,0)
  268. local wld17 = it("Weld")
  269. wld17.Parent = handle7
  270. wld17.Part0 = handle5
  271. wld17.Part1 = handle7
  272. wld17.C0 = euler(0,math.pi/2.25,0) * cf(0,0,0)
  273. local wld18 = it("Weld")
  274. wld18.Parent = handle8
  275. wld18.Part0 = handle7
  276. wld18.Part1 = handle8
  277. wld18.C0 = euler(0,math.pi/2.25,0) * cf(0,0,0)
  278. local wld19 = it("Weld")
  279. wld19.Parent = handle9
  280. wld19.Part0 = handle7
  281. wld19.Part1 = handle9
  282. wld19.C0 = euler(0,math.pi/2.25,0) * cf(0,0,0)
  283. local wld20 = it("Weld")
  284. wld20.Parent = handle10
  285. wld20.Part0 = handle7
  286. wld20.Part1 = handle10
  287. wld20.C0 = euler(0,math.pi/2.25,0) * cf(0,0,0)
  288. local wld21 = it("Weld")
  289. wld21.Parent = handle11
  290. wld21.Part0 = handle
  291. wld21.Part1 = handle11
  292. wld21.C0 = cf(0,0.8,0.225) * euler(math.pi/17,0,0)
  293. local wld22 = it("Weld")
  294. wld22.Parent = handle12
  295. wld22.Part0 = handle11
  296. wld22.Part1 = handle12
  297. wld22.C0 = cf(0,0,0) * euler(math.pi/2,0,0)
  298. local wld23 = it("Weld")
  299. wld23.Parent = handle13
  300. wld23.Part0 = handle5
  301. wld23.Part1 = handle13
  302. wld23.C0 = cf(0,0,0) * euler(0,math.pi/2.25,0)
  303. local wld24 = it("Weld")
  304. wld24.Parent = handle14
  305. wld24.Part0 = handle12
  306. wld24.Part1 = handle14
  307. wld24.C0 = cf(0,-.475/2-.15,-.05) * euler(0,math.pi/2.25,0)
  308. local wld25 = it("Weld")
  309. wld25.Parent = handle15
  310. wld25.Part0 = handle1
  311. wld25.Part1 = handle15
  312. wld25.C0=cf(-.25,0,-.625)*euler(math.pi/2,math.pi/2,0)
  313. wld25.C0=wld25.C0*euler(-math.pi/18,0,0)
  314. local wld26 = it("Weld")
  315. wld26.Parent = handle16
  316. wld26.Part0 = handle15
  317. wld26.Part1 = handle16
  318. wld26.C0=cf(-.25,0,-.625)*euler(math.pi/2,math.pi/2,0)
  319. local wld27 = it("Weld")
  320. wld27.Parent = handle17
  321. wld27.Part0 = handle15
  322. wld27.Part1 = handle17
  323. wld27.C0=cf(-.25,0,-.625)*euler(math.pi/2,math.pi/2,0)
  324. local wld28 = it("Weld")
  325. wld28.Parent = handle18
  326. wld28.Part0 = handle15
  327. wld28.Part1 = handle18
  328. wld28.C0=cf(0,-.4,-.425)*euler(math.pi/2,math.pi/2,0)
  329. local wld29 = it("Weld")
  330. wld29.Parent = handle19
  331. wld29.Part0 = handle15
  332. wld29.Part1 = handle19
  333. wld29.C0=cf(-.25,0,-.625)*euler(math.pi/2,math.pi/2,0)
  334. local wld30 = it("Weld")
  335. wld30.Parent = handle20
  336. wld30.Part0 = handle15
  337. wld30.Part1 = handle20
  338. wld30.C0=cf(-.25,0,-.625)*euler(math.pi/2,math.pi/2,0)
  339. local wld31 = it("Weld")
  340. wld31.Parent = handle21
  341. wld31.Part0 = handle15
  342. wld31.Part1 = handle21
  343. wld31.C0=cf(0,-.4,-.525)*euler(0,0,0)
  344. local wld32 = it("Weld")
  345. wld32.Parent = handle22
  346. wld32.Part0 = handle15
  347. wld32.Part1 = handle22
  348. wld32.C0=cf(0,-.4,-.925)*euler(0,0,0)
  349. local wld33 = it("Weld")
  350. wld33.Parent = handle23
  351. wld33.Part0 = handle15
  352. wld33.Part1 = handle23
  353. wld33.C0=cf(0,-.4,-1.175)*euler(0,0,0)
  354. local wld34 = it("Weld")
  355. wld34.Parent = handle24
  356. wld34.Part0 = handle5
  357. wld34.Part1 = handle24
  358. wld34.C0=cf(0,0,0)*euler(0,math.pi/2.25,0)
  359. local wld35 = it("Weld")
  360. wld35.Parent = handle25
  361. wld35.Part0 = handle5
  362. wld35.Part1 = handle25
  363. wld35.C0=cf(0,0,0)*euler(0,math.pi/2.25,0)
  364. local wld36 = it("Weld")
  365. wld36.Parent = handle26
  366. wld36.Part0 = handle5
  367. wld36.Part1 = handle26
  368. wld36.C0=cf(0,0,0)*euler(0,math.pi/2.25,0)
  369. local wld37 = it("Weld")
  370. wld37.Parent = handle27
  371. wld37.Part0 = handle26
  372. wld37.Part1 = handle27
  373. wld37.C0=cf(1.25,0,-1.2)*euler(-math.pi/2,math.pi/2,0)
  374. local wld38 = it("Weld")
  375. wld38.Parent = handle28
  376. wld38.Part0 = handle26
  377. wld38.Part1 = handle28
  378. wld38.C0=cf(.675,0,-1.2)*euler(-math.pi/2,-math.pi/2,0)
  379. local wld39 = it("Weld")
  380. wld39.Parent = handle29
  381. wld39.Part0 = handle26
  382. wld39.Part1 = handle29
  383. wld39.C0=cf(.95,-.29,-1.2)*euler(-math.pi/2,-math.pi,0)
  384. local wld40 = it("Weld")
  385. wld40.Parent = handle30
  386. wld40.Part0 = handle26
  387. wld40.Part1 = handle30
  388. wld40.C0=cf(.95,.29,-1.2)*euler(-math.pi/2,0,0)
  389. local wld41 = it("Weld")
  390. wld41.Parent = handle31
  391. wld41.Part0 = handle26
  392. wld41.Part1 = handle31
  393. wld41.C0=cf(1.05,0,0)*euler(0,0,-math.pi/2)
  394. local wld42 = it("Weld")
  395. wld42.Parent = handle32
  396. wld42.Part0 = handle26
  397. wld42.Part1 = handle32
  398. wld42.C0=cf(.95,0,-2.5)*euler(0,0,0)
  399. local wld43 = it("Weld")
  400. wld43.Parent = handle33
  401. wld43.Part0 = handle26
  402. wld43.Part1 = handle33
  403. wld43.C0=cf(.95,0,-2.5)*euler(0,0,0)
  404. local wld44 = it("Weld")
  405. wld44.Parent = handle34
  406. wld44.Part0 = handle26
  407. wld44.Part1 = handle34
  408. wld44.C0=cf(.95,0,-2.5)*euler(0,0,0)
  409. local fengui = it("GuiMain")
  410. fengui.Parent = Player.PlayerGui
  411. fengui.Name = "manaGUI"
  412. local fenframe = it("Frame")
  413. fenframe.Parent = fengui
  414. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  415. fenframe.BackgroundTransparency = 1
  416. fenframe.BorderColor3 = Color3.new(17,17,17)
  417. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  418. local fentext = it("TextLabel")
  419. fentext.Parent = fenframe
  420. fentext.Text = "Mana("..mana..")"
  421. fentext.BackgroundTransparency = 1
  422. fentext.SizeConstraint = "RelativeXY"
  423. fentext.TextXAlignment = "Center"
  424. fentext.TextYAlignment = "Center"
  425. fentext.Position = UDim2.new(0,80,1,200)
  426. local fentext2 = it("TextLabel")
  427. fentext2.Parent = fenframe
  428. fentext2.Text = " "
  429. fentext2.BackgroundTransparency = 0
  430. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  431. fentext2.SizeConstraint = "RelativeXY"
  432. fentext2.TextXAlignment = "Center"
  433. fentext2.TextYAlignment = "Center"
  434. fentext2.Position = UDim2.new(0,10,1,170)
  435. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  436. local fentext3 = it("TextLabel")
  437. fentext3.Parent = fenframe
  438. fentext3.Text = " "
  439. fentext3.BackgroundTransparency = 0
  440. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  441. fentext3.SizeConstraint = "RelativeXY"
  442. fentext3.TextXAlignment = "Center"
  443. fentext3.TextYAlignment = "Center"
  444. fentext3.Position = UDim2.new(0,10,1,170)
  445. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  446. local bg = it("BodyGyro")
  447. bg.Parent = nil
  448. if (script.Parent.className ~= "HopperBin") then
  449. Tool = it("HopperBin")
  450. Tool.Parent = Backpack
  451. Tool.Name = "Penumbra"
  452. script.Parent = Tool
  453. end
  454. Bin = script.Parent
  455. if Bin:findFirstChild("ManaBar",true) ~= nil then
  456. mana=Bin.ManaBar.Value
  457. Bin:findFirstChild("ManaBar",true).Parent = nil
  458. end
  459. local bar=Instance.new("IntValue")
  460. bar.Parent=Bin
  461. bar.Name="ManaBar"
  462. bar.Value=mana
  463. function unequipweld()
  464. wld11a.Part1 = LeftLeg
  465. wld11a.C0 = euler(3.9,0,0) * cf(0.7,-0.5,0.5)
  466. end
  467. function equipweld()
  468. wld11a.Part1 = LeftArm
  469. --wld11a.C0 = euler(1.57,0,0) * cf(0,1,0)
  470. wld11a.C0 = euler(1.75,0,0) * cf(0,1,0)
  471. end
  472. function hideanim()
  473. equipped = false
  474. Torso.Neck.C0=necko*euler(0,0,0)
  475. --[[for i = 0 , 1 , 0.07 do
  476. wait(0)
  477. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  478. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  479. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  480. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  481. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  482. end ]]
  483. unequipweld()
  484. wait(0.2)
  485. --[[for i = 0 , 1 , 0.07 do
  486. wait(0)
  487. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  488. LW.C0 = cf(-1.5, 0.5, 0) * euler(0,0,0)
  489. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  490. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  491. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  492. end ]]
  493. Torso.Neck.C0=necko*euler(0,0,0)
  494. end
  495. function equipanim(mouse)
  496. --[[for i = 0 , 1 , 0.085 do
  497. wait(0)
  498. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5*i,0,0)
  499. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  500. RW.C0 = cf(1.5,0.5,0) * euler(3.5*i,0,0)
  501. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  502. end ]]
  503. equipweld()
  504. --[[for i = 0 , 1 , 0.075 do
  505. wait(0)
  506. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  507. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  508. RW.C0 = cf(1.5,0.5,0) * euler(3.5-3.5*i,0,0.5*i)
  509. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  510. end ]]
  511. end
  512. function Stance()
  513. coroutine.resume(coroutine.create(function()
  514. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  515. bg.P = 3000
  516. bg.Parent = Torso
  517. wld1.C0 = euler(0,0,0) * cf(0,0,0)
  518. while equipped==true and walking==false and attack==false do
  519. wait()
  520. Torso.Neck.C0=necko*euler(0,0,1)
  521. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  522. bg.cframe = cf(Torso.Position,pos4) * euler(0,-1,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  523. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  524. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  525. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  526. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  527. end
  528. Torso.Neck.C0=necko*euler(0,0,0)
  529. bg.Parent=nil
  530. end))
  531. end
  532. function Walking()
  533. attack=true
  534. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  535. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  536. RW.C0 = cf(1.5,0.5,0) * euler(-1,0,0.5)
  537. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  538. walking=true
  539. attack=false
  540. end
  541. function Say(type)
  542. if type==1 then
  543. Sayings={"That didn't do much.","What?","Derp."}
  544. if Did>=25 and Did<50 then
  545. Sayings={"You can do better.","Not done yet."}
  546. elseif Did>=50 and Did<75 then
  547. Sayings={"That's gotta hurt.","I'm just getting started."}
  548. elseif Did>=75 and Did<100 then
  549. Sayings={"Oh, you're still alive?","Might as well just give up now.","Make this more exciting will you?"}
  550. elseif Did>=100 then
  551. Sayings={"And you're dead.","Well that was disappointing.","To hell with you!","I'm having too much fun."}
  552. end
  553. c=math.random(1,3)
  554. if Did>25 then c=1 end
  555. if c==1 then
  556. game:GetService("Chat"):Chat(Character,Sayings[math.random(1,#Sayings)],2)
  557. end
  558. elseif type==2 then
  559. Sayings={"Come at me, bro.","Show me what you got.","Come on, i'm getting bored.","No pubes.","Grow a pair","Stop being such a putz..."}
  560. game:GetService("Chat"):Chat(Character,Sayings[math.random(1,#Sayings)],2)
  561. end
  562. end
  563. function LightPunch1()
  564. attack=true
  565. combo=1
  566. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  567. bg.P = 500000
  568. bg.Parent = Head
  569. bg.cframe=Head.CFrame
  570. ss(1.1)
  571. con1=RightArm.Touched:connect(function(hit) Damagefunc2(hit,10,1,RightArm.CFrame*CFrame.new(0,-1,0),1) punched=true end)
  572. for i=0,1,0.15 do
  573. wait()
  574. Torso.Neck.C0=necko*euler(0,0,-1.57*i)
  575. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  576. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  577. RW.C0 = cf(1.5,0.5,0) * euler(1.57*i,0,0.5+1.07*i)
  578. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  579. end
  580. con1:disconnect()
  581. bg.Parent=nil
  582. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  583. attack=false
  584. wait(0.2)
  585. for i=0,1,0.1 do
  586. if attack==false then
  587. wait()
  588. Torso.Neck.C0=necko*euler(0,0,-1.57+1.57*i)
  589. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  590. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  591. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57*i,0,0.5+1.07-1.07*i)
  592. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  593. end
  594. end
  595. if attack==false then Say(1) end
  596. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  597. end
  598. function LightPunch2()
  599. attack=true
  600. combo=2
  601. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  602. bg.P = 500000
  603. bg.Parent = Head
  604. bg.cframe=Head.CFrame
  605. ss(1.1)
  606. con1=LeftArm.Touched:connect(function(hit) Damagefunc2(hit,10,1,LeftArm.CFrame*CFrame.new(0,-1,0),1) punched=true end)
  607. for i=0,1,0.1 do
  608. wait()
  609. Torso.Neck.C0=necko*euler(0,0,-1.57+3.14*i)
  610. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+2.07*i,0,-0.5-1.07*i)
  611. LW.C1 = cf(0, 0.5, 0) * euler(0,1.57*i,0)
  612. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57*i,0,1.57-1.07*i)
  613. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  614. end
  615. con1:disconnect()
  616. bg.Parent=nil
  617. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  618. attack=false
  619. for i=0,1,0.15 do
  620. if attack==false then
  621. wait()
  622. Torso.Neck.C0=necko*euler(0,0,-1.57+3.14)
  623. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+2.07,0,-0.5-1.07+0.3*i)
  624. LW.C1 = cf(0, 0.5, 0) * euler(0,1.57,0)
  625. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57,0,1.57-1.07)
  626. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  627. end
  628. end
  629. wait(0.2)
  630. for i=0,1,0.1 do
  631. if attack==false then
  632. wait()
  633. Torso.Neck.C0=necko*euler(0,0,-1.57+3.14-1.57*i)
  634. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+2.07-2.07*i,0,-0.5-1.07+1.57*i)
  635. LW.C1 = cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  636. RW.C0 = cf(1.5,0.5,0) * euler(0,0,1.57-1.07)
  637. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  638. end
  639. end
  640. if attack==false then Say(1) end
  641. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  642. end
  643. function LightPunch3()
  644. attack=true
  645. combo=3
  646. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  647. bg.P = 500000
  648. bg.Parent = Head
  649. bg.cframe=Head.CFrame
  650. ss(1.1)
  651. con1=RightArm.Touched:connect(function(hit) Damagefunc2(hit,10,1,RightArm.CFrame*CFrame.new(0,-1,0),1) punched=true end)
  652. for i=0,1,0.1 do
  653. wait()
  654. Torso.Neck.C0=necko*euler(0,0,-1.57+3.14-3.14*i)
  655. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+2.07-2.07*i,0,-0.5-1.07+1.57*i)
  656. LW.C1 = cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
  657. RW.C0 = cf(1.5,0.5,0) * euler(3.14*i,0,1.57-1.07-0.5*i)
  658. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  659. end
  660. con1:disconnect()
  661. bg.Parent=nil
  662. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  663. attack=false
  664. wait(0.2)
  665. for i=0,1,0.1 do
  666. wait()
  667. if attack==false then
  668. Torso.Neck.C0=necko*euler(0,0,-1.57+3.14-3.14+1.57*i)
  669. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  670. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  671. RW.C0 = cf(1.5,0.5,0) * euler(3.14-3.14*i,0,0.5*i)
  672. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  673. end
  674. end
  675. if attack==false then Say(1) end
  676. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  677. end
  678. function HeavyPunch1()
  679. attack=true
  680. combo=1
  681. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  682. bg.P = 500000
  683. bg.Parent = Head
  684. bg.cframe=Head.CFrame
  685. for i=0,1,0.1 do
  686. wait()
  687. Torso.Neck.C0=necko*euler(0,0,1*i)
  688. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  689. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  690. RW.C0 = cf(1.5-0.5*i,0.5,-0.5*i) * euler(1.57*i,0,0.5-1.5*i)
  691. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  692. end
  693. ss(0.9)
  694. con1=RightArm.Touched:connect(function(hit) Damagefunc2(hit,20,1,RightArm.CFrame*CFrame.new(0,-1,0),1.5) punched=true end)
  695. for i=0,1,0.1 do
  696. wait()
  697. Torso.Neck.C0=necko*euler(0,0,1-2.57*i)
  698. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  699. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  700. RW.C0 = cf(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * euler(1.57,0,0.5-1.5+2*i)
  701. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  702. end
  703. con1:disconnect()
  704. bg.Parent=nil
  705. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  706. attack=false
  707. wait(0.2)
  708. for i=0,1,0.1 do
  709. wait()
  710. Torso.Neck.C0=necko*euler(0,0,1-2.57+1.57*i)
  711. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  712. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  713. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57*i,0,0.5-1.5+2-0.5*i)
  714. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  715. end
  716. if attack==false then Say(1) end
  717. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  718. end
  719. function HeavyPunch2()
  720. attack=true
  721. combo=2
  722. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  723. bg.P = 500000
  724. bg.Parent = Head
  725. bg.cframe=Head.CFrame
  726. for i=0,1,0.1 do
  727. wait()
  728. Torso.Neck.C0=necko*euler(0,0,1-2.57+2.57*i)
  729. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  730. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  731. RW.C0 = cf(1.5-0.5*i,0.5,-0.5*i) * euler(1.57,0,0.5-1.5+2-2*i)
  732. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  733. end
  734. game:GetService("Chat"):Chat(Character,"Away with you!",2)
  735. ss(0.9)
  736. con1=RightArm.Touched:connect(function(hit) Damagefunc3(hit,20,40,RightArm.CFrame*CFrame.new(0,-1,0),1.5) punched=true end)
  737. for i=0,1,0.15 do
  738. wait()
  739. Torso.Neck.C0=necko*euler(0,0,1-2.57*i)
  740. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  741. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  742. RW.C0 = cf(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * euler(1.57,0,0.5-1.5+2.57*i)
  743. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  744. end
  745. con1:disconnect()
  746. bg.Parent=nil
  747. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  748. attack=false
  749. wait(0.2)
  750. for i=0,1,0.1 do
  751. wait()
  752. Torso.Neck.C0=necko*euler(0,0,1-2.57+1.57*i)
  753. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  754. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  755. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57*i,0,0.5-1.5+2-0.5*i)
  756. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  757. end
  758. if attack==false then Say(1) end
  759. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  760. end
  761. function LightKick1()
  762. attack=true
  763. kicking=true
  764. combo=1
  765. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  766. bg.P = 500000
  767. bg.Parent = Head
  768. bg.cframe=Head.CFrame
  769. ss(1)
  770. con1=RightLeg.Touched:connect(function(hit) Damagefunc2(hit,10,1,RightLeg.CFrame*CFrame.new(0,-1,0),1) kicked=true end)
  771. for i=0,1,0.15 do
  772. wait()
  773. Torso.Neck.C0=necko*euler(0,-0.5*i,-1.5*i)
  774. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  775. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  776. RW.C0 = cf(1.5,0.5,0) * euler(-0.5*i,0,0.5)
  777. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  778. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  779. RWL.C1 = cf(-0.5,1.5,0) * euler(-1*i,0,-1*i)
  780. LWL.C0 = cf(0,-0.5,0) * euler(0,0,-0.5*i)
  781. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  782. end
  783. con1:disconnect()
  784. --bg.Parent=nil
  785. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  786. attack=false
  787. wait(0.1)
  788. bg.Parent=nil
  789. for i=0,1,0.15 do
  790. wait()
  791. if attack==false then
  792. Torso.Neck.C0=necko*euler(0,-0.5+0.5*i,-1.5+1.5*i)
  793. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  794. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  795. RW.C0 = cf(1.5,0.5,0) * euler(-0.5+0.5*i,0,0.5)
  796. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  797. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  798. RWL.C1 = cf(-0.5,1.5,0) * euler(-1+1*i,0,-1+1*i)
  799. LWL.C0 = cf(0,-0.5,0) * euler(0,0,-0.5+0.5*i)
  800. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  801. end
  802. end
  803. if attack==false then Say(1) end
  804. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  805. kicking=false
  806. end
  807. function LightKick2()
  808. attack=true
  809. kicking=true
  810. combo=2
  811. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  812. bg.P = 500000
  813. bg.Parent = Head
  814. bg.cframe=Head.CFrame
  815. ss(1)
  816. con1=LeftLeg.Touched:connect(function(hit) Damagefunc2(hit,10,1,LeftLeg.CFrame*CFrame.new(0,-1,0),1) kicked=true end)
  817. for i=0,1,0.15 do
  818. wait()
  819. Torso.Neck.C0=necko*euler(0,-0.5+1*i,-1.5+3*i)
  820. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5*i)
  821. RWL.C1 = cf(-0.5,1.5,0) * euler(-1+1*i,0,-1+1*i)
  822. LWL.C0 = cf(0,-0.5,0) * euler(0,0,-0.5+0.5*i)
  823. LWL.C1 = cf(0.5,1.5,0) * euler(-1*i,0,1*i)
  824. end
  825. attack=false
  826. con1:disconnect()
  827. for i=0,1,0.1 do
  828. wait()
  829. if attack==false then
  830. Torso.Neck.C0=necko*euler(0,-0.5+1,-1.5+3+0.2*i)
  831. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5)
  832. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  833. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  834. LWL.C1 = cf(0.5,1.5,0) * euler(-1,0,1+0.2*i)
  835. end
  836. end
  837. bg.Parent=nil
  838. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  839. wait(0.1)
  840. for i=0,1,0.15 do
  841. wait()
  842. if attack==false then
  843. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  844. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  845. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  846. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  847. Torso.Neck.C0=necko*euler(0,-0.5+1-0.5*i,-1.5+3.2-1.7*i)
  848. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5-0.5*i)
  849. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  850. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  851. LWL.C1 = cf(0.5,1.5,0) * euler(-1+1*i,0,1+0.2-1.2*i)
  852. end
  853. end
  854. if attack==false then Say(1) end
  855. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  856. Torso.Neck.C0=necko*euler(0,0,0)
  857. kicking=false
  858. end
  859. function LightKick3()
  860. attack=true
  861. kicking=true
  862. combo=3
  863. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  864. bg.P = 500000
  865. bg.Parent = Head
  866. bg.cframe=Head.CFrame
  867. ss(1)
  868. con1=LeftLeg.Touched:connect(function(hit) Damagefunc2(hit,10,1,LeftLeg.CFrame*CFrame.new(0,-1,0),1) kicked=true end)
  869. for i=0,1,0.15 do
  870. wait()
  871. Torso.Neck.C0=necko*euler(0,-0.5+1,-1.5+3+1*i)
  872. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5)
  873. RWL.C1 = cf(-0.5,1.5,0) * euler(-1+1,0,-1+1)
  874. LWL.C0 = cf(0,-0.5,0) * euler(0,0,-0.5+0.5)
  875. LWL.C1 = cf(0.5,1.5,0) * euler(-1,0,1)
  876. end
  877. con1:disconnect()
  878. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  879. attack=false
  880. wait(0.1)
  881. bg.Parent=nil
  882. --if attack==false then Say(1) end
  883. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  884. Torso.Neck.C0=necko*euler(0,0,0)
  885. kicking=false
  886. end
  887. function HeavyKick1()
  888. attack=true
  889. kicking=true
  890. combo=1
  891. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  892. bg.P = 500000
  893. bg.Parent = Head
  894. bg.cframe=Head.CFrame
  895. for i=0,1,0.1 do
  896. wait()
  897. Torso.Neck.C0=necko*euler(0,0,1.57*i)
  898. --bg.cframe=Head.CFrame*euler(0,0.3,0)
  899. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  900. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  901. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  902. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  903. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5*i)
  904. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  905. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  906. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  907. end
  908. ss(0.8)
  909. con1=RightLeg.Touched:connect(function(hit) Damagefunc2(hit,20,1,RightLeg.CFrame*CFrame.new(0,-1,0),1) kicked=true end)
  910. for i=0,1,0.15 do
  911. wait()
  912. Torso.Neck.C0=necko*euler(0,-0.5*i,1.57-3.14*i)
  913. --bg.cframe=Head.CFrame*euler(0,0.3,0)
  914. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  915. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  916. RW.C0 = cf(1.5,0.5,0) * euler(1.57*i,0,0.5-1*i)
  917. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  918. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5+0.5*i)
  919. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  920. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  921. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  922. end
  923. for i=0,1,0.1 do
  924. wait()
  925. Torso.Neck.C0=necko*euler(0,-0.5+0.5*i,1.57-3.14)
  926. bg.cframe=Head.CFrame*euler(0,0.6,0)
  927. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  928. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  929. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57*i,0,0.5-1+1*i)
  930. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  931. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0.5+0.5-1*i)
  932. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  933. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  934. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  935. end
  936. con1:disconnect()
  937. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  938. attack=false
  939. kicking=false
  940. bg.Parent=nil
  941. for i=0,1,0.1 do
  942. if attack==false then
  943. wait()
  944. Torso.Neck.C0=necko*euler(0,0,1.57-3.14+1.57*i)
  945. end
  946. end
  947. if attack==false then Say(1) end
  948. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  949. end
  950. function HeavyKick2()
  951. attack=true
  952. kicking=true
  953. combo=2
  954. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  955. bg.P = 500000
  956. bg.Parent = Head
  957. bg.cframe=Head.CFrame
  958. ss(0.9)
  959. con1=LeftLeg.Touched:connect(function(hit) Damagefunc3(hit,20,30,RightArm.CFrame*CFrame.new(0,-1,0),1.5) kicked=true end)
  960. for i=0,1,0.15 do
  961. wait()
  962. Torso.Neck.C0=necko*euler(0,0.3*i,-1.57+3.14*i)
  963. --bg.cframe=Head.CFrame*euler(0,0.6,0)
  964. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5-0.5*i,0,0)
  965. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  966. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  967. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  968. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  969. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  970. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  971. LWL.C1 = cf(0.5,1.5,0) * euler(-0.5*i,0,0.8*i)
  972. end
  973. game:GetService("Chat"):Chat(Character,"Fall!",2)
  974. for i=0,1,0.1 do
  975. wait()
  976. Torso.Neck.C0=necko*euler(0,0.3+0.1*i,-1.57+3.14+0.2*i)
  977. --bg.cframe=Head.CFrame*euler(0,0.6,0)
  978. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5-0.5,0,0)
  979. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  980. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  981. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  982. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  983. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  984. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  985. LWL.C1 = cf(0.5,1.5,0) * euler(-0.5-0.1*i,0,0.8+0.2*i)
  986. end
  987. con1:disconnect()
  988. coroutine.resume(coroutine.create(function() wait(0.3) if attack==false or shootmode==true then combo=0 print("Ended") end end))
  989. attack=false
  990. kicking=false
  991. bg.Parent=nil
  992. for i=0,1,0.1 do
  993. wait()
  994. Torso.Neck.C0=necko*euler(0,0.3+0.1-0.4*i,-1.57+3.14-1.57*i)
  995. --bg.cframe=Head.CFrame*euler(0,0.6,0)
  996. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5-0.5+0.5*i,0,0)
  997. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  998. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  999. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1000. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  1001. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1002. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  1003. LWL.C1 = cf(0.5,1.5,0) * euler(-0.5-0.1+0.6*i,0,0.8+0.2-1*i)
  1004. end
  1005. if attack==false then Say(1) end
  1006. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  1007. end
  1008. function Grab()
  1009. attack=true
  1010. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1011. bg.P = 500000
  1012. bg.Parent = Head
  1013. bg.cframe=Head.CFrame
  1014. ss(1.1)
  1015. con1=RightArm.Touched:connect(function(hit)
  1016. if grabbed==true then return end
  1017. if hit.Parent==nil then
  1018. return
  1019. end
  1020. -- CPlayer=Bin
  1021. h=hit.Parent:FindFirstChild("Humanoid")
  1022. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1023. if attackdebounce == false then
  1024. attackdebounce = true
  1025. coroutine.resume(coroutine.create(function()
  1026. wait(0.2)
  1027. attackdebounce = false
  1028. end))
  1029. end
  1030. b=math.random(1,3)
  1031. if b==1 then
  1032. game:GetService("Chat"):Chat(Character,"You're mine!",2)
  1033. elseif b==2 then
  1034. game:GetService("Chat"):Chat(Character,"Gotcha.",2)
  1035. end
  1036. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1037. bg.P = 5000000
  1038. bg.Parent = Head
  1039. bg.cframe=Head.CFrame
  1040. bb=it("BodyPosition")
  1041. bb.P=5000
  1042. bb.D=100
  1043. bb.maxForce=vt(math.huge,math.huge,math.huge)
  1044. bb.position=Torso.Position
  1045. bb.Parent=Torso
  1046. hit.Parent.Humanoid.PlatformStand=false
  1047. w=Instance.new("Weld")
  1048. w.Parent=RightArm
  1049. w.Part0=RightArm
  1050. w.Part1=hit.Parent.Torso
  1051. w.C0=CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(1.57,0,3.14)
  1052. grabbed=true
  1053. for i=0,1,0.1 do
  1054. wait()
  1055. attack=true
  1056. Torso.Neck.C0=necko*euler(0,0,-1.57+1.57*i)
  1057. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5)
  1058. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1059. RW.C0 = cf(1.5,0.5,0) * euler(1.57,0,1.57-1.57*i)
  1060. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1061. RWL.C0 = cf(0,-0.5,0) * euler(-1*i,0,0)
  1062. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1063. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  1064. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1065. end
  1066. wait(0.2)
  1067. w.Parent=nil
  1068. hit.Parent.Humanoid.PlatformStand=false
  1069. grabbed=false
  1070. con2=RightLeg.Touched:connect(function(hit) Damagefunc3(hit,20,50,RightArm.CFrame*CFrame.new(0,-1,0),1.5) kicked=true end)
  1071. ss(1.2)
  1072. game:GetService("Chat"):Chat(Character,"Fly!",2)
  1073. for i=0,1,0.2 do
  1074. wait()
  1075. Torso.Neck.C0=necko*euler(0.5*i,0,0)
  1076. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5-0.5*i,0,-0.5)
  1077. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1078. RW.C0 = cf(1.5,0.5,0) * euler(1.57-2.57*i,0,0)
  1079. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1080. RWL.C0 = cf(0,-0.5,0) * euler(-1+2.5*i,0,0)
  1081. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1082. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  1083. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1084. end
  1085. con2:disconnect()
  1086. for i=0,1,0.1 do
  1087. wait()
  1088. Torso.Neck.C0=necko*euler(0.5,0,0)
  1089. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5-0.5-0.1*i,0,-0.5)
  1090. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1091. RW.C0 = cf(1.5,0.5,0) * euler(1.57-2.57+0.2*i,0,0)
  1092. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1093. RWL.C0 = cf(0,-0.5,0) * euler(-1+2.5+0.1*i,0,0)
  1094. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1095. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  1096. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1097. end
  1098. for i=0,1,0.1 do
  1099. wait()
  1100. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0)
  1101. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5-0.5-0.1+0.6*i,0,-0.5+0.5*i)
  1102. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1103. RW.C0 = cf(1.5,0.5,0) * euler(1.57-2.57+1*i,0,0.5*i)
  1104. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1105. RWL.C0 = cf(0,-0.5,0) * euler(-1+2.5-1.5*i,0,0)
  1106. RWL.C1 = cf(-0.5,1.5,0) * euler(0,0,0)
  1107. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  1108. LWL.C1 = cf(0.5,1.5,0) * euler(0,0,0)
  1109. end
  1110. attack=false
  1111. if attack==false and Did~=0 then print("Did "..Did.." units of damage") Did=0 end
  1112. print("OHOHOHOH")
  1113. wait(2)
  1114. if attack==false then Say(1) end
  1115. Enemy=nil
  1116. HP=0
  1117. Did=0
  1118. bb.Parent=nil
  1119. bg.Parent=nil
  1120. end
  1121. end)
  1122. for i=0,1,0.15 do
  1123. wait()
  1124. Torso.Neck.C0=necko*euler(0,0,-1.57*i)
  1125. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  1126. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1127. RW.C0 = cf(1.5,0.5,0) * euler(1.57*i,0,0.5+1.07*i)
  1128. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1129. end
  1130. con1:disconnect()
  1131. attack=false
  1132. wait(0.2)
  1133. print(grabbed)
  1134. if grabbed==false then
  1135. bg.Parent=nil
  1136. b=math.random(1,3)
  1137. if b==1 then
  1138. game:GetService("Chat"):Chat(Character,"Missed...",2)
  1139. elseif b==2 then
  1140. game:GetService("Chat"):Chat(Character,"Get over here.",2)
  1141. end
  1142. for i=0,1,0.1 do
  1143. if attack==false then
  1144. wait()
  1145. Torso.Neck.C0=necko*euler(0,0,-1.57+1.57*i)
  1146. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  1147. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1148. RW.C0 = cf(1.5,0.5,0) * euler(1.57-1.57*i,0,0.5+1.07-1.07*i)
  1149. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1150. end
  1151. end
  1152. Enemy=nil
  1153. HP=0
  1154. end
  1155. grabbed=false
  1156. end
  1157. function Taunt()
  1158. attack=true
  1159. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1160. bg.P = 500000
  1161. bg.Parent = Head
  1162. bg.cframe=Head.CFrame
  1163. for i=0,1,0.1 do
  1164. wait()
  1165. Torso.Neck.C0=necko*euler(0,0,-1.57*i)
  1166. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5*i)
  1167. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1168. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5+1.07*i)
  1169. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57*i,0)
  1170. end
  1171. Say(2)
  1172. for i=1,2 do
  1173. for i=0,1,0.25 do
  1174. wait()
  1175. Torso.Neck.C0=necko*euler(0,0,-1.57)
  1176. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5)
  1177. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1178. RW.C0 = cf(1.5,0.5,0) * euler(0,0,1.57+0.5*i)
  1179. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57,0)
  1180. end
  1181. for i=0,1,0.25 do
  1182. wait()
  1183. Torso.Neck.C0=necko*euler(0,0,-1.57)
  1184. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5)
  1185. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1186. RW.C0 = cf(1.5,0.5,0) * euler(0,0,1.57+0.5-0.5*i)
  1187. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57,0)
  1188. end
  1189. end
  1190. for i=0,1,0.1 do
  1191. wait()
  1192. Torso.Neck.C0=necko*euler(0,0,-1.57)
  1193. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5)
  1194. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1195. RW.C0 = cf(1.5,0.5,0) * euler(-0.6*i,0,1.57+1*i)
  1196. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57,0)
  1197. end
  1198. for i=0,1,0.2 do
  1199. wait()
  1200. Torso.Neck.C0=necko*euler(0,0,-1.57+1*i)
  1201. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5)
  1202. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1203. RW.C0 = cf(1.5,0.5,0) * euler(-0.6*i,0,1.57+1-2*i)
  1204. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57-1*i,0)
  1205. end
  1206. for i=0,1,0.1 do
  1207. wait()
  1208. Torso.Neck.C0=necko*euler(0,0,-1.57+1+0.1*i)
  1209. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5)
  1210. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1211. RW.C0 = cf(1.5,0.5,0) * euler(-0.6-0.2*i,0,1.57+1-2-0.2*i)
  1212. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57-1,0)
  1213. end
  1214. for i=0,1,0.1 do
  1215. wait()
  1216. Torso.Neck.C0=necko*euler(0,0,-1.57+1.1+0.47*i)
  1217. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,-0.5+0.5*i)
  1218. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1219. RW.C0 = cf(1.5,0.5,0) * euler(-0.8+0.8*i,0,0.37+0.13*i)
  1220. RW.C1 = cf(0, 0.5, 0) * euler(0,1.57-1-0.57*i,0)
  1221. end
  1222. bg.Parent=nil
  1223. attack=false
  1224. end
  1225. function Aim()
  1226. attack=true
  1227. if shootmode==false then
  1228. shootmode=true
  1229. --grip(1.7)
  1230. wld11a.Part1 = LeftArm
  1231. wld11a.C0 = euler(1.75,0,0) * cf(0,1,0)
  1232. --[[for i=0,1,0.1 do
  1233. wait()
  1234. bg.cframe = Head.CFrame*euler(0,0,0)
  1235. Torso.Neck.C0=necko*euler(0,0,0)
  1236. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+3.14*i,0,0)
  1237. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1238. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1239. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1240. end]]
  1241. coroutine.resume(coroutine.create(function()
  1242. while shootmode==true do
  1243. wait()
  1244. bg.P = 500000
  1245. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1246. bg.cframe = cf(Head.Position,pos4) * euler(0,0,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  1247. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  1248. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  1249. offset=offset/mag
  1250. --[[Torso.Neck.C0=necko*euler(0,0,1.57)
  1251. Torso.Neck.C1=necko2*euler(-offset,0,0) ]]
  1252. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1253. LW.C1 = cf(0, 0.5, 0) * euler(offset,-1.57,0)
  1254. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1255. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1256. end
  1257. end))
  1258. for i=0,1,0.1 do
  1259. wait()
  1260. bg.Parent = Head
  1261. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  1262. bg.P = 500000
  1263. --bg.cframe = Head.CFrame*euler(0,0,0)
  1264. Torso.Neck.C0=necko*euler(0,0,1.57*i)
  1265. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57*i)
  1266. LW.C1 = cf(0, 0.5, 0) * euler(0,-1.57*i,0)
  1267. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1268. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1269. end
  1270. elseif shootmode==true then
  1271. shootmode=false
  1272. for i=0,1,0.1 do
  1273. wait()
  1274. bg.Parent = Head
  1275. bg.P = 500000
  1276. bg.cframe = Head.CFrame*euler(0,0,0)
  1277. Torso.Neck.C0=necko*euler(0,0,1.57-1.57*i)
  1278. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5*i,0,-1.57+1.57*i)
  1279. LW.C1 = cf(0, 0.5, 0) * euler(offset-offset*i,-1.57+1.57*i,0)
  1280. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1281. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1282. end
  1283. bg.Parent=nil
  1284. --[[wld11a.Part1 = LeftLeg
  1285. wld11a.C0 = euler(3.9,0,0) * cf(0.7,-0.5,0.5)
  1286. for i=0,1,0.1 do
  1287. wait()
  1288. bg.cframe = Head.CFrame*euler(0,0,0)
  1289. Torso.Neck.C0=necko*euler(0,0,0)
  1290. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5,0,0)
  1291. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1292. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1293. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1294. end]]
  1295. attack=false
  1296. end
  1297. attack=false
  1298. end
  1299. function Shoot()
  1300. attack=true
  1301. spread2 = 0
  1302. range2 = 100
  1303. rangepower = 10
  1304. if currentam==6 then
  1305. currentam=0
  1306. reload(0.75)
  1307. for i=0,1,0.3 do
  1308. wait()
  1309. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1310. LW.C1 = cf(0, 0.5, 0) * euler(offset+0.7*i,-1.57,0)
  1311. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1312. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1313. end
  1314. for i=0,1,0.3 do
  1315. wait()
  1316. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1317. LW.C1 = cf(0, 0.5, 0) * euler(offset+0.7-0.7*i,-1.57,0)
  1318. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1319. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1320. end
  1321. wait(0.5)
  1322. else
  1323. fire1(0.3)
  1324. --[[ s=it("Sound")
  1325. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1326. s.Volume=1
  1327. s.Pitch=2
  1328. s.Parent=Head
  1329. s:Play()
  1330. coroutine.resume(coroutine.create(function()
  1331. wait(2)
  1332. s.Parent=nil
  1333. end))
  1334. thesound=s
  1335. doSound(thesound,60,thesound.Parent,thesound.Volume*100)]]
  1336. currentam=currentam+1
  1337. shoottrail2(handle34,10)
  1338. for i=0,1,0.3 do
  1339. wait()
  1340. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1341. LW.C1 = cf(0, 0.5, 0) * euler(offset-0.5*i,-1.57,0)
  1342. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1343. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1344. end
  1345. for i=0,1,0.3 do
  1346. wait()
  1347. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1348. LW.C1 = cf(0, 0.5, 0) * euler(offset-0.5+0.5*i,-1.57,0)
  1349. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1350. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1351. end
  1352. end
  1353. attack=false
  1354. end
  1355. function RapidShoot()
  1356. attack=true
  1357. spread2 = 5
  1358. range2 = 100
  1359. rangepower = 10
  1360. for i=0,1,0.1 do
  1361. wait()
  1362. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1363. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1364. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1365. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1366. end
  1367. for i=1,6 do
  1368. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1369. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57,-1.57,0)
  1370. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1371. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1372. fire1(0.3)
  1373. shoottrail2(handle34,5)
  1374. for i=0,1,0.7 do
  1375. wait(0)
  1376. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1377. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1378. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1379. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1380. end
  1381. for i=0,1,0.7 do
  1382. wait(0)
  1383. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1384. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1385. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1386. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1387. end
  1388. end
  1389. while rapidshooting==true and mana >= 10 do
  1390. mana=mana-10
  1391. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1392. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57,-1.57,0)
  1393. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1394. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1395. fire1(0.3)
  1396. shoottrail2(handle34,5)
  1397. for i=0,1,0.7 do
  1398. wait(0)
  1399. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1400. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1401. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1402. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1403. end
  1404. for i=0,1,0.7 do
  1405. wait(0)
  1406. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1407. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1408. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1409. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1410. end
  1411. end
  1412. reload(0.75)
  1413. currentam=0
  1414. for i=0,1,0.3 do
  1415. wait()
  1416. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1417. LW.C1 = cf(0, 0.5, 0) * euler(offset+0.7*i,-1.57,0)
  1418. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1419. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1420. end
  1421. for i=0,1,0.3 do
  1422. wait()
  1423. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1424. LW.C1 = cf(0, 0.5, 0) * euler(offset+0.7-0.7*i,-1.57,0)
  1425. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1426. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1427. end
  1428. wait(0.5)
  1429. attack=false
  1430. end
  1431. function FullBlast()
  1432. attack=true
  1433. spread2 = 10
  1434. range2 = 100
  1435. rangepower = 10
  1436. for i=0,1,0.1 do
  1437. wait()
  1438. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1439. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1440. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1441. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1442. end
  1443. for i=1,6 do
  1444. coroutine.resume(coroutine.create(function()
  1445. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1446. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57,-1.57,0)
  1447. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1448. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1449. fire1(0.3)
  1450. shoottrail2(handle34,5)
  1451. for i=0,1,0.7 do
  1452. wait(0)
  1453. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1454. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1455. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1456. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1457. end
  1458. for i=0,1,0.7 do
  1459. wait(0)
  1460. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1461. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1462. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1463. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1464. end
  1465. end))
  1466. end
  1467. wait(0.5)
  1468. reload(0.75)
  1469. currentam=0
  1470. for i=0,1,0.3 do
  1471. wait()
  1472. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1473. LW.C1 = cf(0, 0.5, 0) * euler(offset+0.7*i,-1.57,0)
  1474. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1475. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1476. end
  1477. for i=0,1,0.3 do
  1478. wait()
  1479. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1480. LW.C1 = cf(0, 0.5, 0) * euler(offset+0.7-0.7*i,-1.57,0)
  1481. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1482. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1483. end
  1484. wait(0.5)
  1485. attack=false
  1486. end
  1487. function LaserShot()
  1488. attack=true
  1489. Character.Humanoid.WalkSpeed=0
  1490. for i=0,1,0.2 do
  1491. wait()
  1492. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1493. LW.C1 = cf(0, 0.5, 0) * euler(offset-1*i,-1.57,0)
  1494. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1495. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1496. end
  1497. grip(1.7)
  1498. for i=0,1,0.5 do
  1499. wait()
  1500. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  1501. LW.C1 = cf(0, 0.5, 0) * euler(offset-1+1*i,-1.57,0)
  1502. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1503. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1504. end
  1505. for i=1,30 do
  1506. wait()
  1507. ChargeEffect(handle34,2,2,2,math.random(-10,10),math.random(-10,10),math.random(-10,10),0,0,0,BrickColor.new("Cyan"))
  1508. end
  1509. wait(0.2)
  1510. Laser(handle34,math.random(40,80))
  1511. fire1(0.2)
  1512. fire1(0.3)
  1513. fire1(0.4)
  1514. for i=0,1,0.7 do
  1515. wait(0)
  1516. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1517. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1518. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1519. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1520. end
  1521. for i=0,1,0.7 do
  1522. wait(0)
  1523. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1524. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1525. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1526. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1527. end
  1528. wait(0.5)
  1529. Character.Humanoid.WalkSpeed=16
  1530. attack=false
  1531. end
  1532. function Obliterate()
  1533. if mana >= 400 then
  1534. attack=true
  1535. coroutine.resume(coroutine.create(function()
  1536. while attack==true do
  1537. wait()
  1538. mana=0
  1539. end
  1540. end))
  1541. Character.Humanoid.WalkSpeed=0
  1542. for i=0,1,0.1 do
  1543. wait()
  1544. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1545. LW.C1 = cf(0, 0.5, 0) * euler(offset-offset-1.57-1.57*i,-1.57,0)
  1546. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1547. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1548. end
  1549. local derpsparkles=it("Sparkles")
  1550. derpsparkles.Parent=handle32
  1551. derpsparkles.SparkleColor=Color3.new(0,0,154)
  1552. derpsparkles.Enabled=true
  1553. charge(0.5)
  1554. for i=1,60 do
  1555. wait()
  1556. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1557. LW.C1 = cf(0, 0.5, 0) * euler(offset-offset-1.57-1.57,-1.57,0)
  1558. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1559. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1560. ChargeEffect(handle34,2,2,2,math.random(-10,10),math.random(-10,10),math.random(-10,10),0,0,0,BrickColor.new("Cyan"))
  1561. end
  1562. for i=0,1,0.1 do
  1563. wait()
  1564. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1565. LW.C1 = cf(0, 0.5, 0) * euler(offset-offset+offset-1.57-1.57+1.57*i,-1.57,0)
  1566. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1567. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1568. end
  1569. wait(0.2)
  1570. for i=1,3 do
  1571. spread2 = 5
  1572. range2 = 100
  1573. rangepower = 10
  1574. wait(0.3)
  1575. for i=1,6 do
  1576. coroutine.resume(coroutine.create(function()
  1577. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1578. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57,-1.57,0)
  1579. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1580. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1581. fire1(0.3)
  1582. shoottrail2(handle34,5)
  1583. for i=0,1,0.7 do
  1584. wait(0)
  1585. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1586. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1587. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1588. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1589. end
  1590. for i=0,1,0.7 do
  1591. wait(0)
  1592. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1593. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1594. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1595. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1596. end
  1597. end))
  1598. end
  1599. end
  1600. for i=1,10 do
  1601. spread2 = 2
  1602. range2 = 100
  1603. rangepower = 10
  1604. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1605. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57,-1.57,0)
  1606. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1607. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1608. for i=1,2 do
  1609. fire1(0.3)
  1610. shoottrail2(handle34,5)
  1611. end
  1612. for i=0,1,0.9 do
  1613. wait(0)
  1614. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1615. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1616. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1617. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1618. end
  1619. for i=0,1,0.9 do
  1620. wait(0)
  1621. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1622. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1623. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1624. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1625. end
  1626. end
  1627. for i=0,1,0.2 do
  1628. wait(0)
  1629. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1630. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1631. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1632. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1633. end
  1634. for i=0,1,0.2 do
  1635. wait(0)
  1636. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1637. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1638. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1639. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1640. end
  1641. spread2 = 5
  1642. range2 = 100
  1643. rangepower = 20
  1644. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1645. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57,-1.57,0)
  1646. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1647. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1648. derpsparkles.Enabled=false
  1649. local derpsmoke=it("Smoke")
  1650. derpsmoke.Parent=handle32
  1651. derpsmoke.Color=Color3.new(0,0,154)
  1652. derpsmoke.Opacity=0.05
  1653. derpsmoke.Size=0.5
  1654. for i=1,10 do
  1655. fire1(0.3)
  1656. shoottrail2(handle34,20)
  1657. end
  1658. for i=0,1,0.1 do
  1659. wait(0)
  1660. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1661. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5*i,-1.57,0)
  1662. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1663. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1664. end
  1665. for i=0,1,0.1 do
  1666. wait(0)
  1667. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  1668. LW.C1 = cf(0, 0.5, 0) * euler(offset-1.57-0.5+0.5*i,-1.57,0)
  1669. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  1670. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  1671. end
  1672. canusepenumbra=false
  1673. Aim()
  1674. derpsparkles.Parent=nil
  1675. coroutine.resume(coroutine.create(function()
  1676. wait(30)
  1677. canusepenumbra=true
  1678. derpsmoke.Enabled=false
  1679. wait(10)
  1680. derpsmoke.Parent=nil
  1681. end))
  1682. wait(1)
  1683. attack=false
  1684. Character.Humanoid.WalkSpeed=16
  1685. end
  1686. end
  1687. function Sound(sid,pit,vol,parz) --[[coroutine.resume(coroutine.create(function() local sou = it("Sound") sou.SoundId = sid sou.Pitch = pit sou.Volume = vol sou.Parent = parz game:service'Lighting'["Lolsound"].Value = sou print(sou.Parent) wait(5) sou:Remove'' end))]] end
  1688. --Sound("http://www.roblox.com/asset/?id=2697431",0.3,0.7,Head)
  1689. doSound=function(sound,decay,origin,volume)
  1690. --[[ if Source==nil then --formatting for other objects.
  1691. Source=script.Parent
  1692. end]]
  1693. sc=game.Lighting.LocalSoundScript:clone()
  1694. sc.DecayFactor.Value=decay
  1695. sc.Origin.Value=origin
  1696. sc.Volume.Value=volume
  1697. sc.Disabled=false
  1698. sc.Parent=Character
  1699. sc.Sound.Value=sound
  1700. Gun=Bin
  1701. sc:clone().Parent=Character
  1702. print(sc.Parent)
  1703. end
  1704. function ss(pitch)
  1705. local SlashSound = it("Sound")
  1706. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  1707. SlashSound.Parent = Head
  1708. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1709. SlashSound.Volume = .7
  1710. SlashSound.Pitch = pitch
  1711. SlashSound.PlayOnRemove = true
  1712. coroutine.resume(coroutine.create(function()
  1713. wait(1)
  1714. SlashSound.Parent = nil
  1715. end))
  1716. end
  1717. function critsound(pitch)
  1718. local SlashSound = it("Sound")
  1719. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  1720. SlashSound.Parent = Head
  1721. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1722. SlashSound.Volume = .4
  1723. SlashSound.Pitch = pitch
  1724. SlashSound.PlayOnRemove = true
  1725. coroutine.resume(coroutine.create(function()
  1726. wait(1)
  1727. SlashSound.Parent = nil
  1728. end))
  1729. end
  1730. function charge(pitch)
  1731. local SlashSound = it("Sound")
  1732. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  1733. SlashSound.Parent = Head
  1734. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1735. SlashSound.Volume = 1
  1736. SlashSound.Pitch = pitch
  1737. SlashSound.PlayOnRemove = true
  1738. coroutine.resume(coroutine.create(function()
  1739. wait(1)
  1740. SlashSound.Parent = nil
  1741. end))
  1742. end
  1743. function bewm(pitch)
  1744. local SlashSound = it("Sound")
  1745. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  1746. SlashSound.Parent = Head
  1747. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1748. SlashSound.Volume = .7
  1749. SlashSound.Pitch = pitch
  1750. SlashSound.PlayOnRemove = true
  1751. coroutine.resume(coroutine.create(function()
  1752. wait(1)
  1753. SlashSound.Parent = nil
  1754. end))
  1755. end
  1756. function abscond(pitch)
  1757. local SlashSound = it("Sound")
  1758. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  1759. SlashSound.Parent = Head
  1760. --game:service'Lighing'["Lolsound"].Value=SlashSound
  1761. SlashSound.Volume = 1
  1762. SlashSound.Pitch = pitch
  1763. SlashSound.PlayOnRemove = true
  1764. coroutine.resume(coroutine.create(function()
  1765. wait(1)
  1766. SlashSound.Parent = nil
  1767. end))
  1768. end
  1769. function distort(pitch)
  1770. local SlashSound = it("Sound")
  1771. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249"
  1772. SlashSound.Parent = Head
  1773. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1774. SlashSound.Volume = 1
  1775. SlashSound.Pitch = pitch
  1776. SlashSound.PlayOnRemove = true
  1777. coroutine.resume(coroutine.create(function()
  1778. wait(1)
  1779. SlashSound.Parent = nil
  1780. end))
  1781. end
  1782. function thwack(pitch)
  1783. local SlashSound = it("Sound")
  1784. SlashSound.SoundId = "http://www.roblox.com/asset/?id=46153268"
  1785. SlashSound.Parent = Head
  1786. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1787. SlashSound.Volume = 1
  1788. SlashSound.Pitch = pitch
  1789. SlashSound.PlayOnRemove = true
  1790. coroutine.resume(coroutine.create(function()
  1791. wait(1)
  1792. SlashSound.Parent = nil
  1793. end))
  1794. end
  1795. function fire1(pitch)
  1796. local SlashSound = it("Sound")
  1797. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697431"
  1798. SlashSound.Parent = Head
  1799. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1800. SlashSound.Volume = 1
  1801. SlashSound.Pitch = pitch
  1802. SlashSound.PlayOnRemove = true
  1803. coroutine.resume(coroutine.create(function()
  1804. wait(1)
  1805. SlashSound.Parent = nil
  1806. end))
  1807. end
  1808. function fire2(pitch)
  1809. local SlashSound = it("Sound")
  1810. SlashSound.SoundId = "http://www.roblox.com/asset/?id=48618802 "
  1811. SlashSound.Parent = Head
  1812. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1813. SlashSound.Volume = 1
  1814. SlashSound.Pitch = pitch
  1815. SlashSound.PlayOnRemove = true
  1816. coroutine.resume(coroutine.create(function()
  1817. wait(1)
  1818. SlashSound.Parent = nil
  1819. end))
  1820. end
  1821. function grip(pitch)
  1822. local SlashSound = it("Sound")
  1823. SlashSound.SoundId = "rbxasset://sounds/swordslash.wav"
  1824. SlashSound.Parent = Head
  1825. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1826. SlashSound.Volume = 1
  1827. SlashSound.Pitch = pitch
  1828. SlashSound.PlayOnRemove = true
  1829. coroutine.resume(coroutine.create(function()
  1830. wait(1)
  1831. SlashSound.Parent = nil
  1832. end))
  1833. end
  1834. function reload(pitch)
  1835. local SlashSound = it("Sound")
  1836. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697295"
  1837. SlashSound.Parent = Head
  1838. --game:service'Lighting'["Lolsound"].Value=SlashSound
  1839. SlashSound.Volume = 1
  1840. SlashSound.Pitch = pitch
  1841. SlashSound.PlayOnRemove = true
  1842. coroutine.resume(coroutine.create(function()
  1843. wait(1)
  1844. SlashSound.Parent = nil
  1845. end))
  1846. end
  1847. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1848. local msh1 = it("BlockMesh")
  1849. msh1.Scale = vt(0.5,0.5,0.5)
  1850. S=it("Part")
  1851. S.Material = "SmoothPlastic"
  1852. S.Name="Effect"
  1853. S.formFactor=0
  1854. S.Size=vt(x1,y1,z1)
  1855. S.BrickColor=color
  1856. S.Reflectance = 0
  1857. S.TopSurface=0
  1858. S.BottomSurface=0
  1859. S.Transparency=0
  1860. S.Anchored=true
  1861. S.CanCollide=false
  1862. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1863. S.Parent=workspace
  1864. msh1.Parent = S
  1865. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1866. end
  1867. function MMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1868. local msh1 = it("BlockMesh")
  1869. msh1.Scale = vt(0.5,0.5,0.5)
  1870. S=it("Part")
  1871. S.Name="Effect"
  1872. S.Material = "SmoothPlastic"
  1873. S.formFactor=0
  1874. S.Size=vt(x1,y1,z1)
  1875. S.BrickColor=color
  1876. S.Reflectance = 0
  1877. S.TopSurface=0
  1878. S.BottomSurface=0
  1879. S.Transparency=0
  1880. S.Anchored=true
  1881. S.CanCollide=false
  1882. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1883. S.Parent=Character
  1884. msh1.Parent = S
  1885. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1886. end
  1887. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  1888. local msh1 = it("BlockMesh")
  1889. msh1.Scale = vt(0.5,0.5,0.5)
  1890. S=it("Part")
  1891. S.Material = "SmoothPlastic"
  1892. S.Name="Effect"
  1893. S.formFactor=0
  1894. S.Size=vt(x1,y1,z1)
  1895. S.BrickColor=color
  1896. S.Reflectance = 0
  1897. S.TopSurface=0
  1898. S.BottomSurface=0
  1899. S.Transparency=0
  1900. S.Anchored=true
  1901. S.CanCollide=false
  1902. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1903. S.Parent=workspace
  1904. msh1.Parent = S
  1905. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1906. end
  1907. function MMMAGIC3(part,x1,y1,z1,x2,y2,z2,color)
  1908. local msh1 = it("BlockMesh")
  1909. msh1.Scale = vt(0.5,0.5,0.5)
  1910. S=it("Part")
  1911. S.Material = "SmoothPlastic"
  1912. S.Name="Effect"
  1913. S.formFactor=0
  1914. S.Size=vt(x1,y1,z1)
  1915. S.BrickColor=color
  1916. S.Reflectance = 0
  1917. S.TopSurface=0
  1918. S.BottomSurface=0
  1919. S.Transparency=0
  1920. S.Anchored=true
  1921. S.CanCollide=false
  1922. S.CFrame=part*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1923. S.Parent=workspace
  1924. msh1.Parent = S
  1925. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0,0.3,0) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1926. end
  1927. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1928. local msh1 = it("BlockMesh")
  1929. msh1.Scale = vt(x1,y1,z1)
  1930. S=it("Part")
  1931. S.Material = "SmoothPlastic"
  1932. S.Name="Effect"
  1933. S.formFactor=0
  1934. S.Size=vt(1,1,1)
  1935. S.BrickColor=color
  1936. S.Reflectance = 0
  1937. S.TopSurface=0
  1938. S.BottomSurface=0
  1939. S.Transparency=0
  1940. S.Anchored=true
  1941. S.CanCollide=false
  1942. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1943. S.Parent=workspace
  1944. msh1.Parent = S
  1945. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1946. end
  1947. function MOREMAGIX(part,cframe,x,y,z,color)
  1948. p2=it("Part")
  1949. p2.Material = "SmoothPlastic"
  1950. p2.Name="Blast"
  1951. p2.TopSurface=0
  1952. p2.BottomSurface=0
  1953. p2.CanCollide=false
  1954. p2.Anchored=true
  1955. p2.BrickColor=color
  1956. p2.Size=vt(x,y,z)
  1957. p2.formFactor="Symmetric"
  1958. p2.CFrame=part.CFrame*cf(0,cframe,0)
  1959. p2.Parent=Character
  1960. m=it("BlockMesh")
  1961. m.Parent=p2
  1962. m.Name="BlastMesh"
  1963. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-vt(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*cf(dir)*euler(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  1964. end
  1965. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1966. local msh1 = it("SpecialMesh")
  1967. msh1.Scale = vt(0.5,0.5,0.5)
  1968. msh1.MeshType = "Sphere"
  1969. S=it("Part")
  1970. S.Material = "SmoothPlastic"
  1971. S.Name="Effect"
  1972. S.formFactor=0
  1973. S.Size=vt(x1,y1,z1)
  1974. S.BrickColor=color
  1975. S.Reflectance = 0
  1976. S.TopSurface=0
  1977. S.BottomSurface=0
  1978. S.Transparency=0
  1979. S.Anchored=true
  1980. S.CanCollide=false
  1981. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1982. S.Parent=workspace
  1983. msh1.Parent = S
  1984. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1985. end
  1986. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1987. local msh1 = it("SpecialMesh")
  1988. msh1.Scale = vt(0.5,0.5,0.5)
  1989. msh1.MeshType = "Sphere"
  1990. S=it("Part")
  1991. S.Name="Effect"
  1992. S.Material = "SmoothPlastic"
  1993. S.formFactor=0
  1994. S.Size=vt(x1,y1,z1)
  1995. S.BrickColor=color
  1996. S.Reflectance = 0
  1997. S.TopSurface=0
  1998. S.BottomSurface=0
  1999. S.Transparency=0
  2000. S.Anchored=true
  2001. S.CanCollide=false
  2002. S.CFrame=part
  2003. S.Parent=workspace
  2004. msh1.Parent = S
  2005. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 5 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.3,0.3,0.3) Part.Transparency=Part.Transparency+0.15 wait() end Part.Parent=nil end),S,S.CFrame)
  2006. end
  2007. function EVENMOARMAGIX3(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2008. local msh1 = it("SpecialMesh")
  2009. msh1.Scale = vt(x1,y1,z1)
  2010. msh1.MeshType = "Sphere"
  2011. S=it("Part")
  2012. S.Name="Effect"
  2013. S.formFactor=0
  2014. S.Size=vt(1,1,1)
  2015. S.BrickColor=color
  2016. S.Material = "SmoothPlastic"
  2017. S.Reflectance = 0
  2018. S.TopSurface=0
  2019. S.BottomSurface=0
  2020. S.Transparency=0
  2021. S.Anchored=true
  2022. S.CanCollide=false
  2023. S.CFrame=part
  2024. S.Parent=workspace
  2025. msh1.Parent = S
  2026. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.3,0.3,0.3) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2027. end
  2028. function ChargeEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2029. local msh1 = it("SpecialMesh")
  2030. msh1.Scale = vt(0.5,0.5,0.5)
  2031. msh1.MeshType = "Sphere"
  2032. S=it("Part")
  2033. S.Material = "SmoothPlastic"
  2034. S.Name="Effect"
  2035. S.formFactor=0
  2036. S.Size=vt(x1,y1,z1)
  2037. S.BrickColor=color
  2038. S.Reflectance = 0
  2039. S.TopSurface=0
  2040. S.BottomSurface=0
  2041. S.Transparency=0
  2042. S.Anchored=false
  2043. S.CanCollide=false
  2044. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  2045. S.Parent=modelzorz
  2046. msh1.Parent = S
  2047. coroutine.resume(coroutine.create(function(Part,CF)
  2048. f=it("BodyPosition")
  2049. f.P=800
  2050. f.D=100
  2051. f.maxForce=vt(math.huge,math.huge,math.huge)
  2052. f.position=part.Position
  2053. f.Parent=Part
  2054. for i=0,1,0.1 do
  2055. wait()
  2056. Part.Transparency=Part.Transparency+0.1
  2057. end
  2058. Part.Parent=nil
  2059. end),S,S.CFrame)
  2060. end
  2061. function ChargeEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2062. local msh1 = it("SpecialMesh")
  2063. msh1.Scale = vt(0.5,0.5,0.5)
  2064. msh1.MeshType = "Sphere"
  2065. S=it("Part")
  2066. S.Name="Effect"
  2067. S.Material = "SmoothPlastic"
  2068. S.formFactor=0
  2069. S.Size=vt(x1,y1,z1)
  2070. S.BrickColor=color
  2071. S.Reflectance = 0
  2072. S.TopSurface=0
  2073. S.BottomSurface=0
  2074. S.Transparency=0
  2075. S.Anchored=false
  2076. S.CanCollide=false
  2077. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  2078. S.Parent=modelzorz
  2079. msh1.Parent = S
  2080. coroutine.resume(coroutine.create(function(Part,CF)
  2081. f=it("BodyPosition")
  2082. f.P=800
  2083. f.D=100
  2084. f.maxForce=vt(math.huge,math.huge,math.huge)
  2085. f.position=part.Position+vt(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2086. f.Parent=Part
  2087. for i=0,1,0.1 do
  2088. wait()
  2089. Part.Transparency=Part.Transparency+0.1
  2090. end
  2091. Part.Parent=nil
  2092. end),S,S.CFrame)
  2093. end
  2094. print("Y U NU GIVE CREDIT.")
  2095. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2096. local msh1 = it("SpecialMesh")
  2097. msh1.Scale = vt(x1,y1,z1)
  2098. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2099. S=it("Part")
  2100. S.Name="Effect"
  2101. S.formFactor=0
  2102. S.Size=vt(1,1,1)
  2103. S.Material = "SmoothPlastic"
  2104. S.BrickColor=color
  2105. S.Reflectance = 0
  2106. S.TopSurface=0
  2107. S.BottomSurface=0
  2108. S.Transparency=0
  2109. S.Anchored=true
  2110. S.CanCollide=false
  2111. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  2112. S.Parent=workspace
  2113. msh1.Parent = S
  2114. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.3,0.3,0.3) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2115. end
  2116. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  2117. local msh1 = it("SpecialMesh")
  2118. msh1.Scale = vt(x1,y1,z1)
  2119. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  2120. S=it("Part")
  2121. S.Name="Effect"
  2122. S.formFactor=0
  2123. S.Material = "SmoothPlastic"
  2124. S.Size=vt(1,1,1)
  2125. S.BrickColor=color
  2126. S.Reflectance = 0
  2127. S.TopSurface=0
  2128. S.BottomSurface=0
  2129. S.Transparency=0
  2130. S.Anchored=true
  2131. S.CanCollide=false
  2132. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  2133. S.Parent=workspace
  2134. msh1.Parent = S
  2135. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.5,0.8,0.5) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2136. end
  2137. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  2138. local msh1 = it("BlockMesh")
  2139. msh1.Scale = vt(0.5,0.5,0.5)
  2140. S=it("Part")
  2141. S.Name="Effect"
  2142. S.formFactor=0
  2143. S.Size=vt(x1,y1,z1)
  2144. S.BrickColor=color
  2145. S.Reflectance = 0
  2146. S.TopSurface=0
  2147. S.Material = "SmoothPlastic"
  2148. S.BottomSurface=0
  2149. S.Transparency=0
  2150. S.Anchored=false
  2151. S.CanCollide=false
  2152. S.CFrame=part.CFrame
  2153. S.Parent=workspace
  2154. msh1.Parent = S
  2155. W=it("Weld")
  2156. W.Parent=S
  2157. W.Part0=S
  2158. W.Part1=part
  2159. W.C0=cf(x2,y2,z2) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2160. W.Parent=nil
  2161. S.Anchored=true
  2162. coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  2163. end
  2164. DarkRiftF=function(par) --Thank you turdulator for this :D
  2165. PWN={}
  2166. for _,v in pairs(workspace:children()) do
  2167. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  2168. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  2169. if v~=Character and (v.Torso.Position-par.Position).magnitude<=25 then
  2170. table.insert(PWN,v.Torso)
  2171. end
  2172. end
  2173. end
  2174. end
  2175. for _,t in pairs(PWN) do
  2176. Mag=(par.Position-t.Position).magnitude/2
  2177. t.Parent.Humanoid:TakeDamage(.6)
  2178. rl=it("BodyAngularVelocity")
  2179. rl.P=3000
  2180. rl.maxTorque=vt(500000,500000,500000)*5000
  2181. rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  2182. rl.Parent=t
  2183. game:GetService("Debris"):AddItem(rl,.1)
  2184. if Mag<=2 then
  2185. t.Parent.Humanoid:TakeDamage(.3)
  2186. else
  2187. vl=it("BodyVelocity")
  2188. vl.P=3000
  2189. vl.maxForce=vt(50000000000,50000000000,50000000000)
  2190. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  2191. vl.Parent=t
  2192. game:GetService("Debris"):AddItem(vl,.1)
  2193. end
  2194. end
  2195. wait(.08)
  2196. end
  2197. DBHit=function(hit,Damage) --credits to turdulator for making this function :D
  2198. if hit.Parent==nil then
  2199. return
  2200. end
  2201. h=hit.Parent:FindFirstChild("Humanoid")
  2202. t=hit.Parent:FindFirstChild("Torso")
  2203. if h~=nil and t~=nil then
  2204. if h.Parent==Character then
  2205. return
  2206. end
  2207. c=it("ObjectValue")
  2208. c.Name="creator"
  2209. c.Value=game.Players.LocalPlayer
  2210. c.Parent=h
  2211. game:GetService("Debris"):AddItem(c,.5)
  2212. if math.random(0,99)+math.random()<=7.8 then
  2213. CRIT=true
  2214. Damage=Damage*3
  2215. --[[ Knockback=Knockback*2
  2216. r=it("BodyAngularVelocity")
  2217. r.P=3000
  2218. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2219. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2220. r.Parent=hit.Parent.Torso]]
  2221. s=it("Sound")
  2222. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  2223. s.Volume=1
  2224. s.Pitch=2
  2225. s.Parent=hit
  2226. s.PlayOnRemove=true
  2227. s.Parent=nil
  2228.  
  2229. end
  2230. h:TakeDamage(Damage)
  2231. showDamage(hit.Parent,Damage,.5)
  2232. vl=it("BodyVelocity")
  2233. vl.P=4500
  2234. vl.maxForce=vt(math.huge,math.huge,math.huge)
  2235. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,3,0)
  2236. vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,45,0)
  2237. vl.Parent=t
  2238. game:GetService("Debris"):AddItem(vl,.2)
  2239. rl=it("BodyAngularVelocity")
  2240. rl.P=3000
  2241. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  2242. rl.angularvelocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  2243. rl.Parent=t
  2244. game:GetService("Debris"):AddItem(rl,.2)
  2245. else
  2246. if hit.CanCollide==false then
  2247. return
  2248. end
  2249. MagicCom:disconnect()
  2250. -- DBExplode(DB)
  2251. end
  2252. end
  2253. DBHit2=function(hit,Damage) --credits to turdulator for making this function :D
  2254. if hit.Parent==nil then
  2255. return
  2256. end
  2257. h=hit.Parent:FindFirstChild("Humanoid")
  2258. t=hit.Parent:FindFirstChild("Torso")
  2259. if h~=nil and t~=nil then
  2260. if h.Parent==Character then
  2261. return
  2262. end
  2263. c=it("ObjectValue")
  2264. c.Name="creator"
  2265. c.Value=game.Players.LocalPlayer
  2266. c.Parent=h
  2267. game:GetService("Debris"):AddItem(c,.5)
  2268. if math.random(0,99)+math.random()<=7.8 then
  2269. CRIT=true
  2270. Damage=Damage*3
  2271. --[[ Knockback=Knockback*2
  2272. r=it("BodyAngularVelocity")
  2273. r.P=3000
  2274. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2275. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2276. r.Parent=hit.Parent.Torso]]
  2277. s=it("Sound")
  2278. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  2279. s.Volume=1
  2280. s.Pitch=2
  2281. s.Parent=hit
  2282. s.PlayOnRemove=true
  2283. s.Parent=nil
  2284.  
  2285. end
  2286. h:TakeDamage(Damage)
  2287. showDamage(hit.Parent,Damage,.5)
  2288. vl=it("BodyVelocity")
  2289. vl.P=4500
  2290. vl.maxForce=vt(math.huge,math.huge,math.huge)
  2291. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,30,0)
  2292. vl.velocity=Head.CFrame.lookVector*35+Head.Velocity/1.05
  2293. vl.Parent=t
  2294. game:GetService("Debris"):AddItem(vl,.2)
  2295. rl=it("BodyAngularVelocity")
  2296. rl.P=3000
  2297. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  2298. rl.angularvelocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2299. rl.Parent=t
  2300. game:GetService("Debris"):AddItem(rl,.2)
  2301. else
  2302. if hit.CanCollide==false then
  2303. return
  2304. end
  2305. MagicCom:disconnect()
  2306. -- DBExplode(DB)
  2307. end
  2308. end
  2309. DOHHit=function(hit,Damage,Pos) --credits to turdulator for making this function :D
  2310. if hit.Parent==nil then
  2311. return
  2312. end
  2313. h=hit.Parent:FindFirstChild("Humanoid")
  2314. t=hit.Parent:FindFirstChild("Torso")
  2315. if h~=nil and t~=nil then
  2316. if h.Parent==Character then
  2317. return
  2318. end
  2319. c=it("ObjectValue")
  2320. c.Name="creator"
  2321. c.Value=game.Players.LocalPlayer
  2322. c.Parent=h
  2323. game:GetService("Debris"):AddItem(c,.5)
  2324. if math.random(0,99)+math.random()<=7.8 then
  2325. CRIT=true
  2326. Damage=Damage*3
  2327. --[[ Knockback=Knockback*2
  2328. r=it("BodyAngularVelocity")
  2329. r.P=3000
  2330. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2331. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2332. r.Parent=hit.Parent.Torso]]
  2333. s=it("Sound")
  2334. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  2335. s.Volume=1
  2336. s.Pitch=2
  2337. s.Parent=hit
  2338. s.PlayOnRemove=true
  2339. s.Parent=nil
  2340.  
  2341. end
  2342. h:TakeDamage(Damage)
  2343. showDamage(hit.Parent,Damage,.5)
  2344. vl=it("BodyVelocity")
  2345. vl.P=4500
  2346. vl.maxForce=vt(math.huge,math.huge,math.huge)
  2347. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,60,0)
  2348. vl.velocity=Head.CFrame.lookVector+Head.Velocity/1.05
  2349. vl.Parent=t
  2350. game:GetService("Debris"):AddItem(vl,.2)
  2351. rl=it("BodyAngularVelocity")
  2352. rl.P=3000
  2353. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  2354. rl.angularvelocity=vt(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2355. rl.Parent=t
  2356. game:GetService("Debris"):AddItem(rl,.2)
  2357. else
  2358. if hit.CanCollide==false then
  2359. return
  2360. end
  2361. MagicCom:disconnect()
  2362. -- DBExplode(DB)
  2363. end
  2364. end
  2365. Damagefunc1=function(hit,Damage,Knockback)
  2366. if attackdebounce == false then
  2367. attackdebounce = true
  2368. coroutine.resume(coroutine.create(function()
  2369. wait(0.1)
  2370. attackdebounce = false
  2371. end))
  2372. if hit.Parent==nil then
  2373. return
  2374. end
  2375. CPlayer=Bin
  2376. h=hit.Parent:FindFirstChild("Humanoid")
  2377. if h~=nil and hit.Parent.Name~="rigletto" and hit.Parent:FindFirstChild("Torso")~=nil then
  2378. Damage=Damage
  2379. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2380. return
  2381. end]]
  2382. if mana<400 then
  2383. mana=mana+math.random(10,20)
  2384. else
  2385. mana=400
  2386. end
  2387. c=it("ObjectValue")
  2388. c.Name="creator"
  2389. c.Value=game.Players.LocalPlayer
  2390. c.Parent=h
  2391. game:GetService("Debris"):AddItem(c,.5)
  2392. -- print(c.Value)
  2393. if math.random(0,99)+math.random()<=7.8 then
  2394. CRIT=true
  2395. Damage=Damage*2
  2396. --[[ Knockback=Knockback*2
  2397. r=it("BodyAngularVelocity")
  2398. r.P=3000
  2399. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2400. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2401. r.Parent=hit.Parent.Torso]]
  2402. s=it("Sound")
  2403. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  2404. s.Volume=1
  2405. s.Pitch=2
  2406. s.Parent=hit
  2407. s.PlayOnRemove=true
  2408. s.Parent=nil
  2409.  
  2410. end
  2411. Damage=Damage+math.random(0,10)
  2412. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2413. h:TakeDamage(Damage)
  2414. showDamage(hit.Parent,Damage,.5)
  2415. vp=it("BodyVelocity")
  2416. vp.P=500
  2417. vp.maxForce=vt(math.huge,0,math.huge)
  2418. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2419. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2420. if Knockback>0 then
  2421. vp.Parent=hit.Parent.Torso
  2422. end
  2423. game:GetService("Debris"):AddItem(vp,.25)
  2424. --[[ r=it("BodyAngularVelocity")
  2425. r.P=3000
  2426. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2427. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2428. r.Parent=hit.Parent.Torso]]
  2429. game:GetService("Debris"):AddItem(r,.5)
  2430. c=it("ObjectValue")
  2431. c.Name="creator"
  2432. c.Value=Player
  2433. c.Parent=h
  2434. game:GetService("Debris"):AddItem(c,.5)
  2435. CRIT=false
  2436. hitDeb=true
  2437. AttackPos=6
  2438. end
  2439. end
  2440. end
  2441. Damagefunc2=function(hit,Damage,Knockback,Part,size)
  2442. if hit.Parent==nil then
  2443. return
  2444. end
  2445. -- CPlayer=Bin
  2446. h=hit.Parent:FindFirstChild("Humanoid")
  2447. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2448. if attackdebounce == false then
  2449. attackdebounce = true
  2450. coroutine.resume(coroutine.create(function()
  2451. wait(0.2)
  2452. attackdebounce = false
  2453. end))
  2454. EVENMOARMAGIX3(Part,size,size,size,0,0,0,0,0,0,BrickColor.new("Navy blue"))
  2455. for i=0,5 do
  2456. MMMAGIC3(Part,0.3,size*2,0.3,0,0,0,BrickColor.new("Navy blue"))
  2457. end
  2458. Damage=Damage
  2459. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2460. return
  2461. end]]
  2462. -- print("NOPE.AVI")
  2463. if math.random(0,99)+math.random()<=5 then
  2464. CRIT=true
  2465. Damage=Damage*1.5
  2466. --[[ Knockback=Knockback*2
  2467. r=it("BodyAngularVelocity")
  2468. r.P=3000
  2469. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2470. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2471. r.Parent=hit.Parent.Torso]]
  2472.  
  2473. end
  2474. Damage=Damage+math.random(0,10)
  2475. -- Did=Did+Damage
  2476. if Enemy==nil then
  2477. Enemy=hit.Parent
  2478. HP=Enemy.Humanoid.Health
  2479. end
  2480. coroutine.resume(coroutine.create(function()
  2481. wait(1)
  2482. if attack==false and Enemy~=nil then
  2483. Did=HP-Enemy.Humanoid.Health
  2484. print("Did "..Did.." Damage")
  2485. Enemy=nil
  2486. HP=0
  2487. end
  2488. end))
  2489. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2490. h:TakeDamage(Damage)
  2491. thwack(1)
  2492. showDamage(hit.Parent,Damage,.5)
  2493. vp=it("BodyVelocity")
  2494. vp.P=500
  2495. vp.maxForce=vt(math.huge,0,math.huge)
  2496. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2497. vp.velocity=Torso.CFrame.lookVector*Knockback
  2498. if Knockback>0 then
  2499. vp.Parent=hit.Parent.Torso
  2500. end
  2501. game:GetService("Debris"):AddItem(vp,2)
  2502. --[[ r=it("BodyAngularVelocity")
  2503. r.P=3000
  2504. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2505. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2506. r.Parent=hit.Parent.Torso
  2507. game:GetService("Debris"):AddItem(r,.5)]]
  2508. CRIT=false
  2509. hitDeb=true
  2510. AttackPos=6
  2511. end
  2512. end
  2513. end
  2514. Damagefunc3=function(hit,Damage,Knockback,Part,size)
  2515. --[[ if attackdebounce == false then
  2516. attackdebounce = true
  2517. coroutine.resume(coroutine.create(function()
  2518. wait(0.1)
  2519. attackdebounce = false
  2520. end)) ]]
  2521. if hit.Parent==nil then
  2522. return
  2523. end
  2524. CPlayer=Bin
  2525. h=hit.Parent:FindFirstChild("Humanoid")
  2526. if h~=nil and hit.Parent.Name~="rigletto" and hit.Parent:FindFirstChild("Torso")~=nil then
  2527. if attackdebounce == false then
  2528. attackdebounce = true
  2529. coroutine.resume(coroutine.create(function()
  2530. wait(0.2)
  2531. attackdebounce = false
  2532. end))
  2533. EVENMOARMAGIX3(Part,size,size,size,0,0,0,0,0,0,BrickColor.new("Navy blue"))
  2534. for i=0,5 do
  2535. MMMAGIC3(Part,0.3,size*2,0.3,0,0,0,BrickColor.new("Navy blue"))
  2536. end
  2537. Damage=Damage
  2538. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2539. return
  2540. end]]
  2541. c=Instance.new("ObjectValue")
  2542. c.Name="creator"
  2543. c.Value=game.Players.LocalPlayer
  2544. c.Parent=h
  2545. game:GetService("Debris"):AddItem(c,.5)
  2546. -- print(c.Value)
  2547. if math.random(1,10)==1 then
  2548. CRIT=true
  2549. Damage=Damage*2
  2550. Knockback=Knockback*2
  2551. s=Instance.new("Sound")
  2552. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  2553. s.Volume=1
  2554. s.Pitch=2
  2555. s.Parent=hit
  2556. s.PlayOnRemove=true
  2557. s.Parent=nil
  2558.  
  2559. end
  2560. Damage=Damage+math.random(0,10)
  2561. -- Did=Did+Damage
  2562. if Enemy==nil then
  2563. Enemy=hit.Parent
  2564. HP=Enemy.Humanoid.Health
  2565. end
  2566. coroutine.resume(coroutine.create(function()
  2567. wait(1)
  2568. if attack==false and Enemy~=nil then
  2569. Did=HP-Enemy.Humanoid.Health
  2570. print("Did "..Did.." Damage")
  2571. Enemy=nil
  2572. HP=0
  2573. end
  2574. end))
  2575. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2576. h:TakeDamage(Damage)
  2577. thwack(0.8)
  2578. showDamage(hit.Parent,Damage,.5)
  2579. vp=Instance.new("BodyVelocity")
  2580. vp.P=500
  2581. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2582. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2583. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2584. if Knockback>0 then
  2585. vp.Parent=hit.Parent.Torso
  2586. end
  2587. game:GetService("Debris"):AddItem(vp,.25)
  2588. r=Instance.new("BodyAngularVelocity")
  2589. r.P=3000
  2590. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  2591. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2592. r.Parent=hit.Parent.Torso
  2593. game:GetService("Debris"):AddItem(r,0.5)
  2594. c=Instance.new("ObjectValue")
  2595. c.Name="creator"
  2596. c.Value=Player
  2597. c.Parent=h
  2598. game:GetService("Debris"):AddItem(c,.5)
  2599. CRIT=false
  2600. hitDeb=true
  2601. AttackPos=6
  2602. end
  2603. end
  2604. end
  2605. DOH=function(hit,Damage,Knockback)
  2606. if attackdebounce == false then
  2607. attackdebounce = true
  2608. coroutine.resume(coroutine.create(function()
  2609. wait(0.2)
  2610. attackdebounce = false
  2611. end))
  2612. if hit.Parent==nil then
  2613. return
  2614. end
  2615. CPlayer=Bin
  2616. h=hit.Parent:FindFirstChild("Humanoid")
  2617. if h~=nil and hit.Parent.Name~="rigletto" and hit.Parent:FindFirstChild("Torso")~=nil then
  2618. Damage=Damage
  2619. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2620. return
  2621. end]]
  2622. c=it("ObjectValue")
  2623. c.Name="creator"
  2624. c.Value=game.Players.LocalPlayer
  2625. c.Parent=h
  2626. game:GetService("Debris"):AddItem(c,.5)
  2627. -- print(c.Value)
  2628. if math.random(0,99)+math.random()<=7.8 then
  2629. CRIT=true
  2630. Damage=Damage*3
  2631. --[[ Knockback=Knockback*2
  2632. r=it("BodyAngularVelocity")
  2633. r.P=3000
  2634. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2635. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2636. r.Parent=hit.Parent.Torso]]
  2637. s=it("Sound")
  2638. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  2639. s.Volume=1
  2640. s.Pitch=2
  2641. s.Parent=hit
  2642. s.PlayOnRemove=true
  2643. s.Parent=nil
  2644.  
  2645. end
  2646. Damage=Damage+math.random(0,10)
  2647. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  2648. h:TakeDamage(Damage)
  2649. showDamage(hit.Parent,Damage,.5)
  2650. vp=it("BodyVelocity")
  2651. vp.P=500
  2652. vp.maxForce=vt(math.huge,0,math.huge)
  2653. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2654. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  2655. if Knockback>0 then
  2656. vp.Parent=hit.Parent.Torso
  2657. end
  2658. game:GetService("Debris"):AddItem(vp,.25)
  2659. --[[ r=it("BodyAngularVelocity")
  2660. r.P=3000
  2661. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  2662. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2663. r.Parent=hit.Parent.Torso]]
  2664. game:GetService("Debris"):AddItem(r,.5)
  2665. c=it("ObjectValue")
  2666. c.Name="creator"
  2667. c.Value=Player
  2668. c.Parent=h
  2669. game:GetService("Debris"):AddItem(c,.5)
  2670. wait(1)
  2671. DOHeffect(hit,20,30,2,0,0)
  2672. bewm(workspace,1)
  2673. wait(0.1)
  2674. DOHeffect(hit,20,30,-2,0.5,0)
  2675. bewm(workspace,1)
  2676. wait(0.1)
  2677. DOHeffect(hit,20,30,2,1,0)
  2678. bewm(workspace,1)
  2679. wait(0.1)
  2680. DOHeffect(hit,20,30,-2,1.5,0)
  2681. bewm(workspace,1)
  2682. CRIT=false
  2683. hitDeb=true
  2684. AttackPos=6
  2685. end
  2686. end
  2687. end
  2688. showDamage=function(Char,Dealt,du)
  2689. m=it("Model")
  2690. m.Name=tostring(Dealt)
  2691. h=it("Humanoid")
  2692. h.Health=0
  2693. h.MaxHealth=0
  2694. h.Parent=m
  2695. c=it("Part")
  2696. c.Transparency=0
  2697. c.BrickColor=BrickColor:Red()
  2698. if CRIT==true then
  2699. c.BrickColor=BrickColor.new("Really red")
  2700. end
  2701. c.Name="Head"
  2702. c.TopSurface=0
  2703. c.BottomSurface=0
  2704. c.formFactor="Plate"
  2705. c.Size=vt(1,.4,1)
  2706. ms=it("CylinderMesh")
  2707.  
  2708. ms.Scale=vt(.8,.8,.8)
  2709. if CRIT==true then
  2710. ms.Scale=vt(1.25,1.5,1.25)
  2711.  
  2712. end
  2713. ms.Parent=c
  2714. c.Reflectance=0
  2715. it("BodyGyro").Parent=c
  2716. c.Parent=m
  2717. c.CFrame=cf(Char["Head"].CFrame.p+vt(0,1.5,0))
  2718. f=it("BodyPosition")
  2719. f.P=2000
  2720. f.D=100
  2721. f.maxForce=vt(math.huge,math.huge,math.huge)
  2722. f.position=c.Position+vt(0,3,0)
  2723. f.Parent=c
  2724. game:GetService("Debris"):AddItem(m,.5+du)
  2725. c.CanCollide=false
  2726. m.Parent=workspace
  2727. c.CanCollide=false
  2728. end
  2729. function Invis()
  2730. abscond(1)
  2731. coroutine.resume(coroutine.create(function()
  2732. for _,v in pairs(Torso.Parent:children()) do
  2733. if v.className=="Part" then
  2734. v.Transparency=1
  2735. elseif v.className=="Hat" then
  2736. v.Handle.Transparency=1
  2737. end
  2738. end
  2739. for _,v in pairs(modelzorz:children()) do
  2740. if v.className=="Part" then
  2741. v.Transparency=1
  2742. end
  2743. end
  2744. wait(0.5)
  2745. bewm(workspace,3)
  2746. MMMAGIC(Torso,3,3,3,0,0,0,BrickColor.new("Really black"))
  2747. MMMAGIC(Torso,6,6,6,0,0,0,BrickColor.new("Navy blue"))
  2748. for _,v in pairs(Torso.Parent:children()) do
  2749. if v.className=="Part" then
  2750. v.Transparency=0
  2751. elseif v.className=="Hat" then
  2752. v.Handle.Transparency=0
  2753. end
  2754. end
  2755. for _,v in pairs(modelzorz:children()) do
  2756. if v.className=="Part" then
  2757. v.Transparency=0
  2758. end
  2759. end
  2760. end))
  2761. end
  2762. function Laser(Part,Dmg)
  2763. sp = Part.Position
  2764. dirr = Part.CFrame
  2765. local hit,pos = rayCast(sp,dirr.lookVector,500,Character)
  2766. local las=it("Part",Character)
  2767. las.Anchored=true
  2768. las.Locked=true
  2769. las.CanCollide=false
  2770. las.TopSurface=0
  2771. las.BottomSurface=0
  2772. las.FormFactor = "Custom"
  2773. las.BrickColor=BrickColor.new("Cyan")
  2774. las.Size=vt(1,1,1)
  2775. las.CFrame=cf((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  2776. local msh=it("SpecialMesh",las)
  2777. mag = (Part.Position-pos).magnitude
  2778. msh.Scale=vt(0.8,mag,0.8)
  2779. coroutine.resume(coroutine.create(function(Part,Mesh)
  2780. for i = 0,1,0.1 do
  2781. wait()
  2782. Part.Transparency = Part.Transparency + 0.1
  2783. Mesh.Scale = Mesh.Scale + vt(-0.05,0.7,-0.05)
  2784. end
  2785. Part.Parent = nil
  2786. end),las,msh)
  2787. local las=it("Part",Character)
  2788. las.Anchored=true
  2789. las.Locked=true
  2790. las.CanCollide=false
  2791. las.TopSurface=0
  2792. las.BottomSurface=0
  2793. las.FormFactor = "Custom"
  2794. las.BrickColor=BrickColor.new("Navy blue")
  2795. las.Size=vt(1,1,1)
  2796. las.CFrame=cf((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  2797. local msh=it("SpecialMesh",las)
  2798. mag = (Part.Position-pos).magnitude
  2799. msh.Scale=vt(0.5,mag,0.5)
  2800. coroutine.resume(coroutine.create(function(Part,Mesh)
  2801. for i = 0,1,0.1 do
  2802. wait()
  2803. Part.Transparency = Part.Transparency + 0.1
  2804. Mesh.Scale = Mesh.Scale + vt(-0.05,0.7,-0.05)
  2805. end
  2806. Part.Parent = nil
  2807. end),las,msh)
  2808. if pos ~= nil then
  2809. end
  2810. if hit ~= nil and pos ~= nil then
  2811. if hit.Name=="RiftDoomBall" then
  2812. KABOOM=true
  2813. bewm(1)
  2814. bewm(1.2)
  2815. bewm(0.8)
  2816. MMMAGIC(hit,10,10,10,0,0,0,BrickColor.new("Really black"))
  2817. EVENMOARMAGIX(hit,10,10,10,0,0,0,0,0,0,BrickColor.new("Really black"))
  2818. BlastEffect(hit,15,10,15,0,0,0,-1.57,0,0,BrickColor.new("Really black"))
  2819. for i=1,10 do
  2820. ChargeEffect2(hit,3,3,3,0,0,0,0,0,0,BrickColor.new("Really black"))
  2821. end
  2822. local c = game.Workspace:GetChildren();
  2823. for i = 1, #c do
  2824. local hum = c[i]:findFirstChild("Humanoid")
  2825. if hum ~= nil and hum.Health ~= 0 then
  2826. local head = c[i]:findFirstChild("Head");
  2827. if head ~= nil then
  2828. local targ = head.Position - hit.Position;
  2829. local mag = targ.magnitude;
  2830. if mag <= 8 and c[i].Name ~= Player.Name then
  2831.  
  2832. DBHit(head,math.random(20,50))
  2833. end
  2834. end
  2835. end
  2836. end
  2837. end
  2838. if hit.Parent.className == "Hat" then
  2839. hit:BreakJoints()
  2840. hit.Velocity = vt(math.random(-5,5),20,math.random(-5,5))
  2841. end
  2842. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  2843. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  2844. hit.Parent.Humanoid:TakeDamage(Dmg)
  2845. showDamage(hit.Parent,Dmg,.5)
  2846. end
  2847. end
  2848. --[[if hit.className == "Part" and hit.Parent:findFirstChild("Humanoid") == nil then
  2849. end ]]
  2850. end
  2851. end
  2852. function shoottrail2(pos1,Damage)
  2853. shot=true
  2854. coroutine.resume(coroutine.create(function()
  2855. --[[spread2 = 0
  2856. range2 = 100
  2857. rangepower = 10]]
  2858.  
  2859. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) --* (pos1.Position).magnitude/100
  2860. --local dir = Head.CFrame.lookVector+spreadvector
  2861. local dir = pos1.CFrame.lookVector+spreadvector
  2862. local ammount = 100
  2863. local hit2,pos = rayCast(pos1.Position,dir,10,modelzorz)
  2864. local rangepos = range2
  2865. local function drawtrail(From,To)
  2866. local effectsmsh = it("SpecialMesh")
  2867. local Damg = Damage*2
  2868. effectsmsh.Scale = vt(1,1,1)
  2869. effectsmsh.MeshType="Sphere"
  2870. effectsmsh.Name = "Mesh"
  2871. local effectsg = it("Part")
  2872. local spar=it("Sparkles")
  2873. spar.Parent=effectsg
  2874. spar.SparkleColor=Color3.new(0, 0, 102)
  2875. local Smok=it("Smoke")
  2876. Smok.Parent=effectsg
  2877. Smok.Color=Color3.new(102, 102, 255)
  2878. Smok.Opacity=0.015
  2879. Smok.RiseVelocity=-10
  2880. Smok.Size=0.1
  2881. effectsg.formFactor = 3
  2882. effectsg.CanCollide = false
  2883. effectsg.Name = "Eff"
  2884. effectsg.Locked = true
  2885. effectsg.Anchored = true
  2886. effectsg.Size = vt(1,0.4,1)
  2887. effectsg.Parent = modelzorz
  2888. effectsmsh.Parent = effectsg
  2889. effectsg.Material = "SmoothPlastic"
  2890. effectsg.BrickColor = BrickColor.new("Cyan")
  2891. effectsg.Reflectance = 0.25
  2892. local LP = From
  2893. local point1 = To
  2894. local mg = (LP - point1).magnitude
  2895. effectsmsh.Scale = vt(1,mg*5,1)
  2896. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  2897. coroutine.resume(coroutine.create(function()
  2898. wait(0.1)
  2899. spar.Enabled=false
  2900. Smok.Enabled=false
  2901. end))
  2902. coroutine.resume(coroutine.create(function()
  2903. for i = 0 , 1 , 0.2 do
  2904. wait()
  2905. --effectsg.Transparency = 1*i
  2906. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  2907. end
  2908. effectsg.Transparency = 1
  2909. wait(5)
  2910. effectsg.Parent = nil
  2911. end))
  2912. end
  2913. local newpos = pos1.Position
  2914. local inc = rangepower
  2915. ammount=100
  2916. local Damg = Damage*2
  2917. local decr = 0
  2918. repeat
  2919. wait()
  2920. decr = decr + 1
  2921. rangepos = rangepos - 10
  2922. dir = dir + (vt(math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-1,0)+math.random()) / ammount)
  2923. --dir = dir
  2924. ammount=ammount-3
  2925. --print(Damg)
  2926. if decr == 2 then
  2927. Damg = Damg/2
  2928. decr=0
  2929. end
  2930. hit2,pos = rayCast(newpos,dir,inc,modelzorz)
  2931. drawtrail(newpos,pos)
  2932. newpos = newpos + (dir * inc)
  2933. if alt==1 then
  2934. inc = 10
  2935. if inc >= 20 then
  2936. inc = inc - 10
  2937. end
  2938. end
  2939. if hit2 ~= nil then
  2940. rangepos = 0
  2941. end
  2942. until rangepos <= 0
  2943. EVENMOARMAGIX2(cf(newpos),2,2,2,0,0,0,0,0,0,BrickColor.new("Cyan"))
  2944. if hit2 ~= nil then
  2945. local effectsmsh = it("SpecialMesh")
  2946. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  2947. --effectsmsh.Scale = vt(1,1,2.5)
  2948. effectsmsh.Scale = vt(3,3,3)
  2949. local effectsg = it("Part")
  2950. effectsg.Material = "SmoothPlastic"
  2951. effectsg.formFactor = 3
  2952. effectsg.CanCollide = false
  2953. effectsg.Name = "Arrow"
  2954. effectsg.Locked = true
  2955. effectsg.Transparency = 1
  2956. effectsg.Size = vt(0.2,0.2,0.2)
  2957. effectsg.Parent = modelzorz
  2958. effectsg.BrickColor = BrickColor.new("Cyan")
  2959. effectsmsh.Parent = effectsg
  2960. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  2961. coroutine.resume(coroutine.create(function()
  2962. wait()
  2963. effectsg.Parent = nil
  2964. end))
  2965. local efwel = it("Weld")
  2966. efwel.Parent = effectsg
  2967. efwel.Part0 = effectsg
  2968. efwel.Part1 = hit2
  2969. efwel.Parent = nil
  2970. effectsg.Anchored = true
  2971. local HitPos = effectsg.Position + cf(newpos,pos).lookVector*0.75
  2972. --local HitPos = prt1.Position + cf(newpos,pos).lookVector*0.75
  2973. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  2974. local CJ = cf(HitPos)
  2975. local C0 = effectsg.CFrame:inverse() * CJ
  2976. local C1 = hit2.CFrame:inverse() * CJ
  2977. --efwel.C0 = C0
  2978. --efwel.C1 = C1
  2979. --efwel.Parent = effectsg
  2980. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  2981. hum = hit2.Parent.Humanoid
  2982. attackdebounce=false
  2983. Damagefunc1(hit2,math.floor(Damg),5)
  2984. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2985. hum = hit2.Parent.Parent.Humanoid
  2986. attackdebounce=false
  2987. Damagefunc1(hit2,math.floor(Damg),5)
  2988. end
  2989. end
  2990. end))
  2991. end
  2992. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  2993. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2994. end
  2995. hold = false
  2996. function ob1d(mouse)
  2997. if attack == true then return end
  2998. if shootmode~=false then
  2999. Shoot()
  3000. end
  3001. if shootmode==true then return end
  3002. hold = true
  3003. --[[if walking == true and combo == 0 then
  3004. attack = true
  3005. Character.Humanoid.WalkSpeed = 0
  3006. wait(0.1)
  3007. walking = false
  3008. fourslash()
  3009. combo = 0
  3010. Stance()
  3011. wait(0.2)
  3012. Character.Humanoid.WalkSpeed = 16
  3013. Stance() ]]
  3014. --elseif walking == false then
  3015. if walking == false then
  3016. if combo == 0 then
  3017. combo=1
  3018. LightKick1()
  3019. walking = false
  3020. end
  3021. end
  3022. end
  3023. --[[coroutine.resume(coroutine.create(function()
  3024. wait(0.2)
  3025. if attack == false then
  3026. combo = 0
  3027. walking = false
  3028. Stance()
  3029. end
  3030. end))
  3031. elseif combo == 1 then
  3032. combo=2
  3033. twoslash()
  3034. walking = false
  3035. coroutine.resume(coroutine.create(function()
  3036. wait(0.2)
  3037. if attack == false then
  3038. combo = 0
  3039. walking = false
  3040. Stance()
  3041. end
  3042. end))
  3043. elseif combo == 2 then
  3044. combo=3
  3045. threeslash()
  3046. walking = false
  3047. coroutine.resume(coroutine.create(function()
  3048. wait(0.6)
  3049. if attack == false then
  3050. combo = 0
  3051. walking = false
  3052. Stance()
  3053. end
  3054. end))
  3055. elseif combo == 3 then
  3056. combo=4
  3057. fourslash()
  3058. walking = false
  3059. coroutine.resume(coroutine.create(function()
  3060. wait(0.2)
  3061. combo = 0
  3062. walking = false
  3063. Stance()
  3064. end))
  3065. end
  3066. end
  3067. end ]]--
  3068. function ob1u(mouse)
  3069. hold = false
  3070. end
  3071. buttonhold = false
  3072. function Key(key,mouse)
  3073. if attack == true then return end
  3074. if key == "f" then
  3075. if canusepenumbra==true then
  3076. Aim()
  3077. end
  3078. end
  3079. if key == "z" and shootmode==true then
  3080. rapidshooting=true
  3081. RapidShoot()
  3082. end
  3083. if key == "x" and shootmode==true then
  3084. FullBlast()
  3085. end
  3086. if key == "c" and shootmode==true then
  3087. LaserShot()
  3088. end
  3089. if key == "v" and shootmode==true then
  3090. Obliterate()
  3091. return end
  3092. if shootmode==true then return end
  3093. coroutine.resume(coroutine.create(function()
  3094. wait(0.1)
  3095. while attack==true do
  3096. wait()
  3097. bod.Parent = Torso
  3098. bod.position = Torso.Position
  3099. end
  3100. bod.Parent=nil
  3101. end))
  3102. if key=="b" then
  3103. Grab()
  3104. combo=0
  3105. end
  3106. if key=="g" then
  3107. Taunt()
  3108. end
  3109. if combo==0 then
  3110. if key=="z" then
  3111. LightPunch1()
  3112. end
  3113. if key=="x" then
  3114. HeavyPunch1()
  3115. end
  3116. if key=="c" then
  3117. LightKick1()
  3118. end
  3119. if key=="v" then
  3120. HeavyKick1()
  3121. end
  3122. elseif combo==1 then
  3123. if key=="z" then
  3124. LightPunch2()
  3125. end
  3126. if key=="x" then
  3127. HeavyPunch2()
  3128. end
  3129. if key=="c" then
  3130. LightKick2()
  3131. end
  3132. if key=="v" then
  3133. HeavyKick2()
  3134. end
  3135. elseif combo==2 then
  3136. if key=="z" then
  3137. LightPunch3()
  3138. end
  3139. if key=="x" then
  3140. HeavyPunch2()
  3141. end
  3142. if key=="c" then
  3143. LightKick3()
  3144. end
  3145. if key=="v" then
  3146. HeavyKick2()
  3147. end
  3148. end
  3149. end
  3150. function Key2(key,mouse)
  3151. if key == "z" then
  3152. rapidshooting=false
  3153. end
  3154. pcall(function() act.key[key:lower()] = false end)
  3155. end
  3156. function s(mouse)
  3157. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3158. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3159. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  3160. --mouse.KeyDown:connect(key2)
  3161. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  3162. mouse.KeyUp:connect(function(k) act.keydown = false
  3163. pcall(function() act.key[k:lower()] = false end)
  3164. hold = false
  3165. end)
  3166. MMouse = mouse
  3167. sheathed = false
  3168. player = Player
  3169. ch = Character
  3170. RSH = ch.Torso["Right Shoulder"]
  3171. LSH = ch.Torso["Left Shoulder"]
  3172. RHP = ch.Torso["Right Hip"]
  3173. LHP = ch.Torso["Left Hip"]
  3174. --
  3175. RSH.Parent = nil
  3176. LSH.Parent = nil
  3177. --[[RHP.C0 = cf(-0.5, -1.5, 0) * euler(0,0,0)
  3178. RHP.C1 = cf(0, 0.5, 0)
  3179. LHP.C0 = cf(0.5, -1.5, 0) * euler(0,0,0)
  3180. LHP.C1 = cf(0, 0.5, 0) ]]
  3181. --
  3182. RW.Part0 = ch.Torso
  3183. RW.C0 = cf(1.5, 0.5, 0) --* euler(1.3, 0, -0.5)
  3184. RW.C1 = cf(0, 0.5, 0)
  3185. RW.Part1 = ch["Right Arm"]
  3186. RW.Parent = ch.Torso
  3187. --_G.R = RW
  3188. --
  3189. LW.Part0 = ch.Torso
  3190. LW.C0 = cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
  3191. LW.C1 = cf(0, 0.5, 0)
  3192. LW.Part1 = ch["Left Arm"]
  3193. LW.Parent = ch.Torso
  3194. --_G.L = LW
  3195. --
  3196. RHP = ch.Torso["Right Hip"]
  3197. LHP = ch.Torso["Left Hip"]
  3198. --
  3199. RWL.Part0 = ch.Torso
  3200. RWL.C0 = cf(0, -1.5, 0) --* euler(1.3, 0, -0.5)
  3201. RWL.C1 = cf(-0.5, 0.5, 0)
  3202. RWL.Part1 = ch["Right Leg"]
  3203. RWL.Parent = ch.Torso
  3204. --_G.R = RW
  3205. --
  3206. LWL.Part0 = ch.Torso
  3207. LWL.C0 = cf(0, -1.5, 0) --* euler(1.7, 0, 0.8)
  3208. LWL.C1 = cf(0.5, 0.5, 0)
  3209. LWL.Part1 = ch["Left Leg"]
  3210. LWL.Parent = ch.Torso
  3211. --_G.L = LW
  3212. --
  3213. equipanim(mouse)
  3214. end
  3215. function ds(mouse)
  3216. sheathed = true
  3217. guardy = false
  3218. walking = nil
  3219. Character.Humanoid.WalkSpeed = 16
  3220. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  3221. --[[RHP.C0 = cf(0.5, -1.5, 0) * euler(0,math.rad(90),0)
  3222. RHP.C1 = cf(0, 0, 0)
  3223. LHP.C0 = cf(-0.5, -1.5, 0) * euler(0,math.rad(90),0)
  3224. LHP.C1 = cf(0, 0, 0) ]]
  3225. hideanim()
  3226. RW.Parent = nil
  3227. LW.Parent = nil
  3228. RWL.Parent = nil
  3229. LWL.Parent = nil
  3230. RSH.Parent = player.Character.Torso
  3231. LSH.Parent = player.Character.Torso
  3232. RHP.Parent = player.Character.Torso
  3233. LHP.Parent = player.Character.Torso
  3234. end
  3235. Bin.Selected:connect(s)
  3236. Bin.Deselected:connect(ds)
  3237. coroutine.resume(coroutine.create(function()
  3238. Mesh=msh42
  3239. Spar=Spar
  3240. St=vt(.4,.4,.4)
  3241. Hi=vt(1.2,1.2,1.2)
  3242. GRate=10
  3243. di=Hi.y-St.y
  3244. gdi=di/GRate
  3245. Mesh.Scale=St
  3246. cc=1
  3247. spark=function()
  3248. if shootmode==true then
  3249. Spar.Enabled=true
  3250. wait(.25)
  3251. Spar.Enabled=false
  3252. end
  3253. end
  3254. while true do
  3255. Mesh.Scale=St
  3256. for i=1, GRate do
  3257. Mesh.Scale=Mesh.Scale+vt(gdi,gdi,gdi)
  3258. wait()
  3259. end
  3260. Mesh.Scale=Hi
  3261. for i=1, GRate do
  3262. Mesh.Scale=Mesh.Scale-vt(gdi,gdi,gdi)
  3263. wait()
  3264. end
  3265. cc=cc+1
  3266. if cc==3 then
  3267. cc=0
  3268. if math.random(1,3)==1 then
  3269. coroutine.resume(coroutine.create(spark))
  3270. end
  3271. end
  3272. end
  3273. end))
  3274. --[[coroutine.resume(coroutine.create(function()
  3275. Mesh=msh42
  3276. Spar=Spar
  3277. St=vt(.4,.4,.4)
  3278. Hi=vt(1.2,1.2,1.2)
  3279. GRate=10
  3280. di=Hi.y-St.y
  3281. gdi=di/GRate
  3282. Mesh.Scale=St
  3283. cc=1
  3284. spark=function()
  3285. if shootmode==true then
  3286. Spar.Enabled=true
  3287. wait(.25)
  3288. Spar.Enabled=false
  3289. end
  3290. end
  3291. while true do
  3292. Mesh.Scale=St
  3293. for i=1, GRate do
  3294. Mesh.Scale=Mesh.Scale+vt(gdi,gdi,gdi)
  3295. wait()
  3296. end
  3297. Mesh.Scale=Hi
  3298. for i=1, GRate do
  3299. Mesh.Scale=Mesh.Scale-vt(gdi,gdi,gdi)
  3300. wait()
  3301. end
  3302. cc=cc+1
  3303. if cc==3 then
  3304. cc=0
  3305. if math.random(1,3)==1 then
  3306. coroutine.resume(coroutine.create(spark))
  3307. end
  3308. end
  3309. end
  3310. end))
  3311. coroutine.resume(coroutine.create(function()
  3312. Mesh=msh42
  3313. Spar=Spar
  3314. St=vt(.4,.4,.4)
  3315. Hi=vt(1.2,1.2,1.2)
  3316. GRate=10
  3317. di=Hi.y-St.y
  3318. gdi=di/GRate
  3319. Mesh.Scale=St
  3320. cc=1
  3321. spark=function()
  3322. if shootmode==true then
  3323. Spar.Enabled=true
  3324. wait(.25)
  3325. Spar.Enabled=false
  3326. end
  3327. end
  3328. while true do
  3329. Mesh.Scale=St
  3330. for i=1, GRate do
  3331. Mesh.Scale=Mesh.Scale+vt(gdi,gdi,gdi)
  3332. wait()
  3333. end
  3334. Mesh.Scale=Hi
  3335. for i=1, GRate do
  3336. Mesh.Scale=Mesh.Scale-vt(gdi,gdi,gdi)
  3337. wait()
  3338. end
  3339. cc=cc+1
  3340. if cc==3 then
  3341. cc=0
  3342. if math.random(1,3)==1 then
  3343. coroutine.resume(coroutine.create(spark))
  3344. end
  3345. end
  3346. end
  3347. end))]]
  3348. coroutine.resume(coroutine.create(function()
  3349. wait()
  3350. Mesh2=msh44
  3351. St2=vt(.4,.4,.4)
  3352. Hi2=vt(1.2,1.2,1.2)
  3353. GRate2=15
  3354. di2=Hi2.y-St2.y
  3355. gdi2=di2/GRate2
  3356. Mesh.Scale=Hi
  3357. while true do
  3358. Mesh2.Scale=Hi2
  3359. for i=1, GRate2 do
  3360. Mesh2.Scale=Mesh2.Scale-vt(gdi2,gdi2,gdi2)
  3361. wait()
  3362. end
  3363. Mesh2.Scale=St2
  3364. for i=1, GRate2 do
  3365. Mesh2.Scale=Mesh2.Scale+vt(gdi2,gdi2,gdi2)
  3366. wait()
  3367. end
  3368. end
  3369. end))
  3370. --[[handle32.Transparency=1
  3371. handle33.Transparency=1
  3372. handle34.Transparency=1]]
  3373. --[[function onRunning(speed)
  3374. if combo~=0 then return end
  3375. if speed>0 then
  3376. walking = true
  3377. for i = 0,1,0.1 do
  3378. wait()
  3379. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3380. RWL.C1 = cf(-0.5,1.5,0) * euler(-0.5*i,0,0)
  3381. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3382. LWL.C1 = cf(0.5,1.5,0) * euler(0.5*i,0,0)
  3383. end
  3384. coroutine.resume(coroutine.create(function()
  3385. while walking==true and kicking==false do
  3386. wait()
  3387. for i = 0,1,0.1 do
  3388. if walking==true then
  3389. wait()
  3390. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3391. RWL.C1 = cf(-0.5,1.5,0) * euler(-0.5+1*i,0,0)
  3392. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3393. LWL.C1 = cf(0.5,1.5,0) * euler(0.5-1*i,0,0)
  3394. end
  3395. end
  3396. for i = 0,1,0.1 do
  3397. if walking==true then
  3398. wait()
  3399. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3400. RWL.C1 = cf(-0.5,1.5,0) * euler(0.5-1*i,0,0)
  3401. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3402. LWL.C1 = cf(0.5,1.5,0) * euler(-0.5+1*i,0,0)
  3403. end
  3404. end
  3405. end
  3406. end))
  3407. else
  3408. walking = false
  3409. for i = 0,1,0.1 do
  3410. wait()
  3411. RWL.C0 = cf(0.5,-1.5,0) * euler(0,0,0)
  3412. RWL.C1 = cf(0,0.5,0) * euler(0,0,0)
  3413. LWL.C0 = cf(-0.5,-1.5,0) * euler(0,0,0)
  3414. LWL.C1 = cf(0,0.5,0) * euler(0,0,0)
  3415. end
  3416. end
  3417. end
  3418. Character.Humanoid.Running:connect(onRunning) ]]
  3419. increase=0
  3420. coroutine.resume(coroutine.create(function()
  3421. while true do
  3422. wait()
  3423. RH.Part0 = Torso
  3424. LH.Part0 = Torso
  3425. if mana < 0 then
  3426. mana = 0
  3427. end
  3428. if mana >= 400 then
  3429. mana=400
  3430. end
  3431. increase = increase + 1
  3432. if increase == 5 then
  3433. if mana < 400 then
  3434. mana = mana + 1
  3435. end
  3436. increase = 0
  3437. end
  3438. fentext3.Size = UDim2.new(mana*0.007,0,0.200000006,0)
  3439. fentext.Text = "Dark Energy("..mana..")"
  3440. end
  3441. end))
  3442. coroutine.resume(coroutine.create(function()
  3443. while true do
  3444. wait()
  3445. if Torso.Velocity.magnitude > 1 and kicking==false then
  3446. walking=true
  3447. for i = 0,1,0.1 do
  3448. if walking==true and kicking==false then
  3449. wait()
  3450. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3451. RWL.C1 = cf(-0.5,1.5,0) * euler(-0.5+1*i,0,0)
  3452. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3453. LWL.C1 = cf(0.5,1.5,0) * euler(0.5-1*i,0,0)
  3454. end
  3455. end
  3456. for i = 0,1,0.1 do
  3457. if walking==true and kicking==false then
  3458. wait()
  3459. RWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3460. RWL.C1 = cf(-0.5,1.5,0) * euler(0.5-1*i,0,0)
  3461. LWL.C0 = cf(0,-0.5,0) * euler(0,0,0)
  3462. LWL.C1 = cf(0.5,1.5,0) * euler(-0.5+1*i,0,0)
  3463. end
  3464. end
  3465. end
  3466. end
  3467. end))
  3468. while true do
  3469. wait()
  3470. bar.Value=mana
  3471. if Torso.Velocity.magnitude > 1 then
  3472. else
  3473. walking=false
  3474. if kicking==false then
  3475. for i = 0,1,0.1 do
  3476. wait()
  3477. RWL.C0 = cf(0.5,-1.5,0) * euler(0,0,0)
  3478. RWL.C1 = cf(0,0.5,0) * euler(0,0,0)
  3479. LWL.C0 = cf(-0.5,-1.5,0) * euler(0,0,0)
  3480. LWL.C1 = cf(0,0.5,0) * euler(0,0,0)
  3481. end
  3482. end
  3483. end
  3484. end
  3485. -- lego mediafire
Add Comment
Please, Sign In to add comment