Advertisement
memberhero

fenrier screwdriver

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