Advertisement
Dark_EccentricYT

Untitled

Dec 9th, 2016
2,635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 157.51 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. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. it=Instance.new
  17. vt=Vector3.new
  18. cf=CFrame.new
  19. euler=CFrame.fromEulerAnglesXYZ
  20. angles=CFrame.Angles
  21. attack = false
  22. attackdebounce = false
  23. attacktype = 1
  24. combo = 0
  25. damage = 3
  26. oridamage = 3
  27. walkdebounce = false
  28. sheathed = true
  29. act = {key = {}}
  30. walking = false
  31. hold=false
  32. MMouse=nil
  33. equipped=false
  34. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. con1=nil
  37. con2=nil
  38. con3=nil
  39. mana=400
  40. offset=nil
  41. sonicing=false
  42. newpos2=nil
  43. modee=0
  44. comboing=false
  45. combo=0
  46. drivemode=false
  47. --player
  48. player = nil
  49. --save shoulders
  50. RSH, LSH = nil, nil
  51. --welds
  52. RW, LW = it("Weld"), it("Weld")
  53. RW2, LW2 = it("Weld"), it("Weld")
  54. --what anim
  55. anim = "none"
  56. --[[
  57. if Character:findFirstChild("SonicDriv",true) ~= nil then
  58. Character:findFirstChild("SonicDriv",true).Parent = nil
  59. end
  60. ]]
  61. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  62. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  63. end
  64. --[[
  65. if Player.userId~=209911 and Player.userId~=19063050 then
  66. script.Parent = Character
  67. local h = it("Hint")
  68. h.Parent = workspace
  69. h.Text = "UR NOT MEMORY!"
  70. wait(1)
  71. h.Text = "U MUST DAI!!"
  72. wait(0.5)
  73. if Character:findFirstChild("ForceField") ~= nil then
  74. Character:findFirstChild("ForceField").Parent = nil
  75. end
  76. Character:BreakJoints()
  77. local m = it("Explosion")
  78. m.Parent = workspace
  79. m.Position = Torso.Position
  80. wait(3)
  81. h.Parent = nil
  82. script.Parent = nil
  83. wait(9001)
  84. while true do
  85. wait()
  86. end
  87. end
  88. ]]
  89. New = function(Object, Parent, Name, Data)
  90. local Object = Instance.new(Object)
  91. for Index, Value in pairs(Data or {}) do
  92. Object[Index] = Value
  93. end
  94. Object.Parent = Parent
  95. Object.Name = Name
  96. return Object
  97. end
  98.  
  99. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  100. local fp = it("Part")
  101. fp.formFactor = formfactor
  102. fp.Parent = parent
  103. fp.Reflectance = reflectance
  104. fp.Transparency = transparency
  105. fp.CanCollide = false
  106. fp.BrickColor = brickcolor
  107. fp.Name = name
  108. fp.Size = size
  109. fp.Position = Torso.Position
  110. fp.BottomSurface="Smooth"
  111. fp.TopSurface="Smooth"
  112. fp:BreakJoints()
  113. return fp
  114. end
  115. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  116. local mesh = it(Mesh)
  117. mesh.Parent = part
  118. if Mesh=="SpecialMesh" then
  119. mesh.MeshType = meshtype
  120. mesh.MeshId = meshid
  121. end
  122. mesh.Offset=offset
  123. mesh.Scale=scale
  124. return mesh
  125. end
  126. function weld(parent,part0,part1,c0)
  127. local weld = it("Weld")
  128. weld.Parent = parent
  129. weld.Part0 = part0
  130. weld.Part1 = part1
  131. weld.C0 = c0
  132. return weld
  133. end
  134. Ballprt=part(1,nil,0,1,BrickColor.new("Black"),"Ball",vt(3,3,3))
  135. Ballmsh=mesh("SpecialMesh",Ballprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  136. Ballwld=weld(Ballprt,Ballprt,Prt4,cf(0,0,0))
  137.  
  138. local Main=it("Model")
  139. Main.Parent=Character
  140. Main.Name="Weapon"
  141. local model = Main
  142.  
  143. Part1 = New("Part",Main,"Part1",{BrickColor = BrickColor.new("Black"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(0.0545222983, -0.00267482176, -0.140711084),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(23.5281181, 1.05307972, -20.1492653, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  144. Mesh = New("CylinderMesh",Part1,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.300000012),})
  145. Part2 = New("Part",Main,"Part2",{BrickColor = BrickColor.new("White"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(0.0545222983, -0.00267482176, -0.140711084),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(23.5281181, 1.05307972, -20.1492653, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.94902, 0.952941, 0.952941),})
  146. Mesh = New("CylinderMesh",Part2,"Mesh",{Scale = Vector3.new(0.310000002, 0.5, 0.310000002),})
  147. Part3 = New("Part",Main,"Part3",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(0.126909614, -0.00345553411, -0.273170292),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(23.8791237, 1.05308807, -19.9574451, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  148. Mesh = New("CylinderMesh",Part3,"Mesh",{Scale = Vector3.new(0.5, 0.200000003, 0.5),})
  149. Part4 = New("Part",Main,"Part4",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(0.163103625, -0.00384589471, -0.339399874),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(24.0546265, 1.05309236, -19.8615341, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  150. Mesh = New("CylinderMesh",Part4,"Mesh",{Scale = Vector3.new(0.310000002, 0.300000012, 0.310000002),})
  151. Part5 = New("Part",Main,"Part5",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(0.199289024, -0.00423614029, -0.405634642),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(24.2301426, 1.05307627, -19.765646, 0.479459524, 0.877516031, -0.0092926221, -0.0164564233, -0.00159672752, -0.999864638, -0.877409637, 0.47954759, 0.0136752091),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  152. Mesh = New("SpecialMesh",Part5,"Mesh",{Scale = Vector3.new(0.300000012, 0.200000003, 0.300000012),MeshType = Enum.MeshType.Torso,})
  153. Part6 = New("Part",Main,"Part6",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(0.199296206, -0.00423623621, -0.405630171),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(24.2301311, 1.05309701, -19.7656269, 0.00824380852, 0.878278732, 0.478078187, 0.999851525, -5.90623995e-006, -0.0172302313, -0.0151301203, 0.478149295, -0.878148198),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  154. Mesh = New("SpecialMesh",Part6,"Mesh",{Scale = Vector3.new(0.300000012, 0.200000003, 0.300000012),MeshType = Enum.MeshType.Torso,})
  155. Part7 = New("Part",Main,"Part7",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.0359616578, -0.00169893377, 0.0248629153),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(23.0893612, 1.05306923, -20.38904, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  156. Mesh = New("CylinderMesh",Part7,"Mesh",{Scale = Vector3.new(0.310000002, 0.300000012, 0.310000002),})
  157. Part8 = New("Part",Main,"Part8",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.0540590286, -0.0015037487, 0.0579777062),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(23.0016098, 1.05306709, -20.4369965, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  158. Mesh = New("CylinderMesh",Part8,"Mesh",{Scale = Vector3.new(0.400000006, 0.200000003, 0.400000006),})
  159. Part9 = New("Part",Main,"Part9",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.0721556917, -0.00130857283, 0.091092512),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(22.9138584, 1.05306506, -20.484951, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  160. Mesh = New("CylinderMesh",Part9,"Mesh",{Scale = Vector3.new(0.5, 0.200000003, 0.5),})
  161. Part10 = New("Part",Main,"Part10",{BrickColor = BrickColor.new("Black"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.126446351, -0.000723036297, 0.1904369),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(22.6506042, 1.05305874, -20.6288166, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  162. Mesh = New("SpecialMesh",Part10,"Mesh",{Scale = Vector3.new(0.349999994, 0.300000012, 0.349999994),MeshId = "http://www.roblox.com/asset/?id=1778999",MeshType = Enum.MeshType.FileMesh,})
  163. Part11 = New("Part",Main,"Part11",{BrickColor = BrickColor.new("Black"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.180737019, -0.000137499766, 0.289781302),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(22.3873501, 1.05305243, -20.7726822, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  164. Mesh = New("SpecialMesh",Part11,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "http://www.roblox.com/asset/?id=1778999",MeshType = Enum.MeshType.FileMesh,})
  165. Part13 = New("Part",Main,"Part13",{BrickColor = BrickColor.new("Bright blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.289318353, 0.00103357318, 0.488470107),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(21.8608418, 1.05303991, -21.0604134, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0509804, 0.411765, 0.67451),})
  166. Mesh = New("SpecialMesh",Part13,"Mesh",{Scale = Vector3.new(0.200000003, 0.300000012, 0.200000003),MeshType = Enum.MeshType.Sphere,})
  167. Part12 = New("Part",Main,"Part12",{BrickColor = BrickColor.new("Navy blue"),RotVelocity = Vector3.new(0.0047971271, 0.377370775, 0.000397353608),Velocity = Vector3.new(-0.253124326, 0.000643212465, 0.422240496),Size = Vector3.new(1, 1.20000005, 1),CFrame = CFrame.new(22.0363445, 1.05304408, -20.9645023, 0.479486048, -0.877514124, 0.00788792316, -0.0164869614, -2.09873924e-005, 0.999864101, -0.877394617, -0.479550958, -0.0144776041),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),})
  168. Mesh = New("CylinderMesh",Part12,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),})
  169.  
  170.  
  171. Prt1=Main.Part1
  172. Prt2=Main.Part2
  173. Prt3=Main.Part3
  174. Prt4=Main.Part4
  175. Prt5=Main.Part5
  176. Prt6=Main.Part6
  177. Prt7=Main.Part7
  178. Prt8=Main.Part8
  179. Prt9=Main.Part9
  180. Prt10=Main.Part10
  181. Prt11=Main.Part11
  182. Prt12=Main.Part12
  183. Prt13=Main.Part13
  184. count=0
  185. for i=1,6 do
  186. Part=part(1,Main,0,0,BrickColor.new("Navy blue"),"Part",vt(1,1,1))
  187. Mesh=mesh("BlockMesh",Part,"","",vt(0,0,0),vt(0.1,0.4,0.1))
  188. Weld=weld(Main,Part,Prt11,cf(0.15,-0.15,0)*euler(0,count,0))
  189. count=count+1.05
  190. end
  191. count=0
  192. for i=1,6 do
  193. Part=part(1,Main,0,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  194. Mesh=mesh("BlockMesh",Part,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  195. Weld=weld(Main,Part,Prt10,cf(0.15,-0.15,0)*euler(0,count+0.5,0))
  196. count=count+1.05
  197. end
  198. count=0
  199. for i=1,6 do
  200. Part=part(1,Main,0,0,BrickColor.new("Navy blue"),"Part",vt(1,1,1))
  201. Mesh=mesh("BlockMesh",Part,"","",vt(0,0,0),vt(0.05,0.2,0.05))
  202. Weld=weld(Main,Part,Prt12,euler(0,0,0)*cf(0.1,-0.15,0)*euler(0,count,0))
  203. count=count+1.05
  204. coroutine.resume(coroutine.create(function(Derpweld,numb,part)
  205. while true do
  206. wait()
  207. if drivemode==false then
  208. Derpweld=weld(Main,part,Prt12,euler(0,0,0)*cf(0.1,-0.15,0)*euler(0,numb,0))
  209. end
  210. if drivemode==true then
  211. Derpweld=weld(Main,part,Prt12,euler(0,0,-0.5)*cf(0.2,-0.17,0)*euler(0,numb,0))
  212. end
  213. end
  214. end),Weld,count,Part)
  215. end
  216. Msh1=Prt1.Mesh
  217. Msh2=Prt2.Mesh
  218. Msh3=Prt3.Mesh
  219. Msh4=Prt4.Mesh
  220. Msh5=Prt5.Mesh
  221. Msh6=Prt6.Mesh
  222. Msh7=Prt7.Mesh
  223. Msh8=Prt8.Mesh
  224. Msh9=Prt9.Mesh
  225. Msh10=Prt10.Mesh
  226. Msh11=Prt11.Mesh
  227. Msh12=Prt12.Mesh
  228. Msh13=Prt13.Mesh
  229. Wld1=weld(Main,Prt1,LeftLeg,euler(0,0,2)*cf(1,-0.8,-0.4))
  230. Wld2=weld(Main,Prt2,Prt1,euler(0,0,0)*cf(0,0,0))
  231. Wld3=weld(Main,Prt3,Prt1,euler(0,0,0)*cf(0,0.4,0))
  232. Wld4=weld(Main,Prt4,Prt1,euler(0,0,0)*cf(0,0.6,0))
  233. Wld5=weld(Main,Prt5,Prt1,euler(3.14,0,0)*cf(0,0.8,0))
  234. Wld6=weld(Main,Prt6,Prt1,euler(3.14,1.57,0)*cf(0,0.8,0))
  235. Wld7=weld(Main,Prt7,Prt1,euler(0,0,0)*cf(0,-0.5,0))
  236. Wld8=weld(Main,Prt8,Prt1,euler(0,0,0)*cf(0,-0.6,0))
  237. Wld9=weld(Main,Prt9,Prt1,euler(0,0,0)*cf(0,-0.7,0))
  238. Wld10=weld(Main,Prt10,Prt9,euler(0,0,0)*cf(0,-0.3,0))
  239. Wld11=weld(Main,Prt11,Prt9,euler(0,0,0)*cf(0,-0.3,0))
  240. Wld12=weld(Main,Prt12,Prt11,euler(0,0,0)*cf(0,-0.4,0))
  241. Wld13=weld(Main,Prt13,Prt12,euler(0,0,0)*cf(0,-0.2,0))
  242. local Board=it("Model")
  243. Board.Parent=nil
  244. Board.Name="Jet Board"
  245. BPrt1=part(1,Board,0,0,BrickColor.new("Black"),"Part1",vt(1,1,1))
  246. BPrt2=part(1,Board,0,0,BrickColor.new("Black"),"Part2",vt(1,1,1))
  247. BPrt3=part(1,Board,0,0,BrickColor.new("Black"),"Part3",vt(1,1,1))
  248. BPrt4=part(1,Board,0,0,BrickColor.new("Black"),"Part4",vt(1,1,1))
  249. BPrt5=part(1,Board,0,0,BrickColor.new("Black"),"Part5",vt(1,1,1))
  250. BPrt6=part(1,Board,0,0,BrickColor.new("Navy blue"),"Part6",vt(1,1,1))
  251. BPrt7=part(1,Board,0,0,BrickColor.new("Navy blue"),"Part7",vt(1,1,1))
  252. BPrt8=part(1,Board,0,0,BrickColor.new("Navy blue"),"Part8",vt(1,1,1))
  253. BPrt9=part(1,Board,0,0,BrickColor.new("Black"),"Part9",vt(1,1,1))
  254. BPrt10=part(1,Board,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
  255. BPrt11=part(1,Board,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  256. BPrt12=part(1,Board,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
  257. BMsh1=mesh("BlockMesh",BPrt1,"","",vt(0,0,0),vt(4,0.7,5))
  258. BMsh2=mesh("SpecialMesh",BPrt2,"Wedge","",vt(0,0,0),vt(0.85,1.57,2))
  259. BMsh3=mesh("SpecialMesh",BPrt3,"Wedge","",vt(0,0,0),vt(0.85,1.57,2))
  260. BMsh4=mesh("BlockMesh",BPrt4,"","",vt(0,0,0),vt(0.35,0.7,2))
  261. BMsh5=mesh("CylinderMesh",BPrt5,"","",vt(0,0,0),vt(0.4,0.7,0.4))
  262. BMsh6=mesh("BlockMesh",BPrt6,"","",vt(0,0,0),vt(3.5,0.71,4.5))
  263. BMsh7=mesh("SpecialMesh",BPrt7,"Wedge","",vt(0,0,0),vt(0.86,1.07,1.5))
  264. BMsh8=mesh("SpecialMesh",BPrt8,"Wedge","",vt(0,0,0),vt(0.86,1.07,1.5))
  265. BMsh9=mesh("CylinderMesh",BPrt9,"","",vt(0,0,0),vt(1.5,2,1.5))
  266. BMsh10=mesh("CylinderMesh",BPrt10,"","",vt(0,0,0),vt(1.2,2,1.2))
  267. BMsh11=mesh("CylinderMesh",BPrt11,"","",vt(0,0,0),vt(1.5,2,1.5))
  268. BMsh12=mesh("CylinderMesh",BPrt12,"","",vt(0,0,0),vt(1.2,2,1.2))
  269. BWld1=weld(Board,BPrt1,Head,euler(0,0,0)*cf(0,2,5))
  270. BWld2=weld(Board,BPrt2,BPrt1,euler(0,0,1.57)*cf(-1.1,0,3.5))
  271. BWld3=weld(Board,BPrt3,BPrt1,euler(0,0,-1.57)*cf(1.1,0,3.5))
  272. BWld4=weld(Board,BPrt4,BPrt1,euler(0,0,0)*cf(0,0,3.5))
  273. BWld5=weld(Board,BPrt5,BPrt1,euler(0,0,0)*cf(0,0,4.35))
  274. BWld6=weld(Board,BPrt6,BPrt1,euler(0,0,0)*cf(0,0,0))
  275. BWld7=weld(Board,BPrt7,BPrt1,euler(0,0,1.57)*cf(-0.8,0,3))
  276. BWld8=weld(Board,BPrt8,BPrt1,euler(0,0,-1.57)*cf(0.8,0,3))
  277. BWld9=weld(Board,BPrt9,BPrt1,euler(1.57,0,0)*cf(1.2,1,-0.8))
  278. BWld10=weld(Board,BPrt10,BPrt9,euler(0,0,0)*cf(0,0.01,0))
  279. BWld11=weld(Board,BPrt11,BPrt1,euler(1.57,0,0)*cf(-1.2,1,-0.8))
  280. BWld12=weld(Board,BPrt12,BPrt11,euler(0,0,0)*cf(0,0.01,0))
  281. local fengui = it("GuiMain")
  282. fengui.Parent = Player.PlayerGui
  283. fengui.Name = "manaGUI"
  284. local fenframe = it("Frame")
  285. fenframe.Parent = fengui
  286. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  287. fenframe.BackgroundTransparency = 1
  288. fenframe.BorderColor3 = Color3.new(17,17,17)
  289. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  290. local fentext = it("TextLabel")
  291. fentext.Parent = fenframe
  292. fentext.Text = "Mana("..mana..")"
  293. fentext.BackgroundTransparency = 1
  294. fentext.SizeConstraint = "RelativeXY"
  295. fentext.TextXAlignment = "Center"
  296. fentext.TextYAlignment = "Center"
  297. fentext.Position = UDim2.new(0,80,1,200)
  298. local fentext2 = it("TextLabel")
  299. fentext2.Parent = fenframe
  300. fentext2.Text = " "
  301. fentext2.BackgroundTransparency = 0
  302. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  303. fentext2.SizeConstraint = "RelativeXY"
  304. fentext2.TextXAlignment = "Center"
  305. fentext2.TextYAlignment = "Center"
  306. fentext2.Position = UDim2.new(0,10,1,170)
  307. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  308. local fentext3 = it("TextLabel")
  309. fentext3.Parent = fenframe
  310. fentext3.Text = " "
  311. fentext3.BackgroundTransparency = 0
  312. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  313. fentext3.SizeConstraint = "RelativeXY"
  314. fentext3.TextXAlignment = "Center"
  315. fentext3.TextYAlignment = "Center"
  316. fentext3.Position = UDim2.new(0,10,1,170)
  317. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  318. local bg = it("BodyGyro")
  319. bg.Parent = nil
  320. local bg2=it("BodyGyro")
  321. Tool = it("HopperBin")
  322. Tool.Parent = Backpack
  323. Tool.Name = "Sonic Driver"
  324. Bin = Tool
  325. function unequipweld()
  326. Wld1.Part1=LeftLeg
  327. Wld1.C0=euler(0,0,2)*cf(1,-0.8,-0.4)
  328. Wld11.C0=euler(0,0,0)*cf(0,-0.3,0)
  329. end
  330. function equipweld()
  331. Wld1.Parent=Main
  332. Wld1.Part1=LeftArm
  333. Wld1.C0=euler(2,0,0)*cf(0,1.2,0)
  334. end
  335. function hideanim()
  336. equipped = false
  337. bg.Parent=nil
  338. drivemode=false
  339. unequipweld()
  340. --[[for i = 0 , 1 , 0.1 do
  341. wait(0)
  342. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  343. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  344. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  345. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  346. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  347. end ]]
  348. wait(0.1)
  349. Torso.Neck.C0=necko*euler(0,0,0)
  350. end
  351. function equipanim(mouse)
  352. equipped = true
  353. for i = 0,1,0.1 do
  354. wait()
  355. Torso.Neck.C0=necko*euler(0.5*i,0,0.5*i)
  356. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3*i,-1.57*i,0)
  357. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  358. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  359. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  360. end
  361. equipweld()
  362. for i = 0,1,0.1 do
  363. wait()
  364. Wld1.C0=euler(2,0,0)*cf(0,1.2-0.3*i,0)
  365. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+0.9*i,-1.57+1.7*i,0)
  366. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  367. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  368. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  369. end
  370. wait(0.2)
  371. for i = 0,1,0.2 do
  372. wait()
  373. Torso.Neck.C0=necko*euler(0.5+0.2*i,0,0.5)
  374. Wld1.C0=euler(2,0,0)*cf(0,0.9,0)
  375. Wld11.C0=euler(0,0,0)*cf(0,-0.3-0.3*i,0)
  376. LW.C0 = cf(-1.5,0.5,0) * euler(0.6-0.5*i,0.13+0.07*i,0)
  377. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  378. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  379. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  380. end
  381. drivemode=true
  382. wait(0.2)
  383. Torso.Neck.C0=necko*euler(0,0,0)
  384. Stance()
  385. end
  386. function Stance()
  387. coroutine.resume(coroutine.create(function()
  388. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  389. bg.P = 15000
  390. bg.Parent = Torso
  391. while equipped==true and walking==false and attack==false do
  392. wait()
  393. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  394. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  395. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  396. offset=offset/mag
  397. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1,0)
  398. bg.Parent = Torso
  399. --Torso.Neck.C0=necko*euler(0,offset,0)*euler(0,0,1)
  400. Torso.Neck.C0=necko*euler(0,0,1)
  401. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  402. Wld1.C0=euler(2,0,0)*cf(0,0.9,0)
  403. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5)
  404. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  405. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  406. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  407. end
  408. Torso.Neck.C0=necko*euler(0,0,0)
  409. bg.Parent=nil
  410. end))
  411. end
  412. function Walking()
  413. if attack==false then
  414. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5)
  415. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  416. RW.C0 = cf(1.5,0.5,0) * euler(-0.5,0,0.5)
  417. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  418. end
  419. walking=true
  420. end
  421. function Slash1()
  422. attack=true
  423. for i=0,1,0.1 do
  424. wait()
  425. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  426. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  427. bg.Parent = Torso
  428. Wld1.C0=euler(2+1.14*i,0,0)*cf(0,0.9,0)
  429. LW.C0 = cf(-1.5,0.5,0) * euler(1.57*i,0,-0.5+1.5*i)
  430. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  431. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  432. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  433. end
  434. sonicing=true
  435. Ballprt.Parent=Main
  436. Ballwld.Parent=Main
  437. Ballwld.Part1=Prt13
  438. Ballwld.C0=cf(0,-5,0)
  439. Stun2(Ballprt,0,0,0,BrickColor.new("Navy blue"))
  440. con1=Ballprt.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  441. for i=0,1,0.2 do
  442. wait()
  443. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  444. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  445. offset=offset/mag
  446. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  447. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  448. bg.Parent = Torso
  449. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  450. LW.C0 = cf(-1.5,0.5,0) * euler(1.57-offset,0,1-2.5*i)
  451. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  452. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  453. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  454. end
  455. sonicing=false
  456. lightning=false
  457. con1:disconnect()
  458. wait(0.2)
  459. Ballprt.Parent=nil
  460. attack=false
  461. end
  462. function Slash2()
  463. attack=true
  464. for i=0,1,0.1 do
  465. wait()
  466. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  467. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  468. bg.Parent = Torso
  469. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  470. LW.C0 = cf(-1.5,0.5,0) * euler(1.57+1.57*i,0,-2+2*i)
  471. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  472. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  473. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  474. end
  475. sonicing=true
  476. Ballprt.Parent=Main
  477. Ballwld.Parent=Main
  478. Ballwld.Part1=Prt13
  479. Ballwld.C0=cf(0,-5,0)
  480. Stun2(Ballprt,0,0,0,BrickColor.new("Navy blue"))
  481. con1=Ballprt.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  482. for i=0,1,0.1 do
  483. wait()
  484. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  485. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  486. bg.Parent = Torso
  487. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  488. LW.C0 = cf(-1.5,0.5,0) * euler(3.14-3.14*i,0,0)
  489. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  490. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  491. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  492. end
  493. sonicing=false
  494. lightning=false
  495. con1:disconnect()
  496. wait(0.2)
  497. Ballprt.Parent=nil
  498. attack=false
  499. end
  500. function Slash3()
  501. attack=true
  502. for i=0,1,0.1 do
  503. wait()
  504. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  505. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  506. bg.Parent = Torso
  507. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  508. LW.C0 = cf(-1.5,0.5,0) * euler(1.57*i,0,-1.57*i)
  509. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  510. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  511. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  512. end
  513. sonicing=true
  514. Ballprt.Parent=Main
  515. Ballwld.Parent=Main
  516. Ballwld.Part1=Prt13
  517. Ballwld.C0=cf(0,-5,0)
  518. Stun2(Ballprt,0,0,0,BrickColor.new("Navy blue"))
  519. con1=Ballprt.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  520. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  521. for i=0,1,0.1 do
  522. wait()
  523. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,6.28*i,0)
  524. bg.Parent = Torso
  525. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  526. LW.C0 = cf(-1.5,0.5,0) * euler(1.57-1*i,0,-1.57-1*i)
  527. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  528. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  529. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  530. end
  531. wait(0.1)
  532. for i=0,1,0.1 do
  533. wait()
  534. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  535. bg.Parent = Torso
  536. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  537. LW.C0 = cf(-1.5,0.5,0) * euler(0.57+1*i,0,-2.57+3*i)
  538. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  539. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  540. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  541. end
  542. sonicing=false
  543. lightning=false
  544. con1:disconnect()
  545. wait(0.2)
  546. Ballprt.Parent=nil
  547. attack=false
  548. end
  549. function Magic1()
  550. attack=true
  551. for i=0,1,0.1 do
  552. wait()
  553. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  554. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  555. bg.Parent = Torso
  556. Torso.Neck.C0=necko*euler(0,0,1.57)
  557. Wld1.C0=euler(2+1.14*i,0,0)*cf(0,0.9,0)
  558. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5-1.07*i)
  559. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  560. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  561. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  562. end
  563. sonicing=true
  564. Ballprt.Parent=Main
  565. Ballwld.Parent=Main
  566. Ballwld.Part1=Prt13
  567. Ballwld.C0=cf(0,-10,0)
  568. con1=Ballprt.Touched:connect(function(hit) DOH(hit,20,0) end)
  569. for i=0,4,0.1 do
  570. wait()
  571. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  572. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  573. offset=offset/mag
  574. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  575. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  576. bg.Parent = Torso
  577. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  578. LW.C1 = cf(0, 0.5, 0) * euler(0,0,-offset)
  579. MMMAGIC(Ballprt,4,4,4,0,0,0,BrickColor.new("Black"))
  580. end
  581. sonicing=false
  582. con1:disconnect()
  583. wait(0.2)
  584. Ballprt.Parent=nil
  585. attack=false
  586. end
  587. function Magic2()
  588. attack=true
  589. for i=0,1,0.1 do
  590. wait()
  591. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  592. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  593. bg.Parent = Torso
  594. Torso.Neck.C0=necko*euler(0,0,1.57)
  595. Wld1.C0=euler(2+1.14*i,0,0)*cf(0,0.9,0)
  596. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  597. LW.C1 = cf(0, 0.5, 0) * euler(0,0,1.57*i)
  598. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  599. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  600. end
  601. sonicing=true
  602. coroutine.resume(coroutine.create(function()
  603. derpprt=part(1,workspace,0,1,BrickColor.new("Black"),"Derp",vt(1,1,1))
  604. derpprt.CFrame=Head.CFrame
  605. derpprt.Anchored=true
  606. count=0
  607. for i=0,3,0.1 do
  608. wait()
  609. EVENMOARMAGIX(derpprt,4,15,4,0,-4,-5-count,0,0,0,BrickColor.new("Navy blue"))
  610. count=count+2.5
  611. local testbrick = it("Part")
  612. testbrick.Parent = workspace
  613. testbrick.Anchored = true
  614. testbrick.Transparency = 0
  615. testbrick.CFrame = derpprt.CFrame * cf(0,0,-5-count)
  616. coroutine.resume(coroutine.create(function()
  617. local c = game.Workspace:GetChildren();
  618. for i = 1, #c do
  619. local hum = c[i]:findFirstChild("Humanoid")
  620. if hum ~= nil and hum.Health ~= 0 then
  621. local head = c[i]:findFirstChild("Head");
  622. if head ~= nil then
  623. local targ = head.Position - testbrick.Position;
  624. local mag = targ.magnitude;
  625. if mag <= 5 and c[i].Name ~= Player.Name then
  626. Damagefunc1(head,math.floor(10),0.1)
  627. end
  628. end
  629. end
  630. end
  631. end))
  632. coroutine.resume(coroutine.create(function(Part)
  633. Part.Parent = nil
  634. end),testbrick)
  635. end
  636. derpprt.Parent=nil
  637. end))
  638. wait(0.5)
  639. sonicing=false
  640. wait(0.5)
  641. attack=false
  642. end
  643. function Magic3()
  644. attack=true
  645. sonicing=true
  646. for i=0,1,0.1 do
  647. wait()
  648. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  649. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  650. bg.Parent = Torso
  651. Torso.Neck.C0=necko*euler(0,0,1.57)
  652. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  653. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  654. LW.C1 = cf(0, 0.5, 0) * euler(0,0,1.57-1.57*i)
  655. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  656. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  657. end
  658. Ballprt.Parent=Main
  659. Ballwld.Parent=Main
  660. Ballwld.Part1=Prt13
  661. Ballwld.C0=cf(0,-10,0)
  662. numb=math.random(-50,50)
  663. EVENMOARMAGIX2(Ballprt.CFrame,3,3,3,0,0,0,0,0,0,BrickColor.new("Black"))
  664. WaveEffect2(Ballprt.CFrame,7,7,7,0,0,0,numb,1,0,BrickColor.new("Black"))
  665. WaveEffect2(Ballprt.CFrame,7,7,7,0,0,0,-numb,-1,0,BrickColor.new("Black"))
  666. local c = game.Workspace:GetChildren();
  667. for i = 1, #c do
  668. local hum = c[i]:findFirstChild("Humanoid")
  669. if hum ~= nil and hum.Health ~= 0 then
  670. local head = c[i]:findFirstChild("Head");
  671. if head ~= nil then
  672. local targ = head.Position - Ballprt.Position;
  673. local mag = targ.magnitude;
  674. if mag <= 15 and c[i].Name ~= Player.Name then
  675. attackdebounce=false
  676. Damagefunc2(head,20,0.1,Ballprt.Position)
  677. end
  678. end
  679. end
  680. end
  681. wait()
  682. sonicing=false
  683. wait(1)
  684. Ballprt.Parent=nil
  685. attack=false
  686. end
  687. function JetBoard()
  688. attack=true
  689. local GUI = Instance.new("BillboardGui")
  690. GUI.Adornee = Torso
  691. GUI.Parent = Torso
  692. GUI.Active = true
  693. GUI.Enabled = true
  694. GUI.Size = UDim2.new(0,0,0,0)
  695. GUI.StudsOffset = Vector3.new(1, 5, 0)
  696. GUI.Name="SylladexCardGui"
  697. local Chat = Instance.new("TextBox")
  698. Chat.Parent = GUI
  699. Chat.FontSize = "Size12"
  700. Chat.BackgroundColor3=Color3.new(0,0,0.4)
  701. Chat.Position = UDim2.new(0, 0, 0, 0)
  702. Chat.Size = UDim2.new(2,0,2,0)
  703. Chat.Visible = true
  704. Chat.Text = " "
  705. local Chat = Instance.new("TextBox")
  706. Chat.Parent = GUI
  707. Chat.FontSize = "Size12"
  708. Chat.BackgroundColor3=Color3.new(0,0,0.4)
  709. Chat.Position = UDim2.new(0, 0, -0.3, 0)
  710. Chat.Size = UDim2.new(1.5,0,2,0)
  711. Chat.Visible = true
  712. Chat.Text = " "
  713. local Chat = Instance.new("TextBox")
  714. Chat.Parent = GUI
  715. Chat.FontSize = "Size12"
  716. Chat.BackgroundColor3=Color3.new(0,0,0.4)
  717. Chat.Position = UDim2.new(0, 0, -0.6, 0)
  718. Chat.Size = UDim2.new(1,0,2,0)
  719. Chat.Visible = true
  720. Chat.Text = " "
  721. local Chat = Instance.new("TextBox")
  722. Chat.Parent = GUI
  723. Chat.FontSize = "Size12"
  724. Chat.BackgroundColor3=Color3.new(1,1,1)
  725. Chat.Position = UDim2.new(0.25, 0, 0.25, 0)
  726. Chat.Size = UDim2.new(1.5,0,1.5,0)
  727. Chat.Visible = true
  728. Chat.Text = " "
  729. local Chat = Instance.new("TextBox")
  730. Chat.Parent = GUI
  731. Chat.FontSize = "Size12"
  732. Chat.BackgroundColor3=Color3.new(1,1,1)
  733. Chat.Position = UDim2.new(0.25, 0, -0.15, 0)
  734. Chat.Size = UDim2.new(1,0,1.5,0)
  735. Chat.Visible = true
  736. Chat.Text = " "
  737. local Chat = Instance.new("TextBox")
  738. Chat.Parent = GUI
  739. Chat.FontSize = "Size12"
  740. Chat.BackgroundColor3=Color3.new(1,1,1)
  741. Chat.Position = UDim2.new(0.25, 0, -0.45, 0)
  742. Chat.Size = UDim2.new(0.5,0,1.5,0)
  743. Chat.Visible = true
  744. Chat.Text = " "
  745. local Chat = Instance.new("TextBox")
  746. Chat.Parent = GUI
  747. Chat.FontSize = "Size12"
  748. Chat.BackgroundColor3=Color3.new(1,1,1)
  749. Chat.Position = UDim2.new(0.25, 0, 0.25, 0)
  750. Chat.Size = UDim2.new(1.5,0,1.5,0)
  751. Chat.Visible = true
  752. Chat.Text = " "
  753. local Chat = Instance.new("ImageLabel")
  754. Chat.Parent = GUI
  755. Chat.BackgroundColor3=Color3.new(1,1,1)
  756. Chat.Position = UDim2.new(0.25, 0, 0.25, 0)
  757. Chat.Size = UDim2.new(1.5,0,1.5,0)
  758. Chat.Visible = true
  759. Chat.Image="http://www.roblox.com/asset/?id=86770725"
  760. for i=0,1,0.5 do
  761. wait()
  762. GUI.Size = UDim2.new(i, 0, i, 0)
  763. Torso.Neck.C0=necko*euler(0,0,1)
  764. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5)
  765. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  766. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  767. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  768. end
  769. wait(1)
  770. GUI.Parent=nil
  771. Board.Parent=Main
  772. BWld1.Parent=Board
  773. BWld2.Parent=Board
  774. BWld3.Parent=Board
  775. BWld4.Parent=Board
  776. BWld5.Parent=Board
  777. BWld6.Parent=Board
  778. BWld7.Parent=Board
  779. BWld8.Parent=Board
  780. BWld9.Parent=Board
  781. BWld10.Parent=Board
  782. BWld11.Parent=Board
  783. BWld12.Parent=Board
  784. wait(2)
  785. Board.Parent=nil
  786. attack=false
  787. end
  788. function Taunt1()
  789. attack=true
  790. wait(0.1)
  791. Wld1.Part0=Prt8
  792. Wld1.C0=euler(2,0,0)*cf(0,1.2,0.5)
  793. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  794. for i=0,1,0.1 do
  795. wait()
  796. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  797. bg.Parent = Torso
  798. Torso.Neck.C0=necko*euler(0.5*i,0,1-0.5*i)
  799. Wld1.C0=euler(2,0,0)*cf(0,1.2,0.5)
  800. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3*i,0,-0.5+0.5*i)
  801. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  802. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5-0.4*i)
  803. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  804. end
  805. for i=0,1,0.2 do
  806. wait()
  807. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0.5)
  808. Wld1.C0=euler(2,0,0)*cf(0,1.2,0.5)
  809. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+1*i,0,0)
  810. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  811. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1)
  812. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  813. end
  814. for i=0,1,0.2 do
  815. wait()
  816. Torso.Neck.C0=necko*euler(-0.5*i,0,0.5)
  817. Wld1.C0=euler(2+4.186*i,0,0)*cf(0,1.2,0.5+1*i)
  818. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+1+1*i,0,0)
  819. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  820. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1)
  821. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  822. end
  823. for i=0,1,0.2 do
  824. wait()
  825. Wld1.C0=euler(2+4.186+4.186*i,0,0)*cf(0,1.2,0.5+1+1*i)
  826. end
  827. for i=0,1,0.2 do
  828. wait()
  829. Wld1.C0=euler(2+4.186+4.186+4.186*i,0,0)*cf(0,1.2,0.5+1+1-2*i)
  830. end
  831. for i=0,1,0.1 do
  832. wait()
  833. Torso.Neck.C0=necko*euler(-0.5+1*i,0,0.5)
  834. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+1+1-2*i,0,0)
  835. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  836. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1)
  837. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  838. end
  839. for i=0,1,0.1 do
  840. wait()
  841. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0.5+0.5*i)
  842. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+0.3*i,0,-0.5*i)
  843. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  844. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1+0.4*i)
  845. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  846. end
  847. Wld1.C0=euler(2,0,0)*cf(0,0.9,0)
  848. Wld1.Part0=Prt1
  849. attack=false
  850. end
  851. Stun2=function(Feh,x,y,z,color)
  852. lightning=true
  853. coroutine.resume(coroutine.create(function(part,X,Y,Z)
  854. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  855. return
  856. end]]
  857. Torsoh2=part
  858. End2=Torsoh2.CFrame+Vector3.new(X/10,Y/10,Z/10)
  859. ST2=Torsoh2.Position
  860. --[[ p=Instance.new("BodyPosition")
  861. p.P=3000
  862. p.D=100
  863. p.maxForce=Vector3.new(math.huge,0,math.huge)
  864. p.position=Torsoh2.Position
  865. p.Parent=Torsoh2]]
  866. while part.Parent ~= nil and lightning == true do
  867. -- f1:Play()
  868. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  869. Start2=End2
  870. End2=Torsoh2.CFrame*CFrame.new(X/10,Y/10,Z/10)
  871. e=Instance.new("Part")
  872. e.TopSurface=0
  873. e.BottomSurface=0
  874. e.CanCollide=false
  875. e.Anchored=true
  876. e.formFactor="Symmetric"
  877. e.Size=Vector3.new(1,1,1)
  878. Look2=(End2.p-Start2.p).unit
  879. m=Instance.new("BlockMesh")
  880. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  881. m.Parent=e
  882. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  883. -- EVENMOARMAGIX(e,2,2,2,0,0,0,0,0,0,BrickColor.new("Navy blue"))
  884. WaveEffect(e,0.3,0.3,0.3,0,0,0,1.57,0,0,BrickColor.new("Navy blue"))
  885. e.Reflectance=.3
  886. e.Name="Zap"
  887. e.BrickColor=color
  888. e.Parent=part.Parent
  889. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  890. wait()
  891. end
  892. wait(.45)
  893. -- p.Parent=nil
  894. end),Feh,x,y,z)
  895. end
  896. function slasheffect(cframe,waitin,size)
  897. coroutine.resume(coroutine.create(function()
  898. wait(waitin)
  899. wait()
  900. e=Instance.new("Part")
  901. --coneffect=e.Touched:connect(function(hit) Damagefunc1(hit,efdam,1) end)
  902. e.Name="SlashEffect"
  903. e.TopSurface=0
  904. e.BottomSurface=0
  905. e.formFactor="Symmetric"
  906. e.Size=Vector3.new(1,1,size)
  907. e.Anchored=true
  908. e.BrickColor=BrickColor.new("Black")
  909. e.Reflectance=0
  910. e.Transparency=0
  911. e.CanCollide=false
  912. m=Instance.new("SpecialMesh")
  913. m.MeshType="Sphere"
  914. m.Scale=Vector3.new(.25,.25,1)
  915. m.Parent=e
  916. e.CFrame = cframe
  917. e.Parent=workspace
  918. print(e.Parent)
  919. coroutine.resume(coroutine.create(function(m) for i=1, 5 do m.Transparency=i*.2 m.Mesh.Scale=m.Mesh.Scale-Vector3.new(.02,.02,.08)*2 wait() end m.Parent=nil end),e)
  920. end))
  921. end
  922. function ss(pitch)
  923. local SlashSound = it("Sound")
  924. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  925. SlashSound.Parent = workspace
  926. SlashSound.Volume = .7
  927. SlashSound.Pitch = pitch
  928. SlashSound.PlayOnRemove = true
  929. coroutine.resume(coroutine.create(function()
  930. wait(0)
  931. SlashSound.Parent = nil
  932. end))
  933. end
  934. function charge(pitch)
  935. local SlashSound = it("Sound")
  936. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  937. SlashSound.Parent = workspace
  938. SlashSound.Volume = 1
  939. SlashSound.Pitch = pitch
  940. SlashSound.PlayOnRemove = true
  941. coroutine.resume(coroutine.create(function()
  942. wait(0)
  943. SlashSound.Parent = nil
  944. end))
  945. end
  946. function bewm(pitch)
  947. local SlashSound = it("Sound")
  948. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  949. SlashSound.Parent = workspace
  950. SlashSound.Volume = .7
  951. SlashSound.Pitch = pitch
  952. SlashSound.PlayOnRemove = true
  953. coroutine.resume(coroutine.create(function()
  954. wait(0)
  955. SlashSound.Parent = nil
  956. end))
  957. end
  958. function abscond(pitch)
  959. local SlashSound = it("Sound")
  960. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  961. SlashSound.Parent = workspace
  962. SlashSound.Volume = 1
  963. SlashSound.Pitch = pitch
  964. SlashSound.PlayOnRemove = true
  965. coroutine.resume(coroutine.create(function()
  966. wait(0)
  967. SlashSound.Parent = nil
  968. end))
  969. end
  970. function distort(pitch)
  971. local SlashSound = it("Sound")
  972. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249"
  973. SlashSound.Parent = workspace
  974. SlashSound.Volume = 1
  975. SlashSound.Pitch = pitch
  976. SlashSound.PlayOnRemove = true
  977. coroutine.resume(coroutine.create(function()
  978. wait(0)
  979. SlashSound.Parent = nil
  980. end))
  981. end
  982. function fire1(pitch)
  983. local SlashSound = it("Sound")
  984. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697431"
  985. SlashSound.Parent = workspace
  986. SlashSound.Volume = 0.3
  987. SlashSound.Pitch = pitch
  988. SlashSound.PlayOnRemove = true
  989. coroutine.resume(coroutine.create(function()
  990. wait(0)
  991. SlashSound.Parent = nil
  992. end))
  993. end
  994. function fire2(pitch)
  995. local SlashSound = it("Sound")
  996. SlashSound.SoundId = "http://www.roblox.com/asset/?id=48618802 "
  997. SlashSound.Parent = workspace
  998. SlashSound.Volume = 0.5
  999. SlashSound.Pitch = pitch
  1000. SlashSound.PlayOnRemove = true
  1001. coroutine.resume(coroutine.create(function()
  1002. wait(0)
  1003. SlashSound.Parent = nil
  1004. end))
  1005. end
  1006. function grip(pitch)
  1007. local SlashSound = it("Sound")
  1008. SlashSound.SoundId = "rbxasset://sounds/swordslash.wav"
  1009. SlashSound.Parent = workspace
  1010. SlashSound.Volume = 1
  1011. SlashSound.Pitch = pitch
  1012. SlashSound.PlayOnRemove = true
  1013. coroutine.resume(coroutine.create(function()
  1014. wait(0)
  1015. SlashSound.Parent = nil
  1016. end))
  1017. end
  1018. function reload(pitch)
  1019. local SlashSound = it("Sound")
  1020. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697295"
  1021. SlashSound.Parent = workspace
  1022. SlashSound.Volume = 1
  1023. SlashSound.Pitch = pitch
  1024. SlashSound.PlayOnRemove = true
  1025. coroutine.resume(coroutine.create(function()
  1026. wait(0)
  1027. SlashSound.Parent = nil
  1028. end))
  1029. end
  1030. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1031. local msh1 = it("BlockMesh")
  1032. msh1.Scale = vt(0.5,0.5,0.5)
  1033. S=it("Part")
  1034. S.Name="Effect"
  1035. S.formFactor=0
  1036. S.Size=vt(x1,y1,z1)
  1037. S.BrickColor=color
  1038. S.Reflectance = 0
  1039. S.TopSurface=0
  1040. S.BottomSurface=0
  1041. S.Transparency=0
  1042. S.Anchored=true
  1043. S.CanCollide=false
  1044. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1045. S.Parent=workspace
  1046. msh1.Parent = S
  1047. 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)
  1048. end
  1049. function MMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1050. local msh1 = it("BlockMesh")
  1051. msh1.Scale = vt(0.5,0.5,0.5)
  1052. S=it("Part")
  1053. S.Name="Effect"
  1054. S.formFactor=0
  1055. S.Size=vt(x1,y1,z1)
  1056. S.BrickColor=color
  1057. S.Reflectance = 0
  1058. S.TopSurface=0
  1059. S.BottomSurface=0
  1060. S.Transparency=0
  1061. S.Anchored=true
  1062. S.CanCollide=false
  1063. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1064. S.Parent=Character
  1065. msh1.Parent = S
  1066. 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)
  1067. end
  1068. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  1069. local msh1 = it("BlockMesh")
  1070. msh1.Scale = vt(0.5,0.5,0.5)
  1071. S=it("Part")
  1072. S.Name="Effect"
  1073. S.formFactor=0
  1074. S.Size=vt(x1,y1,z1)
  1075. S.BrickColor=color
  1076. S.Reflectance = 0
  1077. S.TopSurface=0
  1078. S.BottomSurface=0
  1079. S.Transparency=0
  1080. S.Anchored=true
  1081. S.CanCollide=false
  1082. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1083. S.Parent=workspace
  1084. msh1.Parent = S
  1085. 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)
  1086. end
  1087. function MMMAGIC3(part,x1,y1,z1,x2,y2,z2,color)
  1088. local msh1 = it("BlockMesh")
  1089. msh1.Scale = vt(0.5,0.5,0.5)
  1090. S=it("Part")
  1091. S.Name="Effect"
  1092. S.formFactor=0
  1093. S.Size=vt(x1,y1,z1)
  1094. S.BrickColor=color
  1095. S.Reflectance = 0
  1096. S.TopSurface=0
  1097. S.BottomSurface=0
  1098. S.Transparency=0
  1099. S.Anchored=true
  1100. S.CanCollide=false
  1101. S.CFrame=part*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1102. S.Parent=Character
  1103. msh1.Parent = S
  1104. 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)
  1105. end
  1106. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  1107. local msh1 = it("BlockMesh")
  1108. msh1.Scale = vt(x1,y1,z1)
  1109. S=it("Part")
  1110. S.Name="Effect"
  1111. S.formFactor=0
  1112. S.Size=vt(1,1,1)
  1113. S.BrickColor=color
  1114. S.Reflectance = 0
  1115. S.TopSurface=0
  1116. S.BottomSurface=0
  1117. S.Transparency=0
  1118. S.Anchored=true
  1119. S.CanCollide=false
  1120. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1121. S.Parent=workspace
  1122. msh1.Parent = S
  1123. 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)
  1124. end
  1125. function MOREMAGIX(part,cframe,x,y,z,color)
  1126. p2=it("Part")
  1127. p2.Name="Blast"
  1128. p2.TopSurface=0
  1129. p2.BottomSurface=0
  1130. p2.CanCollide=false
  1131. p2.Anchored=true
  1132. p2.BrickColor=color
  1133. p2.Size=vt(x,y,z)
  1134. p2.formFactor="Symmetric"
  1135. p2.CFrame=part.CFrame*cf(0,cframe,0)
  1136. p2.Parent=Character
  1137. m=it("BlockMesh")
  1138. m.Parent=p2
  1139. m.Name="BlastMesh"
  1140. 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))
  1141. end
  1142. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1143. local msh1 = it("SpecialMesh")
  1144. msh1.Scale = vt(0.5,0.5,0.5)
  1145. msh1.MeshType = "Sphere"
  1146. S=it("Part")
  1147. S.Name="Effect"
  1148. S.formFactor=0
  1149. S.Size=vt(x1,y1,z1)
  1150. S.BrickColor=color
  1151. S.Reflectance = 0
  1152. S.TopSurface=0
  1153. S.BottomSurface=0
  1154. S.Transparency=0
  1155. S.Anchored=true
  1156. S.CanCollide=false
  1157. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1158. S.Parent=Character
  1159. msh1.Parent = S
  1160. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 5 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.2,0.2,0.2) Part.Transparency=i*.2 wait() end Part.Parent=nil end),S,S.CFrame)
  1161. end
  1162. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1163. local msh1 = it("SpecialMesh")
  1164. msh1.Scale = vt(0.5,0.5,0.5)
  1165. msh1.MeshType = "Sphere"
  1166. S=it("Part")
  1167. S.Name="Effect"
  1168. S.formFactor=0
  1169. S.Size=vt(x1,y1,z1)
  1170. S.BrickColor=color
  1171. S.Reflectance = 0
  1172. S.TopSurface=0
  1173. S.BottomSurface=0
  1174. S.Transparency=0
  1175. S.Anchored=true
  1176. S.CanCollide=false
  1177. S.CFrame=part
  1178. S.Parent=workspace
  1179. msh1.Parent = S
  1180. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 14 do Part.Mesh.Scale = Part.Mesh.Scale + vt(1,1,1) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  1181. end
  1182. function ChargeEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1183. local msh1 = it("SpecialMesh")
  1184. msh1.Scale = vt(0.5,0.5,0.5)
  1185. msh1.MeshType = "Sphere"
  1186. S=it("Part")
  1187. S.Name="Effect"
  1188. S.formFactor=0
  1189. S.Size=vt(x1,y1,z1)
  1190. S.BrickColor=color
  1191. S.Reflectance = 0
  1192. S.TopSurface=0
  1193. S.BottomSurface=0
  1194. S.Transparency=0
  1195. S.Anchored=false
  1196. S.CanCollide=false
  1197. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1198. S.Parent=modelzorz
  1199. msh1.Parent = S
  1200. coroutine.resume(coroutine.create(function(Part,CF)
  1201. f=it("BodyPosition")
  1202. f.P=800
  1203. f.D=100
  1204. f.maxForce=vt(math.huge,math.huge,math.huge)
  1205. f.position=part.Position+vt(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1206. f.Parent=Part
  1207. for i=0,1,0.1 do
  1208. wait()
  1209. Part.Transparency=Part.Transparency+0.1
  1210. end
  1211. Part.Parent=nil
  1212. end),S,S.CFrame)
  1213. end
  1214. print("Y U NU GIVE CREDIT.")
  1215. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1216. local msh1 = it("SpecialMesh")
  1217. msh1.Scale = vt(x1,y1,z1)
  1218. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1219. S=it("Part")
  1220. S.Name="Effect"
  1221. S.formFactor=0
  1222. S.Size=vt(1,1,1)
  1223. S.BrickColor=color
  1224. S.Reflectance = 0
  1225. S.TopSurface=0
  1226. S.BottomSurface=0
  1227. S.Transparency=0
  1228. S.Anchored=true
  1229. S.CanCollide=false
  1230. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1231. S.Parent=workspace
  1232. msh1.Parent = S
  1233. 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)
  1234. end
  1235. function WaveEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1236. local msh1 = it("SpecialMesh")
  1237. msh1.Scale = vt(x1,y1,z1)
  1238. msh1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1239. S=it("Part")
  1240. S.Name="Effect"
  1241. S.formFactor=0
  1242. S.Size=vt(1,1,1)
  1243. S.BrickColor=color
  1244. S.Reflectance = 0
  1245. S.TopSurface=0
  1246. S.BottomSurface=0
  1247. S.Transparency=0
  1248. S.Anchored=true
  1249. S.CanCollide=false
  1250. S.CFrame=part*cf(x2,y2,z2)*euler(x3,y3,z3)
  1251. S.Parent=workspace
  1252. msh1.Parent = S
  1253. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 18 do Part.Mesh.Scale = Part.Mesh.Scale + vt(3,3,3) Part.Transparency=i*.07 wait() end Part.Parent=nil end),S,S.CFrame)
  1254. end
  1255. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1256. local msh1 = it("SpecialMesh")
  1257. msh1.Scale = vt(x1,y1,z1)
  1258. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1259. S=it("Part")
  1260. S.Name="Effect"
  1261. S.formFactor=0
  1262. S.Size=vt(1,1,1)
  1263. S.BrickColor=color
  1264. S.Reflectance = 0
  1265. S.TopSurface=0
  1266. S.BottomSurface=0
  1267. S.Transparency=0
  1268. S.Anchored=true
  1269. S.CanCollide=false
  1270. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1271. S.Parent=workspace
  1272. msh1.Parent = S
  1273. 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)
  1274. end
  1275. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  1276. local msh1 = it("BlockMesh")
  1277. msh1.Scale = vt(0.5,0.5,0.5)
  1278. S=it("Part")
  1279. S.Name="Effect"
  1280. S.formFactor=0
  1281. S.Size=vt(x1,y1,z1)
  1282. S.BrickColor=color
  1283. S.Reflectance = 0
  1284. S.TopSurface=0
  1285. S.BottomSurface=0
  1286. S.Transparency=0
  1287. S.Anchored=false
  1288. S.CanCollide=false
  1289. S.CFrame=part.CFrame
  1290. S.Parent=workspace
  1291. msh1.Parent = S
  1292. W=it("Weld")
  1293. W.Parent=S
  1294. W.Part0=S
  1295. W.Part1=part
  1296. W.C0=cf(x2,y2,z2) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1297. W.Parent=nil
  1298. S.Anchored=true
  1299. 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)
  1300. end
  1301. function ChargeEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  1302. local msh1 = it("SpecialMesh")
  1303. msh1.Scale = vt(0.5,0.5,0.5)
  1304. msh1.MeshType = "Sphere"
  1305. S=it("Part")
  1306. S.Name="Effect"
  1307. S.formFactor=0
  1308. S.Size=vt(x1,y1,z1)
  1309. S.BrickColor=color
  1310. S.Reflectance = 0
  1311. S.TopSurface=0
  1312. S.BottomSurface=0
  1313. S.Transparency=0
  1314. S.Anchored=false
  1315. S.CanCollide=false
  1316. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  1317. S.Parent=Character
  1318. msh1.Parent = S
  1319. coroutine.resume(coroutine.create(function(Part,CF)
  1320. f=it("BodyPosition")
  1321. f.P=800
  1322. f.D=100
  1323. f.maxForce=vt(math.huge,math.huge,math.huge)
  1324. f.position=part.Position
  1325. f.Parent=Part
  1326. for i=0,1,0.05 do
  1327. wait()
  1328. Part.Transparency=Part.Transparency+0.05
  1329. end
  1330. Part.Parent=nil
  1331. end),S,S.CFrame)
  1332. end
  1333. DarkRiftF=function(par)
  1334. PWN={}
  1335. for _,v in pairs(workspace:children()) do
  1336. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  1337. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  1338. if v~=Character and (v.Torso.Position-par.Position).magnitude<=25 then
  1339. table.insert(PWN,v.Torso)
  1340. end
  1341. end
  1342. end
  1343. end
  1344. for _,t in pairs(PWN) do
  1345. Mag=(par.Position-t.Position).magnitude/2
  1346. t.Parent.Humanoid:TakeDamage(.6)
  1347. rl=it("BodyAngularVelocity")
  1348. rl.P=3000
  1349. rl.maxTorque=vt(500000,500000,500000)*5000
  1350. rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  1351. rl.Parent=t
  1352. game:GetService("Debris"):AddItem(rl,.1)
  1353. if Mag<=2 then
  1354. t.Parent.Humanoid:TakeDamage(.3)
  1355. else
  1356. vl=it("BodyVelocity")
  1357. vl.P=3000
  1358. vl.maxForce=vt(50000000000,50000000000,50000000000)
  1359. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  1360. vl.Parent=t
  1361. game:GetService("Debris"):AddItem(vl,.1)
  1362. end
  1363. end
  1364. wait(.08)
  1365. end
  1366. DBHit=function(hit,Damage,Knockback)
  1367. if hit.Parent==nil then
  1368. return
  1369. end
  1370. h=hit.Parent:FindFirstChild("Humanoid")
  1371. t=hit.Parent:FindFirstChild("Torso")
  1372. if h~=nil and t~=nil then
  1373. if h.Parent==Character then
  1374. return
  1375. end
  1376. c=it("ObjectValue")
  1377. c.Name="creator"
  1378. c.Value=game.Players.LocalPlayer
  1379. c.Parent=h
  1380. game:GetService("Debris"):AddItem(c,.5)
  1381. if math.random(0,99)+math.random()<=7.8 then
  1382. CRIT=true
  1383. Damage=Damage*3
  1384. --[[ Knockback=Knockback*2
  1385. r=it("BodyAngularVelocity")
  1386. r.P=3000
  1387. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1388. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1389. r.Parent=hit.Parent.Torso]]
  1390. s=it("Sound")
  1391. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1392. s.Volume=1
  1393. s.Pitch=2
  1394. s.Parent=hit
  1395. s.PlayOnRemove=true
  1396. s.Parent=nil
  1397.  
  1398. end
  1399. h:TakeDamage(Damage)
  1400. showDamage(hit.Parent,Damage,.5)
  1401. vp=it("BodyVelocity")
  1402. vp.P=500
  1403. vp.maxForce=vt(math.huge,0,math.huge)
  1404. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1405. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1406. if Knockback>0 then
  1407. vp.Parent=hit.Parent.Torso
  1408. end
  1409. game:GetService("Debris"):AddItem(vp,1)
  1410. rl=it("BodyAngularVelocity")
  1411. rl.P=3000
  1412. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  1413. rl.angularvelocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  1414. rl.Parent=t
  1415. game:GetService("Debris"):AddItem(rl,.2)
  1416. else
  1417. if hit.CanCollide==false then
  1418. return
  1419. end
  1420. MagicCom:disconnect()
  1421. -- DBExplode(DB)
  1422. end
  1423. end
  1424. DBHit2=function(hit,Damage)
  1425. if hit.Parent==nil then
  1426. return
  1427. end
  1428. h=hit.Parent:FindFirstChild("Humanoid")
  1429. t=hit.Parent:FindFirstChild("Torso")
  1430. if h~=nil and t~=nil then
  1431. if h.Parent==Character then
  1432. return
  1433. end
  1434. c=it("ObjectValue")
  1435. c.Name="creator"
  1436. c.Value=game.Players.LocalPlayer
  1437. c.Parent=h
  1438. game:GetService("Debris"):AddItem(c,.5)
  1439. if math.random(0,99)+math.random()<=7.8 then
  1440. CRIT=true
  1441. Damage=Damage*3
  1442. --[[ Knockback=Knockback*2
  1443. r=it("BodyAngularVelocity")
  1444. r.P=3000
  1445. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1446. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1447. r.Parent=hit.Parent.Torso]]
  1448. s=it("Sound")
  1449. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1450. s.Volume=1
  1451. s.Pitch=2
  1452. s.Parent=hit
  1453. s.PlayOnRemove=true
  1454. s.Parent=nil
  1455.  
  1456. end
  1457. h:TakeDamage(Damage)
  1458. showDamage(hit.Parent,Damage,.5)
  1459. vl=it("BodyVelocity")
  1460. vl.P=4500
  1461. vl.maxForce=vt(math.huge,math.huge,math.huge)
  1462. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,30,0)
  1463. vl.velocity=Head.CFrame.lookVector*35+Head.Velocity/1.05
  1464. vl.Parent=t
  1465. game:GetService("Debris"):AddItem(vl,.2)
  1466. rl=it("BodyAngularVelocity")
  1467. rl.P=3000
  1468. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  1469. rl.angularvelocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1470. rl.Parent=t
  1471. game:GetService("Debris"):AddItem(rl,.2)
  1472. else
  1473. if hit.CanCollide==false then
  1474. return
  1475. end
  1476. MagicCom:disconnect()
  1477. -- DBExplode(DB)
  1478. end
  1479. end
  1480. DOHHit=function(hit,Damage,Pos)
  1481. if hit.Parent==nil then
  1482. return
  1483. end
  1484. h=hit.Parent:FindFirstChild("Humanoid")
  1485. t=hit.Parent:FindFirstChild("Torso")
  1486. if h~=nil and t~=nil then
  1487. if h.Parent==Character then
  1488. return
  1489. end
  1490. if attackdebounce == false then
  1491. attackdebounce = true
  1492. coroutine.resume(coroutine.create(function()
  1493. wait(0.1)
  1494. attackdebounce = false
  1495. end))
  1496. c=it("ObjectValue")
  1497. c.Name="creator"
  1498. c.Value=game.Players.LocalPlayer
  1499. c.Parent=h
  1500. game:GetService("Debris"):AddItem(c,.5)
  1501. if math.random(0,99)+math.random()<=7.8 then
  1502. CRIT=true
  1503. Damage=Damage*3
  1504. --[[ Knockback=Knockback*2
  1505. r=it("BodyAngularVelocity")
  1506. r.P=3000
  1507. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1508. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1509. r.Parent=hit.Parent.Torso]]
  1510. s=it("Sound")
  1511. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1512. s.Volume=1
  1513. s.Pitch=2
  1514. s.Parent=hit
  1515. s.PlayOnRemove=true
  1516. s.Parent=nil
  1517.  
  1518. end
  1519. h:TakeDamage(Damage)
  1520. showDamage(hit.Parent,Damage,.5)
  1521. vl=it("BodyVelocity")
  1522. vl.P=4500
  1523. vl.maxForce=vt(math.huge,math.huge,math.huge)
  1524. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,60,0)
  1525. vl.velocity=Head.CFrame.lookVector+Head.Velocity/1.05
  1526. vl.Parent=t
  1527. game:GetService("Debris"):AddItem(vl,.2)
  1528. f=it("BodyPosition")
  1529. f.P=2000
  1530. f.D=100
  1531. f.maxForce=vt(math.huge,math.huge,math.huge)
  1532. f.position=t.Position+vt(0,0,0)
  1533. f.Parent=t
  1534. game:GetService("Debris"):AddItem(f,.5)
  1535. rl=it("BodyAngularVelocity")
  1536. rl.P=3000
  1537. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  1538. rl.angularvelocity=vt(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1539. rl.Parent=t
  1540. game:GetService("Debris"):AddItem(rl,.2)
  1541. else
  1542. if hit.CanCollide==false then
  1543. return
  1544. end
  1545. MagicCom:disconnect()
  1546. -- DBExplode(DB)
  1547. end
  1548. end
  1549. end
  1550. Damagefunc1=function(hit,Damage,Knockback)
  1551. if hit.Parent==nil then
  1552. return
  1553. end
  1554. CPlayer=Bin
  1555. h=hit.Parent:FindFirstChild("Humanoid")
  1556. if h~=nil and hit.Parent.Name~="Player" and hit.Parent:FindFirstChild("Torso")~=nil then
  1557. if attackdebounce == false then
  1558. attackdebounce = true
  1559. coroutine.resume(coroutine.create(function()
  1560. wait(0.1)
  1561. attackdebounce = false
  1562. end))
  1563. Damage=Damage
  1564. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1565. return
  1566. end]]
  1567. if mana<400 then
  1568. mana=mana+math.random(10,20)
  1569. else
  1570. mana=400
  1571. end
  1572. c=it("ObjectValue")
  1573. c.Name="creator"
  1574. c.Value=game.Players.LocalPlayer
  1575. c.Parent=h
  1576. game:GetService("Debris"):AddItem(c,.5)
  1577. -- print(c.Value)
  1578. if math.random(0,99)+math.random()<=7.8 then
  1579. CRIT=true
  1580. Damage=Damage*2
  1581. --[[ Knockback=Knockback*2
  1582. r=it("BodyAngularVelocity")
  1583. r.P=3000
  1584. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1585. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1586. r.Parent=hit.Parent.Torso]]
  1587. s=it("Sound")
  1588. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1589. s.Volume=1
  1590. s.Pitch=2
  1591. s.Parent=hit
  1592. s.PlayOnRemove=true
  1593. s.Parent=nil
  1594.  
  1595. end
  1596. Damage=Damage+math.random(0,10)
  1597. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1598. h:TakeDamage(Damage)
  1599. showDamage(hit.Parent,Damage,.5)
  1600. vp=it("BodyVelocity")
  1601. vp.P=500
  1602. vp.maxForce=vt(math.huge,0,math.huge)
  1603. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1604. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1605. if Knockback>0 then
  1606. vp.Parent=hit.Parent.Torso
  1607. end
  1608. game:GetService("Debris"):AddItem(vp,.25)
  1609. --[[ r=it("BodyAngularVelocity")
  1610. r.P=3000
  1611. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1612. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1613. r.Parent=hit.Parent.Torso]]
  1614. game:GetService("Debris"):AddItem(r,.5)
  1615. c=it("ObjectValue")
  1616. c.Name="creator"
  1617. c.Value=Player
  1618. c.Parent=h
  1619. game:GetService("Debris"):AddItem(c,.5)
  1620. CRIT=false
  1621. hitDeb=true
  1622. AttackPos=6
  1623. end
  1624. end
  1625. end
  1626. Damagefunc2=function(hit,Damage,Knockback,durposition)
  1627. if hit.Parent==nil then
  1628. return
  1629. end
  1630. CPlayer=Bin
  1631. h=hit.Parent:FindFirstChild("Humanoid")
  1632. if h~=nil and hit.Parent.Name~="Fenrier" and hit.Parent:FindFirstChild("Torso")~=nil then
  1633. if attackdebounce == false then
  1634. attackdebounce = true
  1635. coroutine.resume(coroutine.create(function()
  1636. wait(0.1)
  1637. attackdebounce = false
  1638. end))
  1639. Damage=Damage
  1640. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1641. return
  1642. end]]
  1643. c=it("ObjectValue")
  1644. c.Name="creator"
  1645. c.Value=game.Players.LocalPlayer
  1646. c.Parent=h
  1647. game:GetService("Debris"):AddItem(c,.5)
  1648. -- print(c.Value)
  1649. if math.random(0,99)+math.random()<=7.8 then
  1650. CRIT=true
  1651. Damage=Damage*2
  1652. --[[ Knockback=Knockback*2
  1653. r=it("BodyAngularVelocity")
  1654. r.P=3000
  1655. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1656. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1657. r.Parent=hit.Parent.Torso]]
  1658. s=it("Sound")
  1659. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1660. s.Volume=1
  1661. s.Pitch=2
  1662. s.Parent=hit
  1663. s.PlayOnRemove=true
  1664. s.Parent=nil
  1665.  
  1666. end
  1667. Damage=Damage+math.random(0,10)
  1668. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1669. h:TakeDamage(Damage)
  1670. showDamage(hit.Parent,Damage,.5)
  1671. local angle = (hit.Position-(durposition+Vector3.new(0,-3,0))).unit
  1672. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1673. rl=Instance.new("BodyAngularVelocity")
  1674. rl.P=3000
  1675. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1676. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1677. rl.Parent=hit
  1678. local bodyVelocity=Instance.new("BodyVelocity")
  1679. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  1680. bodyVelocity.P=5000
  1681. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1682. bodyVelocity.Parent=hit
  1683. coroutine.resume(coroutine.create(function(Vel)
  1684. wait(0.7)
  1685. Vel:Remove()
  1686. end),bodyVelocity)
  1687. coroutine.resume(coroutine.create(function(vel)
  1688. wait(1)
  1689. vel:Remove()
  1690. end),rl)
  1691. game:GetService("Debris"):AddItem(vp,1)
  1692. --[[ r=it("BodyAngularVelocity")
  1693. r.P=3000
  1694. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1695. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1696. r.Parent=hit.Parent.Torso]]
  1697. game:GetService("Debris"):AddItem(r,.5)
  1698. c=it("ObjectValue")
  1699. c.Name="creator"
  1700. c.Value=Player
  1701. c.Parent=h
  1702. game:GetService("Debris"):AddItem(c,.5)
  1703. CRIT=false
  1704. hitDeb=true
  1705. AttackPos=6
  1706. end
  1707. end
  1708. end
  1709. DOH=function(hit,Damage,Knockback)
  1710. if attackdebounce == false then
  1711. attackdebounce = true
  1712. coroutine.resume(coroutine.create(function()
  1713. wait(0.2)
  1714. attackdebounce = false
  1715. end))
  1716. if hit.Parent==nil then
  1717. return
  1718. end
  1719. CPlayer=Bin
  1720. h=hit.Parent:FindFirstChild("Humanoid")
  1721. if h~=nil and hit.Parent.Name~="Fenrier" and hit.Parent:FindFirstChild("Torso")~=nil then
  1722. Damage=Damage
  1723. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1724. return
  1725. end]]
  1726. c=it("ObjectValue")
  1727. c.Name="creator"
  1728. c.Value=game.Players.LocalPlayer
  1729. c.Parent=h
  1730. game:GetService("Debris"):AddItem(c,.5)
  1731. -- print(c.Value)
  1732. if math.random(0,99)+math.random()<=7.8 then
  1733. CRIT=true
  1734. Damage=Damage*3
  1735. --[[ Knockback=Knockback*2
  1736. r=it("BodyAngularVelocity")
  1737. r.P=3000
  1738. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1739. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1740. r.Parent=hit.Parent.Torso]]
  1741. s=it("Sound")
  1742. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  1743. s.Volume=1
  1744. s.Pitch=2
  1745. s.Parent=hit
  1746. s.PlayOnRemove=true
  1747. s.Parent=nil
  1748.  
  1749. end
  1750. Damage=Damage+math.random(0,10)
  1751. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1752. h:TakeDamage(Damage)
  1753. showDamage(hit.Parent,Damage,.5)
  1754. vp=it("BodyVelocity")
  1755. vp.P=500
  1756. vp.maxForce=vt(math.huge,0,math.huge)
  1757. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1758. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1759. if Knockback>0 then
  1760. vp.Parent=hit.Parent.Torso
  1761. end
  1762. game:GetService("Debris"):AddItem(vp,.25)
  1763. r=it("BodyAngularVelocity")
  1764. r.P=3000
  1765. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1766. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1767. r.Parent=hit.Parent.Torso
  1768. game:GetService("Debris"):AddItem(r,.5)
  1769. c=it("ObjectValue")
  1770. c.Name="creator"
  1771. c.Value=Player
  1772. c.Parent=h
  1773. game:GetService("Debris"):AddItem(c,.5)
  1774. CRIT=false
  1775. hitDeb=true
  1776. AttackPos=6
  1777. end
  1778. end
  1779. end
  1780. showDamage=function(Char,Dealt,du)
  1781. m=it("Model")
  1782. m.Name=tostring(Dealt)
  1783. h=it("Humanoid")
  1784. h.Health=0
  1785. h.MaxHealth=0
  1786. h.Parent=m
  1787. c=it("Part")
  1788. c.Transparency=0
  1789. c.BrickColor=BrickColor:Red()
  1790. if CRIT==true then
  1791. c.BrickColor=BrickColor.new("Really red")
  1792. end
  1793. c.Name="Head"
  1794. c.TopSurface=0
  1795. c.BottomSurface=0
  1796. c.formFactor="Plate"
  1797. c.Size=vt(1,.4,1)
  1798. ms=it("CylinderMesh")
  1799. ms.Scale=vt(.8,.8,.8)
  1800. if CRIT==true then
  1801. ms.Scale=vt(1.25,1.5,1.25)
  1802. end
  1803. ms.Parent=c
  1804. c.Reflectance=0
  1805. it("BodyGyro").Parent=c
  1806. c.Parent=m
  1807. c.CFrame=cf(Char["Head"].CFrame.p+vt(0,1.5,0))
  1808. f=it("BodyPosition")
  1809. f.P=2000
  1810. f.D=100
  1811. f.maxForce=vt(math.huge,math.huge,math.huge)
  1812. f.position=c.Position+vt(0,3,0)
  1813. f.Parent=c
  1814. game:GetService("Debris"):AddItem(m,.5+du)
  1815. c.CanCollide=false
  1816. m.Parent=workspace
  1817. c.CanCollide=false
  1818. end
  1819. function shoottrail2(pos1,Damage)
  1820. coroutine.resume(coroutine.create(function()
  1821. spread2 = 0
  1822. range2 = 200
  1823. rangepower = 10
  1824. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100
  1825. local dir = Head.CFrame.lookVector+spreadvector
  1826. --local dir = pos1.CFrame.lookVector+spreadvector
  1827. local ammount = 100
  1828. local hit2,pos = rayCast(pos1.Position,dir,10,Main)
  1829. local rangepos = range2
  1830. local function drawtrail(From,To)
  1831. local effectsmsh = it("SpecialMesh")
  1832. local Damg = Damage*2
  1833. effectsmsh.Scale = vt(1,1,1)
  1834. effectsmsh.MeshType="Sphere"
  1835. effectsmsh.Name = "Mesh"
  1836. local effectsg = it("Part")
  1837. effectsg.formFactor = 3
  1838. effectsg.CanCollide = false
  1839. effectsg.Name = "Eff"
  1840. effectsg.Locked = true
  1841. effectsg.Anchored = true
  1842. effectsg.Size = vt(1,0.4,1)
  1843. effectsg.Parent = Main
  1844. effectsmsh.Parent = effectsg
  1845. effectsg.BrickColor = BrickColor.new("Navy blue")
  1846. effectsg.Reflectance = 0.25
  1847. local LP = From
  1848. local point1 = To
  1849. local mg = (LP - point1).magnitude
  1850. effectsmsh.Scale = vt(3,3,3)
  1851. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1852. --MMMAGIC(effectsg,4,4,4,0,0,0,BrickColor.new("Black"))
  1853. coroutine.resume(coroutine.create(function()
  1854. for i = 0 , 1 , 0.1 do
  1855. wait()
  1856. effectsg.Transparency = 1*i
  1857. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  1858. end
  1859. wait(1)
  1860. effectsg.Parent = nil
  1861. end))
  1862. end
  1863. local newpos = pos1.Position
  1864. local inc = rangepower
  1865. ammount=100
  1866. local Damg = Damage*2
  1867. local decr = 0
  1868. repeat
  1869. wait()
  1870. decr = decr + 1
  1871. rangepos = rangepos - 10
  1872. dir = dir
  1873. --dir = dir
  1874. ammount=ammount-3
  1875. if decr == 2 then
  1876. Damg = Damg/1.3
  1877. decr=0
  1878. end
  1879. hit2,pos = rayCast(newpos,dir,inc,Main)
  1880. drawtrail(newpos,pos)
  1881. newpos = newpos + (dir * inc)
  1882. if alt==1 then
  1883. inc = 10
  1884. if inc >= 20 then
  1885. inc = inc - 10
  1886. end
  1887. end
  1888. if hit2 ~= nil then
  1889. rangepos = 0
  1890. end
  1891. until rangepos <= 0
  1892. EVENMOARMAGIX2(cf(newpos),2,2,2,0,0,0,0,0,0,BrickColor.new("Black"))
  1893. local c = game.Workspace:GetChildren();
  1894. for i = 1, #c do
  1895. local hum = c[i]:findFirstChild("Humanoid")
  1896. if hum ~= nil and hum.Health ~= 0 then
  1897. local head = c[i]:findFirstChild("Head");
  1898. if head ~= nil then
  1899. local targ = head.Position - newpos;
  1900. local mag = targ.magnitude;
  1901. if mag <= 10 and c[i].Name ~= Player.Name then
  1902. attackdebounce=false
  1903. Damagefunc1(head,math.floor(Damg),0.1)
  1904. end
  1905. end
  1906. end
  1907. end
  1908. if hit2 ~= nil then
  1909. local effectsmsh = it("SpecialMesh")
  1910. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1911. --effectsmsh.Scale = vt(1,1,2.5)
  1912. effectsmsh.Scale = vt(3,3,3)
  1913. local effectsg = it("Part")
  1914. effectsg.formFactor = 3
  1915. effectsg.CanCollide = false
  1916. effectsg.Name = "Arrow"
  1917. effectsg.Locked = true
  1918. effectsg.Transparency = 1
  1919. effectsg.Size = vt(0.2,0.2,0.2)
  1920. effectsg.Parent = Main
  1921. effectsg.BrickColor = BrickColor.new("Black")
  1922. effectsmsh.Parent = effectsg
  1923. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  1924. coroutine.resume(coroutine.create(function()
  1925. wait(0)
  1926. effectsg.Parent = nil
  1927. end))
  1928. local efwel = it("Weld")
  1929. efwel.Parent = effectsg
  1930. efwel.Part0 = effectsg
  1931. efwel.Part1 = hit2
  1932. efwel.Parent = nil
  1933. effectsg.Anchored = true
  1934. --local HitPos = effectsg.Position + cf(newpos,pos).lookVector*0.75
  1935. --local HitPos = prt1.Position + cf(newpos,pos).lookVector*0.75
  1936. local HitPos = Prt4.Position + (Head.CFrame.lookVector * .5)
  1937. local CJ = cf(HitPos)
  1938. local C0 = effectsg.CFrame:inverse() * CJ
  1939. local C1 = hit2.CFrame:inverse() * CJ
  1940. --efwel.C0 = C0
  1941. --efwel.C1 = C1
  1942. --efwel.Parent = effectsg
  1943. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  1944. hum = hit2.Parent.Humanoid
  1945. attackdebounce=false
  1946. Damagefunc1(hit2,math.floor(Damg),0.1)
  1947. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1948. hum = hit2.Parent.Parent.Humanoid
  1949. attackdebounce=false
  1950. Damagefunc1(hum,math.floor(Damg),0.1)
  1951. end
  1952. end
  1953. end))
  1954. end
  1955. function shoottrail3(pos1,Damage)
  1956. coroutine.resume(coroutine.create(function()
  1957. spread2 = 0
  1958. range2 = 1000
  1959. rangepower = 2
  1960. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100
  1961. local dir = Head.CFrame.lookVector+spreadvector
  1962. --local dir = pos1.CFrame.lookVector+spreadvector
  1963. local ammount = 100
  1964. local hit2,pos = rayCast(pos1.Position,dir,10,Character)
  1965. local rangepos = range2
  1966. local function drawtrail(From,To)
  1967. local effectsmsh = it("SpecialMesh")
  1968. local Damg = Damage*2
  1969. effectsmsh.Scale = vt(1,1,1)
  1970. effectsmsh.MeshType="Sphere"
  1971. effectsmsh.Name = "Mesh"
  1972. local effectsg = it("Part")
  1973. effectsg.formFactor = 3
  1974. effectsg.CanCollide = false
  1975. effectsg.Name = "Eff"
  1976. effectsg.Locked = true
  1977. effectsg.Anchored = true
  1978. effectsg.Size = vt(1,0.4,1)
  1979. effectsg.Parent = Main
  1980. effectsmsh.Parent = effectsg
  1981. effectsg.BrickColor = BrickColor.new("Black")
  1982. effectsg.Reflectance = 0
  1983. effectsg.Transparency=0.3
  1984. local LP = From
  1985. local point1 = To
  1986. local mg = (LP - point1).magnitude
  1987. effectsmsh.Scale = vt(3,3,3)
  1988. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1989. --MMMAGIC3(effectsg.CFrame,1,6,1,0,0,0,BrickColor.new("Black"))
  1990. EVENMOARMAGIX(effectsg,3,3,3,0,0,0,0,0,0,BrickColor.new("Black"))
  1991. MOREMAGIX(effectsg,0,2,2,2,BrickColor.new("Navy blue"))
  1992. coroutine.resume(coroutine.create(function()
  1993. --[[for i = 0 , 1 , 0.1 do
  1994. wait()
  1995. effectsg.Transparency = 1*i
  1996. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  1997. end ]]
  1998. wait()
  1999. effectsg.Transparency = 1
  2000. wait(2)
  2001. effectsg.Parent = nil
  2002. end))
  2003. end
  2004. local newpos = pos1.Position
  2005. local inc = rangepower
  2006. ammount=100
  2007. local Damg = Damage*2
  2008. local decr = 0
  2009. repeat
  2010. wait()
  2011. decr = decr + 1
  2012. rangepos = rangepos - 10
  2013. dir = dir
  2014. --dir = dir
  2015. ammount=ammount-3
  2016. hit2,pos = rayCast(newpos,dir,inc,Character)
  2017. drawtrail(newpos,pos)
  2018. newpos = newpos + (dir * inc)
  2019. if alt==1 then
  2020. inc = 10
  2021. if inc >= 20 then
  2022. inc = inc - 10
  2023. end
  2024. end
  2025. if hit2 ~= nil then
  2026. rangepos = 0
  2027. end
  2028. until rangepos <= 0
  2029. EVENMOARMAGIX2(cf(newpos),5,5,5,0,0,0,0,0,0,BrickColor.new("Black"))
  2030. WaveEffect2(cf(newpos),10,10,10,0,0,0,1,0,0,BrickColor.new("Black"))
  2031. WaveEffect2(cf(newpos),10,10,10,0,0,0,-1,0,0,BrickColor.new("Black"))
  2032. local c = game.Workspace:GetChildren();
  2033. for i = 1, #c do
  2034. local hum = c[i]:findFirstChild("Humanoid")
  2035. if hum ~= nil and hum.Health ~= 0 then
  2036. local head = c[i]:findFirstChild("Head");
  2037. if head ~= nil then
  2038. local targ = head.Position - newpos;
  2039. local mag = targ.magnitude;
  2040. if mag <= 30 and c[i].Name ~= Player.Name then
  2041. attackdebounce=false
  2042. newpos2=newpos
  2043. Damagefunc2(head,math.floor(Damg),0.1,newpos2)
  2044. end
  2045. end
  2046. end
  2047. end
  2048. if hit2 ~= nil then
  2049. print(hit2)
  2050. local effectsmsh = it("SpecialMesh")
  2051. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  2052. --effectsmsh.Scale = vt(1,1,2.5)
  2053. effectsmsh.Scale = vt(3,3,3)
  2054. local effectsg = it("Part")
  2055. effectsg.formFactor = 3
  2056. effectsg.CanCollide = false
  2057. effectsg.Name = "Arrow"
  2058. effectsg.Locked = true
  2059. effectsg.Transparency = 1
  2060. effectsg.Size = vt(0.2,0.2,0.2)
  2061. effectsg.Parent = Main
  2062. effectsg.BrickColor = BrickColor.new("Black")
  2063. effectsmsh.Parent = effectsg
  2064. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  2065. coroutine.resume(coroutine.create(function()
  2066. wait(0)
  2067. effectsg.Parent = nil
  2068. end))
  2069. local efwel = it("Weld")
  2070. efwel.Parent = effectsg
  2071. efwel.Part0 = effectsg
  2072. efwel.Part1 = hit2
  2073. efwel.Parent = nil
  2074. effectsg.Anchored = true
  2075. --local HitPos = effectsg.Position + cf(newpos,pos).lookVector*0.75
  2076. --local HitPos = prt1.Position + cf(newpos,pos).lookVector*0.75
  2077. local HitPos = Prt4.Position + (Head.CFrame.lookVector * .5)
  2078. local CJ = cf(HitPos)
  2079. local C0 = effectsg.CFrame:inverse() * CJ
  2080. local C1 = hit2.CFrame:inverse() * CJ
  2081. --efwel.C0 = C0
  2082. --efwel.C1 = C1
  2083. --efwel.Parent = effectsg
  2084. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  2085. hum = hit2.Parent.Humanoid
  2086. attackdebounce=false
  2087. Damagefunc1(hit2,math.floor(Damg),0.1)
  2088. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  2089. hum = hit2.Parent.Parent.Humanoid
  2090. attackdebounce=false
  2091. Damagefunc1(hum,math.floor(Damg),0.1)
  2092. end
  2093. end
  2094. end))
  2095. end
  2096. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  2097. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2098. end
  2099. hold = false
  2100. function ob1d(mouse)
  2101. hold=true
  2102. sonicing=true
  2103. end
  2104. function ob1u(mouse)
  2105. hold = false
  2106. sonicing=false
  2107. end
  2108. buttonhold = false
  2109. function Key(key,mouse)
  2110. if attack == true then return end
  2111. if key=="g" then
  2112. Taunt1()
  2113. end
  2114. if key=="h" then
  2115. JetBoard()
  2116. end
  2117. if key=="z" then
  2118. if combo==0 then
  2119. combo=1
  2120. Slash1()
  2121. coroutine.resume(coroutine.create(function()
  2122. wait(1)
  2123. if attack==false then
  2124. combo=0
  2125. end
  2126. end))
  2127. elseif combo==1 then
  2128. combo=2
  2129. Slash2()
  2130. coroutine.resume(coroutine.create(function()
  2131. wait(1)
  2132. if attack==false then
  2133. combo=0
  2134. end
  2135. end))
  2136. elseif combo==2 then
  2137. combo=3
  2138. Slash3()
  2139. coroutine.resume(coroutine.create(function()
  2140. wait(1)
  2141. if attack==false then
  2142. combo=0
  2143. end
  2144. end))
  2145. elseif combo==3 then
  2146. combo=0
  2147. end
  2148. end
  2149. if key=="x" then
  2150. if combo==0 then
  2151. combo=1
  2152. Magic1()
  2153. coroutine.resume(coroutine.create(function()
  2154. wait(1)
  2155. if attack==false then
  2156. combo=0
  2157. end
  2158. end))
  2159. elseif combo==1 then
  2160. combo=2
  2161. Magic2()
  2162. coroutine.resume(coroutine.create(function()
  2163. wait(1)
  2164. if attack==false then
  2165. combo=0
  2166. end
  2167. end))
  2168. elseif combo==2 then
  2169. combo=3
  2170. Magic3()
  2171. coroutine.resume(coroutine.create(function()
  2172. wait(1)
  2173. if attack==false then
  2174. combo=0
  2175. end
  2176. end))
  2177. elseif combo==3 then
  2178. combo=0
  2179. end
  2180. end
  2181. --attack=true
  2182. Stance()
  2183. if attack==false then
  2184. pcall(function() act.key[key:lower()] = true end)
  2185. local kk = key:lower()
  2186. coroutine.resume(coroutine.create(function()
  2187. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  2188. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  2189. wait()
  2190. end
  2191. walking = false
  2192. end
  2193. end))
  2194. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  2195. if walking == true then return end
  2196. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  2197. Walking()
  2198. dodging=false
  2199. Stance()
  2200. wait()
  2201. end
  2202. walking = false
  2203. wait(0.1)
  2204. Stance()
  2205. end
  2206. end
  2207. attack=false
  2208. end
  2209. function Key2(key,mouse)
  2210. pcall(function() act.key[key:lower()] = false end)
  2211. walking=false
  2212. end
  2213. function s(mouse)
  2214. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2215. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2216. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  2217. --mouse.KeyDown:connect(key2)
  2218. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  2219. mouse.KeyUp:connect(function(k) act.keydown = false
  2220. pcall(function() act.key[k:lower()] = false end)
  2221. hold = false
  2222. end)
  2223. MMouse = mouse
  2224. sheathed = false
  2225. player = Player
  2226. ch = Character
  2227. RSH = ch.Torso["Right Shoulder"]
  2228. LSH = ch.Torso["Left Shoulder"]
  2229. RHP = ch.Torso["Right Hip"]
  2230. LHP = ch.Torso["Left Hip"]
  2231. --
  2232. RSH.Parent = nil
  2233. LSH.Parent = nil
  2234. --[[RHP.C0 = cf(-0.5, -1.5, 0) * euler(0,0,0)
  2235. RHP.C1 = cf(0, 0.5, 0)
  2236. LHP.C0 = cf(0.5, -1.5, 0) * euler(0,0,0)
  2237. LHP.C1 = cf(0, 0.5, 0) ]]
  2238. --
  2239. RW.Part0 = ch.Torso
  2240. RW.C0 = cf(1.5, 0.5, 0) --* euler(1.3, 0, -0.5)
  2241. RW.C1 = cf(0, 0.5, 0)
  2242. RW.Part1 = ch["Right Arm"]
  2243. RW.Parent = ch.Torso
  2244. --_G.R = RW
  2245. --
  2246. LW.Part0 = ch.Torso
  2247. LW.C0 = cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
  2248. LW.C1 = cf(0, 0.5, 0)
  2249. LW.Part1 = ch["Left Arm"]
  2250. LW.Parent = ch.Torso
  2251. --_G.L = LW
  2252. --
  2253. --[[RW2.Part0 = ch.Torso
  2254. RW2.C0 = cf(0.5, -1.5, 0) --* euler(1.7, 0, 0.8)
  2255. RW2.C1 = cf(0, 0.5, 0)
  2256. RW2.Part1 = ch["Right Leg"]
  2257. RW2.Parent = ch.Torso
  2258. --_G.L = LW
  2259. --
  2260. LW2.Part0 = ch.Torso
  2261. LW2.C0 = cf(-0.5, -1.5, 0) --* euler(1.7, 0, 0.8)
  2262. LW2.C1 = cf(0, 0.5, 0)
  2263. LW2.Part1 = ch["Left Leg"]
  2264. LW2.Parent = ch.Torso
  2265. --_G.L = LW
  2266. -- ]]
  2267. equipanim(mouse)
  2268. end
  2269. function ds(mouse)
  2270. sheathed = true
  2271. guardy = false
  2272. walking = nil
  2273. Character.Humanoid.WalkSpeed = 16
  2274. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  2275. hideanim()
  2276. RW.Parent = nil
  2277. LW.Parent = nil
  2278. RSH.Parent = player.Character.Torso
  2279. LSH.Parent = player.Character.Torso
  2280. end
  2281. Bin.Selected:connect(s)
  2282. Bin.Deselected:connect(ds)
  2283. increase=0
  2284. while true do
  2285. wait()
  2286. bg.P = 15000
  2287. while sonicing==false do
  2288. wait()
  2289. end
  2290. while sonicing==true do
  2291. wait(0.05)
  2292. EVENMOARMAGIX(Prt13,2,2,2,0,0,0,0,0,0,BrickColor.new("Bright blue"))
  2293. end
  2294. end
  2295. -- lego mediafire This acts as a chat filter. Don't ask why I do it. I just do >.>
  2296. --[[
  2297. Copyrighted (C) Fenrier 2012
  2298. This script is copyrighted for Fenrier. Any use of this script is breaking
  2299. this copyright.
  2300. All Rights Reserved.
  2301. ]]
  2302. ----------------------------------------------------mediafire--------------------------------------------------------------------------------------------------
  2303. Player = game:GetService("Players").LocalPlayer
  2304. Character = Player.Character
  2305. PlayerGui = Player.PlayerGui
  2306. Backpack = Player.Backpack
  2307. Torso = Character.Torso
  2308. Head = Character.Head
  2309. Humanoid = Character.Humanoid
  2310. LeftArm = Character["Left Arm"]
  2311. LeftLeg = Character["Left Leg"]
  2312. RightArm = Character["Right Arm"]
  2313. RightLeg = Character["Right Leg"]
  2314. LS = Torso["Left Shoulder"]
  2315. LH = Torso["Left Hip"]
  2316. RS = Torso["Right Shoulder"]
  2317. RH = Torso["Right Hip"]
  2318. it=Instance.new
  2319. vt=Vector3.new
  2320. cf=CFrame.new
  2321. euler=CFrame.fromEulerAnglesXYZ
  2322. angles=CFrame.Angles
  2323. attack = false
  2324. attackdebounce = false
  2325. attacktype = 1
  2326. combo = 0
  2327. damage = 3
  2328. oridamage = 3
  2329. walkdebounce = false
  2330. sheathed = true
  2331. act = {key = {}}
  2332. walking = false
  2333. hold=false
  2334. MMouse=nil
  2335. equipped=false
  2336. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2337. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2338. con1=nil
  2339. con2=nil
  2340. con3=nil
  2341. mana=400
  2342. offset=nil
  2343. sonicing=false
  2344. newpos2=nil
  2345. modee=0
  2346. comboing=false
  2347. combo=0
  2348. drivemode=false
  2349. --player
  2350. player = nil
  2351. --save shoulders
  2352. RSH, LSH = nil, nil
  2353. --welds
  2354. RW, LW = it("Weld"), it("Weld")
  2355. RW2, LW2 = it("Weld"), it("Weld")
  2356. --what anim
  2357. anim = "none"
  2358. --[[
  2359. if Character:findFirstChild("SonicDriv",true) ~= nil then
  2360. Character:findFirstChild("SonicDriv",true).Parent = nil
  2361. end
  2362. ]]
  2363. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  2364. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  2365. end
  2366. --[[
  2367. if Player.userId~=209911 and Player.userId~=17613036 then
  2368. script.Parent = Character
  2369. local h = it("Hint")
  2370. h.Parent = workspace
  2371. h.Text = "UR NOT FEN!"
  2372. wait(1)
  2373. h.Text = "U MUST DAI!!"
  2374. wait(0.5)
  2375. if Character:findFirstChild("ForceField") ~= nil then
  2376. Character:findFirstChild("ForceField").Parent = nil
  2377. end
  2378. Character:BreakJoints()
  2379. local m = it("Explosion")
  2380. m.Parent = workspace
  2381. m.Position = Torso.Position
  2382. wait(3)
  2383. h.Parent = nil
  2384. script.Parent = nil
  2385. wait(9001)
  2386. while true do
  2387. wait()
  2388. end
  2389. end
  2390. ]]
  2391. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2392. local fp = it("Part")
  2393. fp.formFactor = formfactor
  2394. fp.Parent = parent
  2395. fp.Reflectance = reflectance
  2396. fp.Transparency = transparency
  2397. fp.CanCollide = false
  2398. fp.BrickColor = brickcolor
  2399. fp.Name = name
  2400. fp.Size = size
  2401. fp.Position = Torso.Position
  2402. fp.BottomSurface="Smooth"
  2403. fp.TopSurface="Smooth"
  2404. fp:BreakJoints()
  2405. return fp
  2406. end
  2407. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2408. local mesh = it(Mesh)
  2409. mesh.Parent = part
  2410. if Mesh=="SpecialMesh" then
  2411. mesh.MeshType = meshtype
  2412. mesh.MeshId = meshid
  2413. end
  2414. mesh.Offset=offset
  2415. mesh.Scale=scale
  2416. return mesh
  2417. end
  2418. function weld(parent,part0,part1,c0)
  2419. local weld = it("Weld")
  2420. weld.Parent = parent
  2421. weld.Part0 = part0
  2422. weld.Part1 = part1
  2423. weld.C0 = c0
  2424. return weld
  2425. end
  2426. Ballprt=part(1,nil,0,1,BrickColor.new("Black"),"Ball",vt(3,3,3))
  2427. Ballmsh=mesh("SpecialMesh",Ballprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  2428. Ballwld=weld(Ballprt,Ballprt,Prt4,cf(0,0,0))
  2429. --local Main=game.workspace.CurrentCamera.Weapon:Clone()
  2430. Main.Parent=nil
  2431. local c = Main:children()
  2432. for i=1,#c do
  2433. if c[i].className=="Part" then
  2434. c[i].Anchored=false
  2435. c[i].Transparency=0
  2436. end
  2437. end
  2438. local Main=it("Model")
  2439. Main.Parent=Character
  2440. Main.Name="Weapon"
  2441. --print(Main.Parent)
  2442. --local Main=game.workspace.CurrentCamera.SonicDriv:Clone()
  2443. Main.Parent=Character
  2444. local c = Main:children()
  2445. for i=1,#c do
  2446. if c[i].className=="Part" then
  2447. c[i].Anchored=false
  2448. c[i].Transparency=0
  2449. end
  2450. end
  2451. Prt1=Main.Part1
  2452. Prt2=Main.Part2
  2453. Prt3=Main.Part3
  2454. Prt4=Main.Part4
  2455. Prt5=Main.Part5
  2456. Prt6=Main.Part6
  2457. Prt7=Main.Part7
  2458. Prt8=Main.Part8
  2459. Prt9=Main.Part9
  2460. Prt10=Main.Part10
  2461. Prt11=Main.Part11
  2462. Prt12=Main.Part12
  2463. Prt13=Main.Part13
  2464. count=0
  2465. for i=1,6 do
  2466. Part=part(1,Main,0,0,BrickColor.new("Navy blue"),"Part",vt(1,1,1))
  2467. Mesh=mesh("BlockMesh",Part,"","",vt(0,0,0),vt(0.1,0.4,0.1))
  2468. Weld=weld(Main,Part,Prt11,cf(0.15,-0.15,0)*euler(0,count,0))
  2469. count=count+1.05
  2470. end
  2471. count=0
  2472. for i=1,6 do
  2473. Part=part(1,Main,0,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  2474. Mesh=mesh("BlockMesh",Part,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  2475. Weld=weld(Main,Part,Prt10,cf(0.15,-0.15,0)*euler(0,count+0.5,0))
  2476. count=count+1.05
  2477. end
  2478. count=0
  2479. for i=1,6 do
  2480. Part=part(1,Main,0,0,BrickColor.new("Navy blue"),"Part",vt(1,1,1))
  2481. Mesh=mesh("BlockMesh",Part,"","",vt(0,0,0),vt(0.05,0.2,0.05))
  2482. Weld=weld(Main,Part,Prt12,euler(0,0,0)*cf(0.1,-0.15,0)*euler(0,count,0))
  2483. count=count+1.05
  2484. coroutine.resume(coroutine.create(function(Derpweld,numb,part)
  2485. while true do
  2486. wait()
  2487. if drivemode==false then
  2488. Derpweld=weld(Main,part,Prt12,euler(0,0,0)*cf(0.1,-0.15,0)*euler(0,numb,0))
  2489. end
  2490. if drivemode==true then
  2491. Derpweld=weld(Main,part,Prt12,euler(0,0,-0.5)*cf(0.2,-0.17,0)*euler(0,numb,0))
  2492. end
  2493. end
  2494. end),Weld,count,Part)
  2495. end
  2496. Msh1=Prt1.Mesh
  2497. Msh2=Prt2.Mesh
  2498. Msh3=Prt3.Mesh
  2499. Msh4=Prt4.Mesh
  2500. Msh5=Prt5.Mesh
  2501. Msh6=Prt6.Mesh
  2502. Msh7=Prt7.Mesh
  2503. Msh8=Prt8.Mesh
  2504. Msh9=Prt9.Mesh
  2505. Msh10=Prt10.Mesh
  2506. Msh11=Prt11.Mesh
  2507. Msh12=Prt12.Mesh
  2508. Msh13=Prt13.Mesh
  2509. Wld1=weld(Main,Prt1,LeftLeg,euler(0,0,2)*cf(1,-0.8,-0.4))
  2510. Wld2=weld(Main,Prt2,Prt1,euler(0,0,0)*cf(0,0,0))
  2511. Wld3=weld(Main,Prt3,Prt1,euler(0,0,0)*cf(0,0.4,0))
  2512. Wld4=weld(Main,Prt4,Prt1,euler(0,0,0)*cf(0,0.6,0))
  2513. Wld5=weld(Main,Prt5,Prt1,euler(3.14,0,0)*cf(0,0.8,0))
  2514. Wld6=weld(Main,Prt6,Prt1,euler(3.14,1.57,0)*cf(0,0.8,0))
  2515. Wld7=weld(Main,Prt7,Prt1,euler(0,0,0)*cf(0,-0.5,0))
  2516. Wld8=weld(Main,Prt8,Prt1,euler(0,0,0)*cf(0,-0.6,0))
  2517. Wld9=weld(Main,Prt9,Prt1,euler(0,0,0)*cf(0,-0.7,0))
  2518. Wld10=weld(Main,Prt10,Prt9,euler(0,0,0)*cf(0,-0.3,0))
  2519. Wld11=weld(Main,Prt11,Prt9,euler(0,0,0)*cf(0,-0.3,0))
  2520. Wld12=weld(Main,Prt12,Prt11,euler(0,0,0)*cf(0,-0.4,0))
  2521. Wld13=weld(Main,Prt13,Prt12,euler(0,0,0)*cf(0,-0.2,0))
  2522. local Board=it("Model")
  2523. Board.Parent=nil
  2524. Board.Name="Jet Board"
  2525. BPrt1=part(1,Board,0,0,BrickColor.new("Black"),"Part1",vt(1,1,1))
  2526. BPrt2=part(1,Board,0,0,BrickColor.new("Black"),"Part2",vt(1,1,1))
  2527. BPrt3=part(1,Board,0,0,BrickColor.new("Black"),"Part3",vt(1,1,1))
  2528. BPrt4=part(1,Board,0,0,BrickColor.new("Black"),"Part4",vt(1,1,1))
  2529. BPrt5=part(1,Board,0,0,BrickColor.new("Black"),"Part5",vt(1,1,1))
  2530. BPrt6=part(1,Board,0,0,BrickColor.new("Navy blue"),"Part6",vt(1,1,1))
  2531. BPrt7=part(1,Board,0,0,BrickColor.new("Navy blue"),"Part7",vt(1,1,1))
  2532. BPrt8=part(1,Board,0,0,BrickColor.new("Navy blue"),"Part8",vt(1,1,1))
  2533. BPrt9=part(1,Board,0,0,BrickColor.new("Black"),"Part9",vt(1,1,1))
  2534. BPrt10=part(1,Board,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
  2535. BPrt11=part(1,Board,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  2536. BPrt12=part(1,Board,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
  2537. BMsh1=mesh("BlockMesh",BPrt1,"","",vt(0,0,0),vt(4,0.7,5))
  2538. BMsh2=mesh("SpecialMesh",BPrt2,"Wedge","",vt(0,0,0),vt(0.85,1.57,2))
  2539. BMsh3=mesh("SpecialMesh",BPrt3,"Wedge","",vt(0,0,0),vt(0.85,1.57,2))
  2540. BMsh4=mesh("BlockMesh",BPrt4,"","",vt(0,0,0),vt(0.35,0.7,2))
  2541. BMsh5=mesh("CylinderMesh",BPrt5,"","",vt(0,0,0),vt(0.4,0.7,0.4))
  2542. BMsh6=mesh("BlockMesh",BPrt6,"","",vt(0,0,0),vt(3.5,0.71,4.5))
  2543. BMsh7=mesh("SpecialMesh",BPrt7,"Wedge","",vt(0,0,0),vt(0.86,1.07,1.5))
  2544. BMsh8=mesh("SpecialMesh",BPrt8,"Wedge","",vt(0,0,0),vt(0.86,1.07,1.5))
  2545. BMsh9=mesh("CylinderMesh",BPrt9,"","",vt(0,0,0),vt(1.5,2,1.5))
  2546. BMsh10=mesh("CylinderMesh",BPrt10,"","",vt(0,0,0),vt(1.2,2,1.2))
  2547. BMsh11=mesh("CylinderMesh",BPrt11,"","",vt(0,0,0),vt(1.5,2,1.5))
  2548. BMsh12=mesh("CylinderMesh",BPrt12,"","",vt(0,0,0),vt(1.2,2,1.2))
  2549. BWld1=weld(Board,BPrt1,Head,euler(0,0,0)*cf(0,2,5))
  2550. BWld2=weld(Board,BPrt2,BPrt1,euler(0,0,1.57)*cf(-1.1,0,3.5))
  2551. BWld3=weld(Board,BPrt3,BPrt1,euler(0,0,-1.57)*cf(1.1,0,3.5))
  2552. BWld4=weld(Board,BPrt4,BPrt1,euler(0,0,0)*cf(0,0,3.5))
  2553. BWld5=weld(Board,BPrt5,BPrt1,euler(0,0,0)*cf(0,0,4.35))
  2554. BWld6=weld(Board,BPrt6,BPrt1,euler(0,0,0)*cf(0,0,0))
  2555. BWld7=weld(Board,BPrt7,BPrt1,euler(0,0,1.57)*cf(-0.8,0,3))
  2556. BWld8=weld(Board,BPrt8,BPrt1,euler(0,0,-1.57)*cf(0.8,0,3))
  2557. BWld9=weld(Board,BPrt9,BPrt1,euler(1.57,0,0)*cf(1.2,1,-0.8))
  2558. BWld10=weld(Board,BPrt10,BPrt9,euler(0,0,0)*cf(0,0.01,0))
  2559. BWld11=weld(Board,BPrt11,BPrt1,euler(1.57,0,0)*cf(-1.2,1,-0.8))
  2560. BWld12=weld(Board,BPrt12,BPrt11,euler(0,0,0)*cf(0,0.01,0))
  2561. local fengui = it("GuiMain")
  2562. fengui.Parent = Player.PlayerGui
  2563. fengui.Name = "manaGUI"
  2564. local fenframe = it("Frame")
  2565. fenframe.Parent = fengui
  2566. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  2567. fenframe.BackgroundTransparency = 1
  2568. fenframe.BorderColor3 = Color3.new(17,17,17)
  2569. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  2570. local fentext = it("TextLabel")
  2571. fentext.Parent = fenframe
  2572. fentext.Text = "Mana("..mana..")"
  2573. fentext.BackgroundTransparency = 1
  2574. fentext.SizeConstraint = "RelativeXY"
  2575. fentext.TextXAlignment = "Center"
  2576. fentext.TextYAlignment = "Center"
  2577. fentext.Position = UDim2.new(0,80,1,200)
  2578. local fentext2 = it("TextLabel")
  2579. fentext2.Parent = fenframe
  2580. fentext2.Text = " "
  2581. fentext2.BackgroundTransparency = 0
  2582. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  2583. fentext2.SizeConstraint = "RelativeXY"
  2584. fentext2.TextXAlignment = "Center"
  2585. fentext2.TextYAlignment = "Center"
  2586. fentext2.Position = UDim2.new(0,10,1,170)
  2587. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  2588. local fentext3 = it("TextLabel")
  2589. fentext3.Parent = fenframe
  2590. fentext3.Text = " "
  2591. fentext3.BackgroundTransparency = 0
  2592. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  2593. fentext3.SizeConstraint = "RelativeXY"
  2594. fentext3.TextXAlignment = "Center"
  2595. fentext3.TextYAlignment = "Center"
  2596. fentext3.Position = UDim2.new(0,10,1,170)
  2597. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  2598. local bg = it("BodyGyro")
  2599. bg.Parent = nil
  2600. local bg2=it("BodyGyro")
  2601. if (script.Parent.className ~= "HopperBin") then
  2602. Tool = it("HopperBin")
  2603. Tool.Parent = Backpack
  2604. Tool.Name = "Sonic Driver"
  2605. script.Parent = Tool
  2606. end
  2607. Bin = script.Parent
  2608. function unequipweld()
  2609. Wld1.Part1=LeftLeg
  2610. Wld1.C0=euler(0,0,2)*cf(1,-0.8,-0.4)
  2611. Wld11.C0=euler(0,0,0)*cf(0,-0.3,0)
  2612. end
  2613. function equipweld()
  2614. Wld1.Parent=Main
  2615. Wld1.Part1=LeftArm
  2616. Wld1.C0=euler(2,0,0)*cf(0,1.2,0)
  2617. end
  2618. function hideanim()
  2619. equipped = false
  2620. bg.Parent=nil
  2621. drivemode=false
  2622. unequipweld()
  2623. --[[for i = 0 , 1 , 0.1 do
  2624. wait(0)
  2625. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  2626. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,0)
  2627. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2628. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  2629. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2630. end ]]
  2631. wait(0.1)
  2632. Torso.Neck.C0=necko*euler(0,0,0)
  2633. end
  2634. function equipanim(mouse)
  2635. equipped = true
  2636. for i = 0,1,0.1 do
  2637. wait()
  2638. Torso.Neck.C0=necko*euler(0.5*i,0,0.5*i)
  2639. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3*i,-1.57*i,0)
  2640. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2641. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  2642. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2643. end
  2644. equipweld()
  2645. for i = 0,1,0.1 do
  2646. wait()
  2647. Wld1.C0=euler(2,0,0)*cf(0,1.2-0.3*i,0)
  2648. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+0.9*i,-1.57+1.7*i,0)
  2649. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2650. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  2651. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2652. end
  2653. wait(0.2)
  2654. for i = 0,1,0.2 do
  2655. wait()
  2656. Torso.Neck.C0=necko*euler(0.5+0.2*i,0,0.5)
  2657. Wld1.C0=euler(2,0,0)*cf(0,0.9,0)
  2658. Wld11.C0=euler(0,0,0)*cf(0,-0.3-0.3*i,0)
  2659. LW.C0 = cf(-1.5,0.5,0) * euler(0.6-0.5*i,0.13+0.07*i,0)
  2660. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2661. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  2662. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2663. end
  2664. drivemode=true
  2665. wait(0.2)
  2666. Torso.Neck.C0=necko*euler(0,0,0)
  2667. Stance()
  2668. end
  2669. function Stance()
  2670. coroutine.resume(coroutine.create(function()
  2671. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  2672. bg.P = 15000
  2673. bg.Parent = Torso
  2674. while equipped==true and walking==false and attack==false do
  2675. wait()
  2676. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2677. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  2678. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  2679. offset=offset/mag
  2680. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1,0)
  2681. bg.Parent = Torso
  2682. --Torso.Neck.C0=necko*euler(0,offset,0)*euler(0,0,1)
  2683. Torso.Neck.C0=necko*euler(0,0,1)
  2684. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2685. Wld1.C0=euler(2,0,0)*cf(0,0.9,0)
  2686. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5)
  2687. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2688. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2689. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2690. end
  2691. Torso.Neck.C0=necko*euler(0,0,0)
  2692. bg.Parent=nil
  2693. end))
  2694. end
  2695. function Walking()
  2696. if attack==false then
  2697. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5)
  2698. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2699. RW.C0 = cf(1.5,0.5,0) * euler(-0.5,0,0.5)
  2700. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2701. end
  2702. walking=true
  2703. end
  2704. function Slash1()
  2705. attack=true
  2706. for i=0,1,0.1 do
  2707. wait()
  2708. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2709. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  2710. bg.Parent = Torso
  2711. Wld1.C0=euler(2+1.14*i,0,0)*cf(0,0.9,0)
  2712. LW.C0 = cf(-1.5,0.5,0) * euler(1.57*i,0,-0.5+1.5*i)
  2713. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2714. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2715. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2716. end
  2717. sonicing=true
  2718. Ballprt.Parent=Main
  2719. Ballwld.Parent=Main
  2720. Ballwld.Part1=Prt13
  2721. Ballwld.C0=cf(0,-5,0)
  2722. Stun2(Ballprt,0,0,0,BrickColor.new("Navy blue"))
  2723. con1=Ballprt.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  2724. for i=0,1,0.2 do
  2725. wait()
  2726. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  2727. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  2728. offset=offset/mag
  2729. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2730. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  2731. bg.Parent = Torso
  2732. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2733. LW.C0 = cf(-1.5,0.5,0) * euler(1.57-offset,0,1-2.5*i)
  2734. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2735. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2736. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2737. end
  2738. sonicing=false
  2739. lightning=false
  2740. con1:disconnect()
  2741. wait(0.2)
  2742. Ballprt.Parent=nil
  2743. attack=false
  2744. end
  2745. function Slash2()
  2746. attack=true
  2747. for i=0,1,0.1 do
  2748. wait()
  2749. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2750. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  2751. bg.Parent = Torso
  2752. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2753. LW.C0 = cf(-1.5,0.5,0) * euler(1.57+1.57*i,0,-2+2*i)
  2754. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2755. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2756. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2757. end
  2758. sonicing=true
  2759. Ballprt.Parent=Main
  2760. Ballwld.Parent=Main
  2761. Ballwld.Part1=Prt13
  2762. Ballwld.C0=cf(0,-5,0)
  2763. Stun2(Ballprt,0,0,0,BrickColor.new("Navy blue"))
  2764. con1=Ballprt.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  2765. for i=0,1,0.1 do
  2766. wait()
  2767. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2768. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  2769. bg.Parent = Torso
  2770. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2771. LW.C0 = cf(-1.5,0.5,0) * euler(3.14-3.14*i,0,0)
  2772. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2773. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2774. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2775. end
  2776. sonicing=false
  2777. lightning=false
  2778. con1:disconnect()
  2779. wait(0.2)
  2780. Ballprt.Parent=nil
  2781. attack=false
  2782. end
  2783. function Slash3()
  2784. attack=true
  2785. for i=0,1,0.1 do
  2786. wait()
  2787. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2788. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  2789. bg.Parent = Torso
  2790. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2791. LW.C0 = cf(-1.5,0.5,0) * euler(1.57*i,0,-1.57*i)
  2792. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2793. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2794. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2795. end
  2796. sonicing=true
  2797. Ballprt.Parent=Main
  2798. Ballwld.Parent=Main
  2799. Ballwld.Part1=Prt13
  2800. Ballwld.C0=cf(0,-5,0)
  2801. Stun2(Ballprt,0,0,0,BrickColor.new("Navy blue"))
  2802. con1=Ballprt.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  2803. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2804. for i=0,1,0.1 do
  2805. wait()
  2806. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,6.28*i,0)
  2807. bg.Parent = Torso
  2808. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2809. LW.C0 = cf(-1.5,0.5,0) * euler(1.57-1*i,0,-1.57-1*i)
  2810. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2811. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2812. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2813. end
  2814. wait(0.1)
  2815. for i=0,1,0.1 do
  2816. wait()
  2817. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  2818. bg.Parent = Torso
  2819. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2820. LW.C0 = cf(-1.5,0.5,0) * euler(0.57+1*i,0,-2.57+3*i)
  2821. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2822. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2823. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2824. end
  2825. sonicing=false
  2826. lightning=false
  2827. con1:disconnect()
  2828. wait(0.2)
  2829. Ballprt.Parent=nil
  2830. attack=false
  2831. end
  2832. function Magic1()
  2833. attack=true
  2834. for i=0,1,0.1 do
  2835. wait()
  2836. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2837. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  2838. bg.Parent = Torso
  2839. Torso.Neck.C0=necko*euler(0,0,1.57)
  2840. Wld1.C0=euler(2+1.14*i,0,0)*cf(0,0.9,0)
  2841. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5-1.07*i)
  2842. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2843. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2844. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2845. end
  2846. sonicing=true
  2847. Ballprt.Parent=Main
  2848. Ballwld.Parent=Main
  2849. Ballwld.Part1=Prt13
  2850. Ballwld.C0=cf(0,-10,0)
  2851. con1=Ballprt.Touched:connect(function(hit) DOH(hit,20,0) end)
  2852. for i=0,4,0.1 do
  2853. wait()
  2854. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  2855. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  2856. offset=offset/mag
  2857. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2858. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  2859. bg.Parent = Torso
  2860. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  2861. LW.C1 = cf(0, 0.5, 0) * euler(0,0,-offset)
  2862. MMMAGIC(Ballprt,4,4,4,0,0,0,BrickColor.new("Black"))
  2863. end
  2864. sonicing=false
  2865. con1:disconnect()
  2866. wait(0.2)
  2867. Ballprt.Parent=nil
  2868. attack=false
  2869. end
  2870. function Magic2()
  2871. attack=true
  2872. for i=0,1,0.1 do
  2873. wait()
  2874. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2875. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  2876. bg.Parent = Torso
  2877. Torso.Neck.C0=necko*euler(0,0,1.57)
  2878. Wld1.C0=euler(2+1.14*i,0,0)*cf(0,0.9,0)
  2879. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  2880. LW.C1 = cf(0, 0.5, 0) * euler(0,0,1.57*i)
  2881. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2882. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2883. end
  2884. sonicing=true
  2885. coroutine.resume(coroutine.create(function()
  2886. derpprt=part(1,workspace,0,1,BrickColor.new("Black"),"Derp",vt(1,1,1))
  2887. derpprt.CFrame=Head.CFrame
  2888. derpprt.Anchored=true
  2889. count=0
  2890. for i=0,3,0.1 do
  2891. wait()
  2892. EVENMOARMAGIX(derpprt,4,15,4,0,-4,-5-count,0,0,0,BrickColor.new("Navy blue"))
  2893. count=count+2.5
  2894. local testbrick = it("Part")
  2895. testbrick.Parent = workspace
  2896. testbrick.Anchored = true
  2897. testbrick.Transparency = 0
  2898. testbrick.CFrame = derpprt.CFrame * cf(0,0,-5-count)
  2899. coroutine.resume(coroutine.create(function()
  2900. local c = game.Workspace:GetChildren();
  2901. for i = 1, #c do
  2902. local hum = c[i]:findFirstChild("Humanoid")
  2903. if hum ~= nil and hum.Health ~= 0 then
  2904. local head = c[i]:findFirstChild("Head");
  2905. if head ~= nil then
  2906. local targ = head.Position - testbrick.Position;
  2907. local mag = targ.magnitude;
  2908. if mag <= 5 and c[i].Name ~= Player.Name then
  2909. Damagefunc1(head,math.floor(10),0.1)
  2910. end
  2911. end
  2912. end
  2913. end
  2914. end))
  2915. coroutine.resume(coroutine.create(function(Part)
  2916. Part.Parent = nil
  2917. end),testbrick)
  2918. end
  2919. derpprt.Parent=nil
  2920. end))
  2921. wait(0.5)
  2922. sonicing=false
  2923. wait(0.5)
  2924. attack=false
  2925. end
  2926. function Magic3()
  2927. attack=true
  2928. sonicing=true
  2929. for i=0,1,0.1 do
  2930. wait()
  2931. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  2932. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,-1.57,0)
  2933. bg.Parent = Torso
  2934. Torso.Neck.C0=necko*euler(0,0,1.57)
  2935. Wld1.C0=euler(3.14,0,0)*cf(0,0.9,0)
  2936. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-1.57)
  2937. LW.C1 = cf(0, 0.5, 0) * euler(0,0,1.57-1.57*i)
  2938. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  2939. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  2940. end
  2941. Ballprt.Parent=Main
  2942. Ballwld.Parent=Main
  2943. Ballwld.Part1=Prt13
  2944. Ballwld.C0=cf(0,-10,0)
  2945. numb=math.random(-50,50)
  2946. EVENMOARMAGIX2(Ballprt.CFrame,3,3,3,0,0,0,0,0,0,BrickColor.new("Black"))
  2947. WaveEffect2(Ballprt.CFrame,7,7,7,0,0,0,numb,1,0,BrickColor.new("Black"))
  2948. WaveEffect2(Ballprt.CFrame,7,7,7,0,0,0,-numb,-1,0,BrickColor.new("Black"))
  2949. local c = game.Workspace:GetChildren();
  2950. for i = 1, #c do
  2951. local hum = c[i]:findFirstChild("Humanoid")
  2952. if hum ~= nil and hum.Health ~= 0 then
  2953. local head = c[i]:findFirstChild("Head");
  2954. if head ~= nil then
  2955. local targ = head.Position - Ballprt.Position;
  2956. local mag = targ.magnitude;
  2957. if mag <= 15 and c[i].Name ~= Player.Name then
  2958. attackdebounce=false
  2959. Damagefunc2(head,20,0.1,Ballprt.Position)
  2960. end
  2961. end
  2962. end
  2963. end
  2964. wait()
  2965. sonicing=false
  2966. wait(1)
  2967. Ballprt.Parent=nil
  2968. attack=false
  2969. end
  2970. function JetBoard()
  2971. attack=true
  2972. local GUI = Instance.new("BillboardGui")
  2973. GUI.Adornee = Torso
  2974. GUI.Parent = Torso
  2975. GUI.Active = true
  2976. GUI.Enabled = true
  2977. GUI.Size = UDim2.new(0,0,0,0)
  2978. GUI.StudsOffset = Vector3.new(1, 5, 0)
  2979. GUI.Name="SylladexCardGui"
  2980. local Chat = Instance.new("TextBox")
  2981. Chat.Parent = GUI
  2982. Chat.FontSize = "Size12"
  2983. Chat.BackgroundColor3=Color3.new(0,0,0.4)
  2984. Chat.Position = UDim2.new(0, 0, 0, 0)
  2985. Chat.Size = UDim2.new(2,0,2,0)
  2986. Chat.Visible = true
  2987. Chat.Text = " "
  2988. local Chat = Instance.new("TextBox")
  2989. Chat.Parent = GUI
  2990. Chat.FontSize = "Size12"
  2991. Chat.BackgroundColor3=Color3.new(0,0,0.4)
  2992. Chat.Position = UDim2.new(0, 0, -0.3, 0)
  2993. Chat.Size = UDim2.new(1.5,0,2,0)
  2994. Chat.Visible = true
  2995. Chat.Text = " "
  2996. local Chat = Instance.new("TextBox")
  2997. Chat.Parent = GUI
  2998. Chat.FontSize = "Size12"
  2999. Chat.BackgroundColor3=Color3.new(0,0,0.4)
  3000. Chat.Position = UDim2.new(0, 0, -0.6, 0)
  3001. Chat.Size = UDim2.new(1,0,2,0)
  3002. Chat.Visible = true
  3003. Chat.Text = " "
  3004. local Chat = Instance.new("TextBox")
  3005. Chat.Parent = GUI
  3006. Chat.FontSize = "Size12"
  3007. Chat.BackgroundColor3=Color3.new(1,1,1)
  3008. Chat.Position = UDim2.new(0.25, 0, 0.25, 0)
  3009. Chat.Size = UDim2.new(1.5,0,1.5,0)
  3010. Chat.Visible = true
  3011. Chat.Text = " "
  3012. local Chat = Instance.new("TextBox")
  3013. Chat.Parent = GUI
  3014. Chat.FontSize = "Size12"
  3015. Chat.BackgroundColor3=Color3.new(1,1,1)
  3016. Chat.Position = UDim2.new(0.25, 0, -0.15, 0)
  3017. Chat.Size = UDim2.new(1,0,1.5,0)
  3018. Chat.Visible = true
  3019. Chat.Text = " "
  3020. local Chat = Instance.new("TextBox")
  3021. Chat.Parent = GUI
  3022. Chat.FontSize = "Size12"
  3023. Chat.BackgroundColor3=Color3.new(1,1,1)
  3024. Chat.Position = UDim2.new(0.25, 0, -0.45, 0)
  3025. Chat.Size = UDim2.new(0.5,0,1.5,0)
  3026. Chat.Visible = true
  3027. Chat.Text = " "
  3028. local Chat = Instance.new("TextBox")
  3029. Chat.Parent = GUI
  3030. Chat.FontSize = "Size12"
  3031. Chat.BackgroundColor3=Color3.new(1,1,1)
  3032. Chat.Position = UDim2.new(0.25, 0, 0.25, 0)
  3033. Chat.Size = UDim2.new(1.5,0,1.5,0)
  3034. Chat.Visible = true
  3035. Chat.Text = " "
  3036. local Chat = Instance.new("ImageLabel")
  3037. Chat.Parent = GUI
  3038. Chat.BackgroundColor3=Color3.new(1,1,1)
  3039. Chat.Position = UDim2.new(0.25, 0, 0.25, 0)
  3040. Chat.Size = UDim2.new(1.5,0,1.5,0)
  3041. Chat.Visible = true
  3042. Chat.Image="http://www.roblox.com/asset/?id=86770725"
  3043. for i=0,1,0.5 do
  3044. wait()
  3045. GUI.Size = UDim2.new(i, 0, i, 0)
  3046. Torso.Neck.C0=necko*euler(0,0,1)
  3047. LW.C0 = cf(-1.5,0.5,0) * euler(0,0,-0.5)
  3048. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3049. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5)
  3050. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3051. end
  3052. wait(1)
  3053. GUI.Parent=nil
  3054. Board.Parent=Main
  3055. BWld1.Parent=Board
  3056. BWld2.Parent=Board
  3057. BWld3.Parent=Board
  3058. BWld4.Parent=Board
  3059. BWld5.Parent=Board
  3060. BWld6.Parent=Board
  3061. BWld7.Parent=Board
  3062. BWld8.Parent=Board
  3063. BWld9.Parent=Board
  3064. BWld10.Parent=Board
  3065. BWld11.Parent=Board
  3066. BWld12.Parent=Board
  3067. wait(2)
  3068. Board.Parent=nil
  3069. attack=false
  3070. end
  3071. function Taunt1()
  3072. attack=true
  3073. wait(0.1)
  3074. Wld1.Part0=Prt8
  3075. Wld1.C0=euler(2,0,0)*cf(0,1.2,0.5)
  3076. local pos4 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  3077. for i=0,1,0.1 do
  3078. wait()
  3079. bg.cframe = CFrame.new(Head.Position,pos4)*euler(0,0,0)
  3080. bg.Parent = Torso
  3081. Torso.Neck.C0=necko*euler(0.5*i,0,1-0.5*i)
  3082. Wld1.C0=euler(2,0,0)*cf(0,1.2,0.5)
  3083. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3*i,0,-0.5+0.5*i)
  3084. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3085. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.5-0.4*i)
  3086. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3087. end
  3088. for i=0,1,0.2 do
  3089. wait()
  3090. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0.5)
  3091. Wld1.C0=euler(2,0,0)*cf(0,1.2,0.5)
  3092. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+1*i,0,0)
  3093. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3094. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1)
  3095. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3096. end
  3097. for i=0,1,0.2 do
  3098. wait()
  3099. Torso.Neck.C0=necko*euler(-0.5*i,0,0.5)
  3100. Wld1.C0=euler(2+4.186*i,0,0)*cf(0,1.2,0.5+1*i)
  3101. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+1+1*i,0,0)
  3102. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3103. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1)
  3104. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3105. end
  3106. for i=0,1,0.2 do
  3107. wait()
  3108. Wld1.C0=euler(2+4.186+4.186*i,0,0)*cf(0,1.2,0.5+1+1*i)
  3109. end
  3110. for i=0,1,0.2 do
  3111. wait()
  3112. Wld1.C0=euler(2+4.186+4.186+4.186*i,0,0)*cf(0,1.2,0.5+1+1-2*i)
  3113. end
  3114. for i=0,1,0.1 do
  3115. wait()
  3116. Torso.Neck.C0=necko*euler(-0.5+1*i,0,0.5)
  3117. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+1+1-2*i,0,0)
  3118. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3119. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1)
  3120. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3121. end
  3122. for i=0,1,0.1 do
  3123. wait()
  3124. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0.5+0.5*i)
  3125. LW.C0 = cf(-1.5,0.5,0) * euler(-0.3+0.3*i,0,-0.5*i)
  3126. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3127. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0.1+0.4*i)
  3128. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  3129. end
  3130. Wld1.C0=euler(2,0,0)*cf(0,0.9,0)
  3131. Wld1.Part0=Prt1
  3132. attack=false
  3133. end
  3134. Stun2=function(Feh,x,y,z,color)
  3135. lightning=true
  3136. coroutine.resume(coroutine.create(function(part,X,Y,Z)
  3137. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  3138. return
  3139. end]]
  3140. Torsoh2=part
  3141. End2=Torsoh2.CFrame+Vector3.new(X/10,Y/10,Z/10)
  3142. ST2=Torsoh2.Position
  3143. --[[ p=Instance.new("BodyPosition")
  3144. p.P=3000
  3145. p.D=100
  3146. p.maxForce=Vector3.new(math.huge,0,math.huge)
  3147. p.position=Torsoh2.Position
  3148. p.Parent=Torsoh2]]
  3149. while part.Parent ~= nil and lightning == true do
  3150. -- f1:Play()
  3151. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  3152. Start2=End2
  3153. End2=Torsoh2.CFrame*CFrame.new(X/10,Y/10,Z/10)
  3154. e=Instance.new("Part")
  3155. e.TopSurface=0
  3156. e.BottomSurface=0
  3157. e.CanCollide=false
  3158. e.Anchored=true
  3159. e.formFactor="Symmetric"
  3160. e.Size=Vector3.new(1,1,1)
  3161. Look2=(End2.p-Start2.p).unit
  3162. m=Instance.new("BlockMesh")
  3163. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  3164. m.Parent=e
  3165. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  3166. -- EVENMOARMAGIX(e,2,2,2,0,0,0,0,0,0,BrickColor.new("Navy blue"))
  3167. WaveEffect(e,0.3,0.3,0.3,0,0,0,1.57,0,0,BrickColor.new("Navy blue"))
  3168. e.Reflectance=.3
  3169. e.Name="Zap"
  3170. e.BrickColor=color
  3171. e.Parent=part.Parent
  3172. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  3173. wait()
  3174. end
  3175. wait(.45)
  3176. -- p.Parent=nil
  3177. end),Feh,x,y,z)
  3178. end
  3179. function slasheffect(cframe,waitin,size)
  3180. coroutine.resume(coroutine.create(function()
  3181. wait(waitin)
  3182. wait()
  3183. e=Instance.new("Part")
  3184. --coneffect=e.Touched:connect(function(hit) Damagefunc1(hit,efdam,1) end)
  3185. e.Name="SlashEffect"
  3186. e.TopSurface=0
  3187. e.BottomSurface=0
  3188. e.formFactor="Symmetric"
  3189. e.Size=Vector3.new(1,1,size)
  3190. e.Anchored=true
  3191. e.BrickColor=BrickColor.new("Black")
  3192. e.Reflectance=0
  3193. e.Transparency=0
  3194. e.CanCollide=false
  3195. m=Instance.new("SpecialMesh")
  3196. m.MeshType="Sphere"
  3197. m.Scale=Vector3.new(.25,.25,1)
  3198. m.Parent=e
  3199. e.CFrame = cframe
  3200. e.Parent=workspace
  3201. print(e.Parent)
  3202. coroutine.resume(coroutine.create(function(m) for i=1, 5 do m.Transparency=i*.2 m.Mesh.Scale=m.Mesh.Scale-Vector3.new(.02,.02,.08)*2 wait() end m.Parent=nil end),e)
  3203. end))
  3204. end
  3205. function ss(pitch)
  3206. local SlashSound = it("Sound")
  3207. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  3208. SlashSound.Parent = workspace
  3209. SlashSound.Volume = .7
  3210. SlashSound.Pitch = pitch
  3211. SlashSound.PlayOnRemove = true
  3212. coroutine.resume(coroutine.create(function()
  3213. wait(0)
  3214. SlashSound.Parent = nil
  3215. end))
  3216. end
  3217. function charge(pitch)
  3218. local SlashSound = it("Sound")
  3219. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  3220. SlashSound.Parent = workspace
  3221. SlashSound.Volume = 1
  3222. SlashSound.Pitch = pitch
  3223. SlashSound.PlayOnRemove = true
  3224. coroutine.resume(coroutine.create(function()
  3225. wait(0)
  3226. SlashSound.Parent = nil
  3227. end))
  3228. end
  3229. function bewm(pitch)
  3230. local SlashSound = it("Sound")
  3231. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  3232. SlashSound.Parent = workspace
  3233. SlashSound.Volume = .7
  3234. SlashSound.Pitch = pitch
  3235. SlashSound.PlayOnRemove = true
  3236. coroutine.resume(coroutine.create(function()
  3237. wait(0)
  3238. SlashSound.Parent = nil
  3239. end))
  3240. end
  3241. function abscond(pitch)
  3242. local SlashSound = it("Sound")
  3243. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  3244. SlashSound.Parent = workspace
  3245. SlashSound.Volume = 1
  3246. SlashSound.Pitch = pitch
  3247. SlashSound.PlayOnRemove = true
  3248. coroutine.resume(coroutine.create(function()
  3249. wait(0)
  3250. SlashSound.Parent = nil
  3251. end))
  3252. end
  3253. function distort(pitch)
  3254. local SlashSound = it("Sound")
  3255. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249"
  3256. SlashSound.Parent = workspace
  3257. SlashSound.Volume = 1
  3258. SlashSound.Pitch = pitch
  3259. SlashSound.PlayOnRemove = true
  3260. coroutine.resume(coroutine.create(function()
  3261. wait(0)
  3262. SlashSound.Parent = nil
  3263. end))
  3264. end
  3265. function fire1(pitch)
  3266. local SlashSound = it("Sound")
  3267. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697431"
  3268. SlashSound.Parent = workspace
  3269. SlashSound.Volume = 0.3
  3270. SlashSound.Pitch = pitch
  3271. SlashSound.PlayOnRemove = true
  3272. coroutine.resume(coroutine.create(function()
  3273. wait(0)
  3274. SlashSound.Parent = nil
  3275. end))
  3276. end
  3277. function fire2(pitch)
  3278. local SlashSound = it("Sound")
  3279. SlashSound.SoundId = "http://www.roblox.com/asset/?id=48618802 "
  3280. SlashSound.Parent = workspace
  3281. SlashSound.Volume = 0.5
  3282. SlashSound.Pitch = pitch
  3283. SlashSound.PlayOnRemove = true
  3284. coroutine.resume(coroutine.create(function()
  3285. wait(0)
  3286. SlashSound.Parent = nil
  3287. end))
  3288. end
  3289. function grip(pitch)
  3290. local SlashSound = it("Sound")
  3291. SlashSound.SoundId = "rbxasset://sounds/swordslash.wav"
  3292. SlashSound.Parent = workspace
  3293. SlashSound.Volume = 1
  3294. SlashSound.Pitch = pitch
  3295. SlashSound.PlayOnRemove = true
  3296. coroutine.resume(coroutine.create(function()
  3297. wait(0)
  3298. SlashSound.Parent = nil
  3299. end))
  3300. end
  3301. function reload(pitch)
  3302. local SlashSound = it("Sound")
  3303. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697295"
  3304. SlashSound.Parent = workspace
  3305. SlashSound.Volume = 1
  3306. SlashSound.Pitch = pitch
  3307. SlashSound.PlayOnRemove = true
  3308. coroutine.resume(coroutine.create(function()
  3309. wait(0)
  3310. SlashSound.Parent = nil
  3311. end))
  3312. end
  3313. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  3314. local msh1 = it("BlockMesh")
  3315. msh1.Scale = vt(0.5,0.5,0.5)
  3316. S=it("Part")
  3317. S.Name="Effect"
  3318. S.formFactor=0
  3319. S.Size=vt(x1,y1,z1)
  3320. S.BrickColor=color
  3321. S.Reflectance = 0
  3322. S.TopSurface=0
  3323. S.BottomSurface=0
  3324. S.Transparency=0
  3325. S.Anchored=true
  3326. S.CanCollide=false
  3327. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3328. S.Parent=workspace
  3329. msh1.Parent = S
  3330. 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)
  3331. end
  3332. function MMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  3333. local msh1 = it("BlockMesh")
  3334. msh1.Scale = vt(0.5,0.5,0.5)
  3335. S=it("Part")
  3336. S.Name="Effect"
  3337. S.formFactor=0
  3338. S.Size=vt(x1,y1,z1)
  3339. S.BrickColor=color
  3340. S.Reflectance = 0
  3341. S.TopSurface=0
  3342. S.BottomSurface=0
  3343. S.Transparency=0
  3344. S.Anchored=true
  3345. S.CanCollide=false
  3346. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3347. S.Parent=Character
  3348. msh1.Parent = S
  3349. 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)
  3350. end
  3351. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  3352. local msh1 = it("BlockMesh")
  3353. msh1.Scale = vt(0.5,0.5,0.5)
  3354. S=it("Part")
  3355. S.Name="Effect"
  3356. S.formFactor=0
  3357. S.Size=vt(x1,y1,z1)
  3358. S.BrickColor=color
  3359. S.Reflectance = 0
  3360. S.TopSurface=0
  3361. S.BottomSurface=0
  3362. S.Transparency=0
  3363. S.Anchored=true
  3364. S.CanCollide=false
  3365. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3366. S.Parent=workspace
  3367. msh1.Parent = S
  3368. 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)
  3369. end
  3370. function MMMAGIC3(part,x1,y1,z1,x2,y2,z2,color)
  3371. local msh1 = it("BlockMesh")
  3372. msh1.Scale = vt(0.5,0.5,0.5)
  3373. S=it("Part")
  3374. S.Name="Effect"
  3375. S.formFactor=0
  3376. S.Size=vt(x1,y1,z1)
  3377. S.BrickColor=color
  3378. S.Reflectance = 0
  3379. S.TopSurface=0
  3380. S.BottomSurface=0
  3381. S.Transparency=0
  3382. S.Anchored=true
  3383. S.CanCollide=false
  3384. S.CFrame=part*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3385. S.Parent=Character
  3386. msh1.Parent = S
  3387. 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)
  3388. end
  3389. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  3390. local msh1 = it("BlockMesh")
  3391. msh1.Scale = vt(x1,y1,z1)
  3392. S=it("Part")
  3393. S.Name="Effect"
  3394. S.formFactor=0
  3395. S.Size=vt(1,1,1)
  3396. S.BrickColor=color
  3397. S.Reflectance = 0
  3398. S.TopSurface=0
  3399. S.BottomSurface=0
  3400. S.Transparency=0
  3401. S.Anchored=true
  3402. S.CanCollide=false
  3403. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3404. S.Parent=workspace
  3405. msh1.Parent = S
  3406. 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)
  3407. end
  3408. function MOREMAGIX(part,cframe,x,y,z,color)
  3409. p2=it("Part")
  3410. p2.Name="Blast"
  3411. p2.TopSurface=0
  3412. p2.BottomSurface=0
  3413. p2.CanCollide=false
  3414. p2.Anchored=true
  3415. p2.BrickColor=color
  3416. p2.Size=vt(x,y,z)
  3417. p2.formFactor="Symmetric"
  3418. p2.CFrame=part.CFrame*cf(0,cframe,0)
  3419. p2.Parent=Character
  3420. m=it("BlockMesh")
  3421. m.Parent=p2
  3422. m.Name="BlastMesh"
  3423. 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))
  3424. end
  3425. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3426. local msh1 = it("SpecialMesh")
  3427. msh1.Scale = vt(0.5,0.5,0.5)
  3428. msh1.MeshType = "Sphere"
  3429. S=it("Part")
  3430. S.Name="Effect"
  3431. S.formFactor=0
  3432. S.Size=vt(x1,y1,z1)
  3433. S.BrickColor=color
  3434. S.Reflectance = 0
  3435. S.TopSurface=0
  3436. S.BottomSurface=0
  3437. S.Transparency=0
  3438. S.Anchored=true
  3439. S.CanCollide=false
  3440. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  3441. S.Parent=Character
  3442. msh1.Parent = S
  3443. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 5 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.2,0.2,0.2) Part.Transparency=i*.2 wait() end Part.Parent=nil end),S,S.CFrame)
  3444. end
  3445. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3446. local msh1 = it("SpecialMesh")
  3447. msh1.Scale = vt(0.5,0.5,0.5)
  3448. msh1.MeshType = "Sphere"
  3449. S=it("Part")
  3450. S.Name="Effect"
  3451. S.formFactor=0
  3452. S.Size=vt(x1,y1,z1)
  3453. S.BrickColor=color
  3454. S.Reflectance = 0
  3455. S.TopSurface=0
  3456. S.BottomSurface=0
  3457. S.Transparency=0
  3458. S.Anchored=true
  3459. S.CanCollide=false
  3460. S.CFrame=part
  3461. S.Parent=workspace
  3462. msh1.Parent = S
  3463. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 14 do Part.Mesh.Scale = Part.Mesh.Scale + vt(1,1,1) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  3464. end
  3465. function ChargeEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3466. local msh1 = it("SpecialMesh")
  3467. msh1.Scale = vt(0.5,0.5,0.5)
  3468. msh1.MeshType = "Sphere"
  3469. S=it("Part")
  3470. S.Name="Effect"
  3471. S.formFactor=0
  3472. S.Size=vt(x1,y1,z1)
  3473. S.BrickColor=color
  3474. S.Reflectance = 0
  3475. S.TopSurface=0
  3476. S.BottomSurface=0
  3477. S.Transparency=0
  3478. S.Anchored=false
  3479. S.CanCollide=false
  3480. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  3481. S.Parent=modelzorz
  3482. msh1.Parent = S
  3483. coroutine.resume(coroutine.create(function(Part,CF)
  3484. f=it("BodyPosition")
  3485. f.P=800
  3486. f.D=100
  3487. f.maxForce=vt(math.huge,math.huge,math.huge)
  3488. f.position=part.Position+vt(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  3489. f.Parent=Part
  3490. for i=0,1,0.1 do
  3491. wait()
  3492. Part.Transparency=Part.Transparency+0.1
  3493. end
  3494. Part.Parent=nil
  3495. end),S,S.CFrame)
  3496. end
  3497. print("Y U NU GIVE CREDIT.")
  3498. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3499. local msh1 = it("SpecialMesh")
  3500. msh1.Scale = vt(x1,y1,z1)
  3501. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3502. S=it("Part")
  3503. S.Name="Effect"
  3504. S.formFactor=0
  3505. S.Size=vt(1,1,1)
  3506. S.BrickColor=color
  3507. S.Reflectance = 0
  3508. S.TopSurface=0
  3509. S.BottomSurface=0
  3510. S.Transparency=0
  3511. S.Anchored=true
  3512. S.CanCollide=false
  3513. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  3514. S.Parent=workspace
  3515. msh1.Parent = S
  3516. 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)
  3517. end
  3518. function WaveEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3519. local msh1 = it("SpecialMesh")
  3520. msh1.Scale = vt(x1,y1,z1)
  3521. msh1.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3522. S=it("Part")
  3523. S.Name="Effect"
  3524. S.formFactor=0
  3525. S.Size=vt(1,1,1)
  3526. S.BrickColor=color
  3527. S.Reflectance = 0
  3528. S.TopSurface=0
  3529. S.BottomSurface=0
  3530. S.Transparency=0
  3531. S.Anchored=true
  3532. S.CanCollide=false
  3533. S.CFrame=part*cf(x2,y2,z2)*euler(x3,y3,z3)
  3534. S.Parent=workspace
  3535. msh1.Parent = S
  3536. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 18 do Part.Mesh.Scale = Part.Mesh.Scale + vt(3,3,3) Part.Transparency=i*.07 wait() end Part.Parent=nil end),S,S.CFrame)
  3537. end
  3538. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3539. local msh1 = it("SpecialMesh")
  3540. msh1.Scale = vt(x1,y1,z1)
  3541. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  3542. S=it("Part")
  3543. S.Name="Effect"
  3544. S.formFactor=0
  3545. S.Size=vt(1,1,1)
  3546. S.BrickColor=color
  3547. S.Reflectance = 0
  3548. S.TopSurface=0
  3549. S.BottomSurface=0
  3550. S.Transparency=0
  3551. S.Anchored=true
  3552. S.CanCollide=false
  3553. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  3554. S.Parent=workspace
  3555. msh1.Parent = S
  3556. 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)
  3557. end
  3558. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  3559. local msh1 = it("BlockMesh")
  3560. msh1.Scale = vt(0.5,0.5,0.5)
  3561. S=it("Part")
  3562. S.Name="Effect"
  3563. S.formFactor=0
  3564. S.Size=vt(x1,y1,z1)
  3565. S.BrickColor=color
  3566. S.Reflectance = 0
  3567. S.TopSurface=0
  3568. S.BottomSurface=0
  3569. S.Transparency=0
  3570. S.Anchored=false
  3571. S.CanCollide=false
  3572. S.CFrame=part.CFrame
  3573. S.Parent=workspace
  3574. msh1.Parent = S
  3575. W=it("Weld")
  3576. W.Parent=S
  3577. W.Part0=S
  3578. W.Part1=part
  3579. W.C0=cf(x2,y2,z2) * euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3580. W.Parent=nil
  3581. S.Anchored=true
  3582. 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)
  3583. end
  3584. function ChargeEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  3585. local msh1 = it("SpecialMesh")
  3586. msh1.Scale = vt(0.5,0.5,0.5)
  3587. msh1.MeshType = "Sphere"
  3588. S=it("Part")
  3589. S.Name="Effect"
  3590. S.formFactor=0
  3591. S.Size=vt(x1,y1,z1)
  3592. S.BrickColor=color
  3593. S.Reflectance = 0
  3594. S.TopSurface=0
  3595. S.BottomSurface=0
  3596. S.Transparency=0
  3597. S.Anchored=false
  3598. S.CanCollide=false
  3599. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  3600. S.Parent=Character
  3601. msh1.Parent = S
  3602. coroutine.resume(coroutine.create(function(Part,CF)
  3603. f=it("BodyPosition")
  3604. f.P=800
  3605. f.D=100
  3606. f.maxForce=vt(math.huge,math.huge,math.huge)
  3607. f.position=part.Position
  3608. f.Parent=Part
  3609. for i=0,1,0.05 do
  3610. wait()
  3611. Part.Transparency=Part.Transparency+0.05
  3612. end
  3613. Part.Parent=nil
  3614. end),S,S.CFrame)
  3615. end
  3616. DarkRiftF=function(par)
  3617. PWN={}
  3618. for _,v in pairs(workspace:children()) do
  3619. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  3620. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  3621. if v~=Character and (v.Torso.Position-par.Position).magnitude<=25 then
  3622. table.insert(PWN,v.Torso)
  3623. end
  3624. end
  3625. end
  3626. end
  3627. for _,t in pairs(PWN) do
  3628. Mag=(par.Position-t.Position).magnitude/2
  3629. t.Parent.Humanoid:TakeDamage(.6)
  3630. rl=it("BodyAngularVelocity")
  3631. rl.P=3000
  3632. rl.maxTorque=vt(500000,500000,500000)*5000
  3633. rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  3634. rl.Parent=t
  3635. game:GetService("Debris"):AddItem(rl,.1)
  3636. if Mag<=2 then
  3637. t.Parent.Humanoid:TakeDamage(.3)
  3638. else
  3639. vl=it("BodyVelocity")
  3640. vl.P=3000
  3641. vl.maxForce=vt(50000000000,50000000000,50000000000)
  3642. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  3643. vl.Parent=t
  3644. game:GetService("Debris"):AddItem(vl,.1)
  3645. end
  3646. end
  3647. wait(.08)
  3648. end
  3649. DBHit=function(hit,Damage,Knockback)
  3650. if hit.Parent==nil then
  3651. return
  3652. end
  3653. h=hit.Parent:FindFirstChild("Humanoid")
  3654. t=hit.Parent:FindFirstChild("Torso")
  3655. if h~=nil and t~=nil then
  3656. if h.Parent==Character then
  3657. return
  3658. end
  3659. c=it("ObjectValue")
  3660. c.Name="creator"
  3661. c.Value=game.Players.LocalPlayer
  3662. c.Parent=h
  3663. game:GetService("Debris"):AddItem(c,.5)
  3664. if math.random(0,99)+math.random()<=7.8 then
  3665. CRIT=true
  3666. Damage=Damage*3
  3667. --[[ Knockback=Knockback*2
  3668. r=it("BodyAngularVelocity")
  3669. r.P=3000
  3670. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3671. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3672. r.Parent=hit.Parent.Torso]]
  3673. s=it("Sound")
  3674. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  3675. s.Volume=1
  3676. s.Pitch=2
  3677. s.Parent=hit
  3678. s.PlayOnRemove=true
  3679. s.Parent=nil
  3680.  
  3681. end
  3682. h:TakeDamage(Damage)
  3683. showDamage(hit.Parent,Damage,.5)
  3684. vp=it("BodyVelocity")
  3685. vp.P=500
  3686. vp.maxForce=vt(math.huge,0,math.huge)
  3687. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  3688. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  3689. if Knockback>0 then
  3690. vp.Parent=hit.Parent.Torso
  3691. end
  3692. game:GetService("Debris"):AddItem(vp,1)
  3693. rl=it("BodyAngularVelocity")
  3694. rl.P=3000
  3695. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  3696. rl.angularvelocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  3697. rl.Parent=t
  3698. game:GetService("Debris"):AddItem(rl,.2)
  3699. else
  3700. if hit.CanCollide==false then
  3701. return
  3702. end
  3703. MagicCom:disconnect()
  3704. -- DBExplode(DB)
  3705. end
  3706. end
  3707. DBHit2=function(hit,Damage)
  3708. if hit.Parent==nil then
  3709. return
  3710. end
  3711. h=hit.Parent:FindFirstChild("Humanoid")
  3712. t=hit.Parent:FindFirstChild("Torso")
  3713. if h~=nil and t~=nil then
  3714. if h.Parent==Character then
  3715. return
  3716. end
  3717. c=it("ObjectValue")
  3718. c.Name="creator"
  3719. c.Value=game.Players.LocalPlayer
  3720. c.Parent=h
  3721. game:GetService("Debris"):AddItem(c,.5)
  3722. if math.random(0,99)+math.random()<=7.8 then
  3723. CRIT=true
  3724. Damage=Damage*3
  3725. --[[ Knockback=Knockback*2
  3726. r=it("BodyAngularVelocity")
  3727. r.P=3000
  3728. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3729. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3730. r.Parent=hit.Parent.Torso]]
  3731. s=it("Sound")
  3732. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  3733. s.Volume=1
  3734. s.Pitch=2
  3735. s.Parent=hit
  3736. s.PlayOnRemove=true
  3737. s.Parent=nil
  3738.  
  3739. end
  3740. h:TakeDamage(Damage)
  3741. showDamage(hit.Parent,Damage,.5)
  3742. vl=it("BodyVelocity")
  3743. vl.P=4500
  3744. vl.maxForce=vt(math.huge,math.huge,math.huge)
  3745. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,30,0)
  3746. vl.velocity=Head.CFrame.lookVector*35+Head.Velocity/1.05
  3747. vl.Parent=t
  3748. game:GetService("Debris"):AddItem(vl,.2)
  3749. rl=it("BodyAngularVelocity")
  3750. rl.P=3000
  3751. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  3752. rl.angularvelocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3753. rl.Parent=t
  3754. game:GetService("Debris"):AddItem(rl,.2)
  3755. else
  3756. if hit.CanCollide==false then
  3757. return
  3758. end
  3759. MagicCom:disconnect()
  3760. -- DBExplode(DB)
  3761. end
  3762. end
  3763. DOHHit=function(hit,Damage,Pos)
  3764. if hit.Parent==nil then
  3765. return
  3766. end
  3767. h=hit.Parent:FindFirstChild("Humanoid")
  3768. t=hit.Parent:FindFirstChild("Torso")
  3769. if h~=nil and t~=nil then
  3770. if h.Parent==Character then
  3771. return
  3772. end
  3773. if attackdebounce == false then
  3774. attackdebounce = true
  3775. coroutine.resume(coroutine.create(function()
  3776. wait(0.1)
  3777. attackdebounce = false
  3778. end))
  3779. c=it("ObjectValue")
  3780. c.Name="creator"
  3781. c.Value=game.Players.LocalPlayer
  3782. c.Parent=h
  3783. game:GetService("Debris"):AddItem(c,.5)
  3784. if math.random(0,99)+math.random()<=7.8 then
  3785. CRIT=true
  3786. Damage=Damage*3
  3787. --[[ Knockback=Knockback*2
  3788. r=it("BodyAngularVelocity")
  3789. r.P=3000
  3790. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3791. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3792. r.Parent=hit.Parent.Torso]]
  3793. s=it("Sound")
  3794. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  3795. s.Volume=1
  3796. s.Pitch=2
  3797. s.Parent=hit
  3798. s.PlayOnRemove=true
  3799. s.Parent=nil
  3800.  
  3801. end
  3802. h:TakeDamage(Damage)
  3803. showDamage(hit.Parent,Damage,.5)
  3804. vl=it("BodyVelocity")
  3805. vl.P=4500
  3806. vl.maxForce=vt(math.huge,math.huge,math.huge)
  3807. -- vl.velocity=vt(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+vt(0,60,0)
  3808. vl.velocity=Head.CFrame.lookVector+Head.Velocity/1.05
  3809. vl.Parent=t
  3810. game:GetService("Debris"):AddItem(vl,.2)
  3811. f=it("BodyPosition")
  3812. f.P=2000
  3813. f.D=100
  3814. f.maxForce=vt(math.huge,math.huge,math.huge)
  3815. f.position=t.Position+vt(0,0,0)
  3816. f.Parent=t
  3817. game:GetService("Debris"):AddItem(f,.5)
  3818. rl=it("BodyAngularVelocity")
  3819. rl.P=3000
  3820. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  3821. rl.angularvelocity=vt(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3822. rl.Parent=t
  3823. game:GetService("Debris"):AddItem(rl,.2)
  3824. else
  3825. if hit.CanCollide==false then
  3826. return
  3827. end
  3828. MagicCom:disconnect()
  3829. -- DBExplode(DB)
  3830. end
  3831. end
  3832. end
  3833. Damagefunc1=function(hit,Damage,Knockback)
  3834. if hit.Parent==nil then
  3835. return
  3836. end
  3837. CPlayer=Bin
  3838. h=hit.Parent:FindFirstChild("Humanoid")
  3839. if h~=nil and hit.Parent.Name~="Player" and hit.Parent:FindFirstChild("Torso")~=nil then
  3840. if attackdebounce == false then
  3841. attackdebounce = true
  3842. coroutine.resume(coroutine.create(function()
  3843. wait(0.1)
  3844. attackdebounce = false
  3845. end))
  3846. Damage=Damage
  3847. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3848. return
  3849. end]]
  3850. if mana<400 then
  3851. mana=mana+math.random(10,20)
  3852. else
  3853. mana=400
  3854. end
  3855. c=it("ObjectValue")
  3856. c.Name="creator"
  3857. c.Value=game.Players.LocalPlayer
  3858. c.Parent=h
  3859. game:GetService("Debris"):AddItem(c,.5)
  3860. -- print(c.Value)
  3861. if math.random(0,99)+math.random()<=7.8 then
  3862. CRIT=true
  3863. Damage=Damage*2
  3864. --[[ Knockback=Knockback*2
  3865. r=it("BodyAngularVelocity")
  3866. r.P=3000
  3867. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3868. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3869. r.Parent=hit.Parent.Torso]]
  3870. s=it("Sound")
  3871. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  3872. s.Volume=1
  3873. s.Pitch=2
  3874. s.Parent=hit
  3875. s.PlayOnRemove=true
  3876. s.Parent=nil
  3877.  
  3878. end
  3879. Damage=Damage+math.random(0,10)
  3880. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  3881. h:TakeDamage(Damage)
  3882. showDamage(hit.Parent,Damage,.5)
  3883. vp=it("BodyVelocity")
  3884. vp.P=500
  3885. vp.maxForce=vt(math.huge,0,math.huge)
  3886. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  3887. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  3888. if Knockback>0 then
  3889. vp.Parent=hit.Parent.Torso
  3890. end
  3891. game:GetService("Debris"):AddItem(vp,.25)
  3892. --[[ r=it("BodyAngularVelocity")
  3893. r.P=3000
  3894. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3895. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3896. r.Parent=hit.Parent.Torso]]
  3897. game:GetService("Debris"):AddItem(r,.5)
  3898. c=it("ObjectValue")
  3899. c.Name="creator"
  3900. c.Value=Player
  3901. c.Parent=h
  3902. game:GetService("Debris"):AddItem(c,.5)
  3903. CRIT=false
  3904. hitDeb=true
  3905. AttackPos=6
  3906. end
  3907. end
  3908. end
  3909. Damagefunc2=function(hit,Damage,Knockback,durposition)
  3910. if hit.Parent==nil then
  3911. return
  3912. end
  3913. CPlayer=Bin
  3914. h=hit.Parent:FindFirstChild("Humanoid")
  3915. if h~=nil and hit.Parent.Name~="Fenrier" and hit.Parent:FindFirstChild("Torso")~=nil then
  3916. if attackdebounce == false then
  3917. attackdebounce = true
  3918. coroutine.resume(coroutine.create(function()
  3919. wait(0.1)
  3920. attackdebounce = false
  3921. end))
  3922. Damage=Damage
  3923. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3924. return
  3925. end]]
  3926. c=it("ObjectValue")
  3927. c.Name="creator"
  3928. c.Value=game.Players.LocalPlayer
  3929. c.Parent=h
  3930. game:GetService("Debris"):AddItem(c,.5)
  3931. -- print(c.Value)
  3932. if math.random(0,99)+math.random()<=7.8 then
  3933. CRIT=true
  3934. Damage=Damage*2
  3935. --[[ Knockback=Knockback*2
  3936. r=it("BodyAngularVelocity")
  3937. r.P=3000
  3938. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3939. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3940. r.Parent=hit.Parent.Torso]]
  3941. s=it("Sound")
  3942. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  3943. s.Volume=1
  3944. s.Pitch=2
  3945. s.Parent=hit
  3946. s.PlayOnRemove=true
  3947. s.Parent=nil
  3948.  
  3949. end
  3950. Damage=Damage+math.random(0,10)
  3951. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  3952. h:TakeDamage(Damage)
  3953. showDamage(hit.Parent,Damage,.5)
  3954. local angle = (hit.Position-(durposition+Vector3.new(0,-3,0))).unit
  3955. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  3956. rl=Instance.new("BodyAngularVelocity")
  3957. rl.P=3000
  3958. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3959. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3960. rl.Parent=hit
  3961. local bodyVelocity=Instance.new("BodyVelocity")
  3962. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  3963. bodyVelocity.P=5000
  3964. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3965. bodyVelocity.Parent=hit
  3966. coroutine.resume(coroutine.create(function(Vel)
  3967. wait(0.7)
  3968. Vel:Remove()
  3969. end),bodyVelocity)
  3970. coroutine.resume(coroutine.create(function(vel)
  3971. wait(1)
  3972. vel:Remove()
  3973. end),rl)
  3974. game:GetService("Debris"):AddItem(vp,1)
  3975. --[[ r=it("BodyAngularVelocity")
  3976. r.P=3000
  3977. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  3978. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3979. r.Parent=hit.Parent.Torso]]
  3980. game:GetService("Debris"):AddItem(r,.5)
  3981. c=it("ObjectValue")
  3982. c.Name="creator"
  3983. c.Value=Player
  3984. c.Parent=h
  3985. game:GetService("Debris"):AddItem(c,.5)
  3986. CRIT=false
  3987. hitDeb=true
  3988. AttackPos=6
  3989. end
  3990. end
  3991. end
  3992. DOH=function(hit,Damage,Knockback)
  3993. if attackdebounce == false then
  3994. attackdebounce = true
  3995. coroutine.resume(coroutine.create(function()
  3996. wait(0.2)
  3997. attackdebounce = false
  3998. end))
  3999. if hit.Parent==nil then
  4000. return
  4001. end
  4002. CPlayer=Bin
  4003. h=hit.Parent:FindFirstChild("Humanoid")
  4004. if h~=nil and hit.Parent.Name~="Fenrier" and hit.Parent:FindFirstChild("Torso")~=nil then
  4005. Damage=Damage
  4006. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  4007. return
  4008. end]]
  4009. c=it("ObjectValue")
  4010. c.Name="creator"
  4011. c.Value=game.Players.LocalPlayer
  4012. c.Parent=h
  4013. game:GetService("Debris"):AddItem(c,.5)
  4014. -- print(c.Value)
  4015. if math.random(0,99)+math.random()<=7.8 then
  4016. CRIT=true
  4017. Damage=Damage*3
  4018. --[[ Knockback=Knockback*2
  4019. r=it("BodyAngularVelocity")
  4020. r.P=3000
  4021. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  4022. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  4023. r.Parent=hit.Parent.Torso]]
  4024. s=it("Sound")
  4025. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  4026. s.Volume=1
  4027. s.Pitch=2
  4028. s.Parent=hit
  4029. s.PlayOnRemove=true
  4030. s.Parent=nil
  4031.  
  4032. end
  4033. Damage=Damage+math.random(0,10)
  4034. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  4035. h:TakeDamage(Damage)
  4036. showDamage(hit.Parent,Damage,.5)
  4037. vp=it("BodyVelocity")
  4038. vp.P=500
  4039. vp.maxForce=vt(math.huge,0,math.huge)
  4040. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  4041. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  4042. if Knockback>0 then
  4043. vp.Parent=hit.Parent.Torso
  4044. end
  4045. game:GetService("Debris"):AddItem(vp,.25)
  4046. r=it("BodyAngularVelocity")
  4047. r.P=3000
  4048. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  4049. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  4050. r.Parent=hit.Parent.Torso
  4051. game:GetService("Debris"):AddItem(r,.5)
  4052. c=it("ObjectValue")
  4053. c.Name="creator"
  4054. c.Value=Player
  4055. c.Parent=h
  4056. game:GetService("Debris"):AddItem(c,.5)
  4057. CRIT=false
  4058. hitDeb=true
  4059. AttackPos=6
  4060. end
  4061. end
  4062. end
  4063. showDamage=function(Char,Dealt,du)
  4064. m=it("Model")
  4065. m.Name=tostring(Dealt)
  4066. h=it("Humanoid")
  4067. h.Health=0
  4068. h.MaxHealth=0
  4069. h.Parent=m
  4070. c=it("Part")
  4071. c.Transparency=0
  4072. c.BrickColor=BrickColor:Red()
  4073. if CRIT==true then
  4074. c.BrickColor=BrickColor.new("Really red")
  4075. end
  4076. c.Name="Head"
  4077. c.TopSurface=0
  4078. c.BottomSurface=0
  4079. c.formFactor="Plate"
  4080. c.Size=vt(1,.4,1)
  4081. ms=it("CylinderMesh")
  4082. ms.Scale=vt(.8,.8,.8)
  4083. if CRIT==true then
  4084. ms.Scale=vt(1.25,1.5,1.25)
  4085. end
  4086. ms.Parent=c
  4087. c.Reflectance=0
  4088. it("BodyGyro").Parent=c
  4089. c.Parent=m
  4090. c.CFrame=cf(Char["Head"].CFrame.p+vt(0,1.5,0))
  4091. f=it("BodyPosition")
  4092. f.P=2000
  4093. f.D=100
  4094. f.maxForce=vt(math.huge,math.huge,math.huge)
  4095. f.position=c.Position+vt(0,3,0)
  4096. f.Parent=c
  4097. game:GetService("Debris"):AddItem(m,.5+du)
  4098. c.CanCollide=false
  4099. m.Parent=workspace
  4100. c.CanCollide=false
  4101. end
  4102. function shoottrail2(pos1,Damage)
  4103. coroutine.resume(coroutine.create(function()
  4104. spread2 = 0
  4105. range2 = 200
  4106. rangepower = 10
  4107. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100
  4108. local dir = Head.CFrame.lookVector+spreadvector
  4109. --local dir = pos1.CFrame.lookVector+spreadvector
  4110. local ammount = 100
  4111. local hit2,pos = rayCast(pos1.Position,dir,10,Main)
  4112. local rangepos = range2
  4113. local function drawtrail(From,To)
  4114. local effectsmsh = it("SpecialMesh")
  4115. local Damg = Damage*2
  4116. effectsmsh.Scale = vt(1,1,1)
  4117. effectsmsh.MeshType="Sphere"
  4118. effectsmsh.Name = "Mesh"
  4119. local effectsg = it("Part")
  4120. effectsg.formFactor = 3
  4121. effectsg.CanCollide = false
  4122. effectsg.Name = "Eff"
  4123. effectsg.Locked = true
  4124. effectsg.Anchored = true
  4125. effectsg.Size = vt(1,0.4,1)
  4126. effectsg.Parent = Main
  4127. effectsmsh.Parent = effectsg
  4128. effectsg.BrickColor = BrickColor.new("Navy blue")
  4129. effectsg.Reflectance = 0.25
  4130. local LP = From
  4131. local point1 = To
  4132. local mg = (LP - point1).magnitude
  4133. effectsmsh.Scale = vt(3,3,3)
  4134. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  4135. --MMMAGIC(effectsg,4,4,4,0,0,0,BrickColor.new("Black"))
  4136. coroutine.resume(coroutine.create(function()
  4137. for i = 0 , 1 , 0.1 do
  4138. wait()
  4139. effectsg.Transparency = 1*i
  4140. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  4141. end
  4142. wait(1)
  4143. effectsg.Parent = nil
  4144. end))
  4145. end
  4146. local newpos = pos1.Position
  4147. local inc = rangepower
  4148. ammount=100
  4149. local Damg = Damage*2
  4150. local decr = 0
  4151. repeat
  4152. wait()
  4153. decr = decr + 1
  4154. rangepos = rangepos - 10
  4155. dir = dir
  4156. --dir = dir
  4157. ammount=ammount-3
  4158. if decr == 2 then
  4159. Damg = Damg/1.3
  4160. decr=0
  4161. end
  4162. hit2,pos = rayCast(newpos,dir,inc,Main)
  4163. drawtrail(newpos,pos)
  4164. newpos = newpos + (dir * inc)
  4165. if alt==1 then
  4166. inc = 10
  4167. if inc >= 20 then
  4168. inc = inc - 10
  4169. end
  4170. end
  4171. if hit2 ~= nil then
  4172. rangepos = 0
  4173. end
  4174. until rangepos <= 0
  4175. EVENMOARMAGIX2(cf(newpos),2,2,2,0,0,0,0,0,0,BrickColor.new("Black"))
  4176. local c = game.Workspace:GetChildren();
  4177. for i = 1, #c do
  4178. local hum = c[i]:findFirstChild("Humanoid")
  4179. if hum ~= nil and hum.Health ~= 0 then
  4180. local head = c[i]:findFirstChild("Head");
  4181. if head ~= nil then
  4182. local targ = head.Position - newpos;
  4183. local mag = targ.magnitude;
  4184. if mag <= 10 and c[i].Name ~= Player.Name then
  4185. attackdebounce=false
  4186. Damagefunc1(head,math.floor(Damg),0.1)
  4187. end
  4188. end
  4189. end
  4190. end
  4191. if hit2 ~= nil then
  4192. local effectsmsh = it("SpecialMesh")
  4193. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  4194. --effectsmsh.Scale = vt(1,1,2.5)
  4195. effectsmsh.Scale = vt(3,3,3)
  4196. local effectsg = it("Part")
  4197. effectsg.formFactor = 3
  4198. effectsg.CanCollide = false
  4199. effectsg.Name = "Arrow"
  4200. effectsg.Locked = true
  4201. effectsg.Transparency = 1
  4202. effectsg.Size = vt(0.2,0.2,0.2)
  4203. effectsg.Parent = Main
  4204. effectsg.BrickColor = BrickColor.new("Black")
  4205. effectsmsh.Parent = effectsg
  4206. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  4207. coroutine.resume(coroutine.create(function()
  4208. wait(0)
  4209. effectsg.Parent = nil
  4210. end))
  4211. local efwel = it("Weld")
  4212. efwel.Parent = effectsg
  4213. efwel.Part0 = effectsg
  4214. efwel.Part1 = hit2
  4215. efwel.Parent = nil
  4216. effectsg.Anchored = true
  4217. --local HitPos = effectsg.Position + cf(newpos,pos).lookVector*0.75
  4218. --local HitPos = prt1.Position + cf(newpos,pos).lookVector*0.75
  4219. local HitPos = Prt4.Position + (Head.CFrame.lookVector * .5)
  4220. local CJ = cf(HitPos)
  4221. local C0 = effectsg.CFrame:inverse() * CJ
  4222. local C1 = hit2.CFrame:inverse() * CJ
  4223. --efwel.C0 = C0
  4224. --efwel.C1 = C1
  4225. --efwel.Parent = effectsg
  4226. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  4227. hum = hit2.Parent.Humanoid
  4228. attackdebounce=false
  4229. Damagefunc1(hit2,math.floor(Damg),0.1)
  4230. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  4231. hum = hit2.Parent.Parent.Humanoid
  4232. attackdebounce=false
  4233. Damagefunc1(hum,math.floor(Damg),0.1)
  4234. end
  4235. end
  4236. end))
  4237. end
  4238. function shoottrail3(pos1,Damage)
  4239. coroutine.resume(coroutine.create(function()
  4240. spread2 = 0
  4241. range2 = 1000
  4242. rangepower = 2
  4243. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100
  4244. local dir = Head.CFrame.lookVector+spreadvector
  4245. --local dir = pos1.CFrame.lookVector+spreadvector
  4246. local ammount = 100
  4247. local hit2,pos = rayCast(pos1.Position,dir,10,Character)
  4248. local rangepos = range2
  4249. local function drawtrail(From,To)
  4250. local effectsmsh = it("SpecialMesh")
  4251. local Damg = Damage*2
  4252. effectsmsh.Scale = vt(1,1,1)
  4253. effectsmsh.MeshType="Sphere"
  4254. effectsmsh.Name = "Mesh"
  4255. local effectsg = it("Part")
  4256. effectsg.formFactor = 3
  4257. effectsg.CanCollide = false
  4258. effectsg.Name = "Eff"
  4259. effectsg.Locked = true
  4260. effectsg.Anchored = true
  4261. effectsg.Size = vt(1,0.4,1)
  4262. effectsg.Parent = Main
  4263. effectsmsh.Parent = effectsg
  4264. effectsg.BrickColor = BrickColor.new("Black")
  4265. effectsg.Reflectance = 0
  4266. effectsg.Transparency=0.3
  4267. local LP = From
  4268. local point1 = To
  4269. local mg = (LP - point1).magnitude
  4270. effectsmsh.Scale = vt(3,3,3)
  4271. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  4272. --MMMAGIC3(effectsg.CFrame,1,6,1,0,0,0,BrickColor.new("Black"))
  4273. EVENMOARMAGIX(effectsg,3,3,3,0,0,0,0,0,0,BrickColor.new("Black"))
  4274. MOREMAGIX(effectsg,0,2,2,2,BrickColor.new("Navy blue"))
  4275. coroutine.resume(coroutine.create(function()
  4276. --[[for i = 0 , 1 , 0.1 do
  4277. wait()
  4278. effectsg.Transparency = 1*i
  4279. effectsmsh.Scale = vt(1-1*i,mg*5,1-1*i)
  4280. end ]]
  4281. wait()
  4282. effectsg.Transparency = 1
  4283. wait(2)
  4284. effectsg.Parent = nil
  4285. end))
  4286. end
  4287. local newpos = pos1.Position
  4288. local inc = rangepower
  4289. ammount=100
  4290. local Damg = Damage*2
  4291. local decr = 0
  4292. repeat
  4293. wait()
  4294. decr = decr + 1
  4295. rangepos = rangepos - 10
  4296. dir = dir
  4297. --dir = dir
  4298. ammount=ammount-3
  4299. hit2,pos = rayCast(newpos,dir,inc,Character)
  4300. drawtrail(newpos,pos)
  4301. newpos = newpos + (dir * inc)
  4302. if alt==1 then
  4303. inc = 10
  4304. if inc >= 20 then
  4305. inc = inc - 10
  4306. end
  4307. end
  4308. if hit2 ~= nil then
  4309. rangepos = 0
  4310. end
  4311. until rangepos <= 0
  4312. EVENMOARMAGIX2(cf(newpos),5,5,5,0,0,0,0,0,0,BrickColor.new("Black"))
  4313. WaveEffect2(cf(newpos),10,10,10,0,0,0,1,0,0,BrickColor.new("Black"))
  4314. WaveEffect2(cf(newpos),10,10,10,0,0,0,-1,0,0,BrickColor.new("Black"))
  4315. local c = game.Workspace:GetChildren();
  4316. for i = 1, #c do
  4317. local hum = c[i]:findFirstChild("Humanoid")
  4318. if hum ~= nil and hum.Health ~= 0 then
  4319. local head = c[i]:findFirstChild("Head");
  4320. if head ~= nil then
  4321. local targ = head.Position - newpos;
  4322. local mag = targ.magnitude;
  4323. if mag <= 30 and c[i].Name ~= Player.Name then
  4324. attackdebounce=false
  4325. newpos2=newpos
  4326. Damagefunc2(head,math.floor(Damg),0.1,newpos2)
  4327. end
  4328. end
  4329. end
  4330. end
  4331. if hit2 ~= nil then
  4332. print(hit2)
  4333. local effectsmsh = it("SpecialMesh")
  4334. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  4335. --effectsmsh.Scale = vt(1,1,2.5)
  4336. effectsmsh.Scale = vt(3,3,3)
  4337. local effectsg = it("Part")
  4338. effectsg.formFactor = 3
  4339. effectsg.CanCollide = false
  4340. effectsg.Name = "Arrow"
  4341. effectsg.Locked = true
  4342. effectsg.Transparency = 1
  4343. effectsg.Size = vt(0.2,0.2,0.2)
  4344. effectsg.Parent = Main
  4345. effectsg.BrickColor = BrickColor.new("Black")
  4346. effectsmsh.Parent = effectsg
  4347. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  4348. coroutine.resume(coroutine.create(function()
  4349. wait(0)
  4350. effectsg.Parent = nil
  4351. end))
  4352. local efwel = it("Weld")
  4353. efwel.Parent = effectsg
  4354. efwel.Part0 = effectsg
  4355. efwel.Part1 = hit2
  4356. efwel.Parent = nil
  4357. effectsg.Anchored = true
  4358. --local HitPos = effectsg.Position + cf(newpos,pos).lookVector*0.75
  4359. --local HitPos = prt1.Position + cf(newpos,pos).lookVector*0.75
  4360. local HitPos = Prt4.Position + (Head.CFrame.lookVector * .5)
  4361. local CJ = cf(HitPos)
  4362. local C0 = effectsg.CFrame:inverse() * CJ
  4363. local C1 = hit2.CFrame:inverse() * CJ
  4364. --efwel.C0 = C0
  4365. --efwel.C1 = C1
  4366. --efwel.Parent = effectsg
  4367. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  4368. hum = hit2.Parent.Humanoid
  4369. attackdebounce=false
  4370. Damagefunc1(hit2,math.floor(Damg),0.1)
  4371. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  4372. hum = hit2.Parent.Parent.Humanoid
  4373. attackdebounce=false
  4374. Damagefunc1(hum,math.floor(Damg),0.1)
  4375. end
  4376. end
  4377. end))
  4378. end
  4379. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  4380. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  4381. end
  4382. hold = false
  4383. function ob1d(mouse)
  4384. hold=true
  4385. sonicing=true
  4386. end
  4387. function ob1u(mouse)
  4388. hold = false
  4389. sonicing=false
  4390. end
  4391. buttonhold = false
  4392. function Key(key,mouse)
  4393. if attack == true then return end
  4394. if key=="g" then
  4395. Taunt1()
  4396. end
  4397. if key=="h" then
  4398. JetBoard()
  4399. end
  4400. if key=="z" then
  4401. if combo==0 then
  4402. combo=1
  4403. Slash1()
  4404. coroutine.resume(coroutine.create(function()
  4405. wait(1)
  4406. if attack==false then
  4407. combo=0
  4408. end
  4409. end))
  4410. elseif combo==1 then
  4411. combo=2
  4412. Slash2()
  4413. coroutine.resume(coroutine.create(function()
  4414. wait(1)
  4415. if attack==false then
  4416. combo=0
  4417. end
  4418. end))
  4419. elseif combo==2 then
  4420. combo=3
  4421. Slash3()
  4422. coroutine.resume(coroutine.create(function()
  4423. wait(1)
  4424. if attack==false then
  4425. combo=0
  4426. end
  4427. end))
  4428. elseif combo==3 then
  4429. combo=0
  4430. end
  4431. end
  4432. if key=="x" then
  4433. if combo==0 then
  4434. combo=1
  4435. Magic1()
  4436. coroutine.resume(coroutine.create(function()
  4437. wait(1)
  4438. if attack==false then
  4439. combo=0
  4440. end
  4441. end))
  4442. elseif combo==1 then
  4443. combo=2
  4444. Magic2()
  4445. coroutine.resume(coroutine.create(function()
  4446. wait(1)
  4447. if attack==false then
  4448. combo=0
  4449. end
  4450. end))
  4451. elseif combo==2 then
  4452. combo=3
  4453. Magic3()
  4454. coroutine.resume(coroutine.create(function()
  4455. wait(1)
  4456. if attack==false then
  4457. combo=0
  4458. end
  4459. end))
  4460. elseif combo==3 then
  4461. combo=0
  4462. end
  4463. end
  4464. --attack=true
  4465. Stance()
  4466. if attack==false then
  4467. pcall(function() act.key[key:lower()] = true end)
  4468. local kk = key:lower()
  4469. coroutine.resume(coroutine.create(function()
  4470. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  4471. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  4472. wait()
  4473. end
  4474. walking = false
  4475. end
  4476. end))
  4477. if kk == "w" or kk == "a" or kk == "s" or kk == "d" then
  4478. if walking == true then return end
  4479. while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do
  4480. Walking()
  4481. dodging=false
  4482. Stance()
  4483. wait()
  4484. end
  4485. walking = false
  4486. wait(0.1)
  4487. Stance()
  4488. end
  4489. end
  4490. attack=false
  4491. end
  4492. function Key2(key,mouse)
  4493. pcall(function() act.key[key:lower()] = false end)
  4494. walking=false
  4495. end
  4496. function s(mouse)
  4497. mouse.Button1Down:connect(function() ob1d(mouse) end)
  4498. mouse.Button1Up:connect(function() ob1u(mouse) end)
  4499. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  4500. --mouse.KeyDown:connect(key2)
  4501. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  4502. mouse.KeyUp:connect(function(k) act.keydown = false
  4503. pcall(function() act.key[k:lower()] = false end)
  4504. hold = false
  4505. end)
  4506. MMouse = mouse
  4507. sheathed = false
  4508. player = Player
  4509. ch = Character
  4510. RSH = ch.Torso["Right Shoulder"]
  4511. LSH = ch.Torso["Left Shoulder"]
  4512. RHP = ch.Torso["Right Hip"]
  4513. LHP = ch.Torso["Left Hip"]
  4514. --
  4515. RSH.Parent = nil
  4516. LSH.Parent = nil
  4517. --[[RHP.C0 = cf(-0.5, -1.5, 0) * euler(0,0,0)
  4518. RHP.C1 = cf(0, 0.5, 0)
  4519. LHP.C0 = cf(0.5, -1.5, 0) * euler(0,0,0)
  4520. LHP.C1 = cf(0, 0.5, 0) ]]
  4521. --
  4522. RW.Part0 = ch.Torso
  4523. RW.C0 = cf(1.5, 0.5, 0) --* euler(1.3, 0, -0.5)
  4524. RW.C1 = cf(0, 0.5, 0)
  4525. RW.Part1 = ch["Right Arm"]
  4526. RW.Parent = ch.Torso
  4527. --_G.R = RW
  4528. --
  4529. LW.Part0 = ch.Torso
  4530. LW.C0 = cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
  4531. LW.C1 = cf(0, 0.5, 0)
  4532. LW.Part1 = ch["Left Arm"]
  4533. LW.Parent = ch.Torso
  4534. --_G.L = LW
  4535. --
  4536. --[[RW2.Part0 = ch.Torso
  4537. RW2.C0 = cf(0.5, -1.5, 0) --* euler(1.7, 0, 0.8)
  4538. RW2.C1 = cf(0, 0.5, 0)
  4539. RW2.Part1 = ch["Right Leg"]
  4540. RW2.Parent = ch.Torso
  4541. --_G.L = LW
  4542. --
  4543. LW2.Part0 = ch.Torso
  4544. LW2.C0 = cf(-0.5, -1.5, 0) --* euler(1.7, 0, 0.8)
  4545. LW2.C1 = cf(0, 0.5, 0)
  4546. LW2.Part1 = ch["Left Leg"]
  4547. LW2.Parent = ch.Torso
  4548. --_G.L = LW
  4549. -- ]]
  4550. equipanim(mouse)
  4551. end
  4552. function ds(mouse)
  4553. sheathed = true
  4554. guardy = false
  4555. walking = nil
  4556. Character.Humanoid.WalkSpeed = 16
  4557. Torso.Neck.C1 = euler(1.57,3.14,0) * cf(0,0,-0.5)
  4558. hideanim()
  4559. RW.Parent = nil
  4560. LW.Parent = nil
  4561. RSH.Parent = player.Character.Torso
  4562. LSH.Parent = player.Character.Torso
  4563. end
  4564. Bin.Selected:connect(s)
  4565. Bin.Deselected:connect(ds)
  4566. increase=0
  4567. while true do
  4568. wait()
  4569. bg.P = 15000
  4570. while sonicing==false do
  4571. wait()
  4572. end
  4573. while sonicing==true do
  4574. wait(0.05)
  4575. EVENMOARMAGIX(Prt13,2,2,2,0,0,0,0,0,0,BrickColor.new("Bright blue"))
  4576. end
  4577. end
  4578. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement