Advertisement
memberhero

magic gun 2 leaked

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