Advertisement
Guest User

Untitled

a guest
May 30th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.94 KB | None | 0 0
  1. local player=game.Players.Ciassicdev
  2. local char=player.Character
  3. repeat wait() until player and char
  4. local torso=char.Torso
  5. local head=char.Head
  6. local human=char.Humanoid
  7. local hat
  8. for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end
  9. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  10. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  11. local c=function(f) coroutine.resume(coroutine.create(f)) end
  12. local p=function(f) pcall(f) end
  13. local add={
  14. Part=function(par, a, c, col, t, s, cf)
  15. local p=Instance.new("Part", par) p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()
  16. return p
  17. end,
  18. Wedge=function(par, a, c, col, t, s, cf)
  19. local p=Instance.new("WedgePart", par) p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()
  20. return p
  21. end,
  22. Weld=function(par, p1, cf)
  23. local w=Instance.new("Weld", par) w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new()
  24. return w
  25. end,
  26. Mesh=function(ins, par, s, of, t)
  27. local m=Instance.new(ins, par) m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() pcall(function() m.MeshType=t end)
  28. return m
  29. end
  30. }
  31. local scriptname="Santoryu" --Name here
  32. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char[scriptname.."B"]:remove() player.PlayerGui[scriptname]:remove() end)
  33. local model=Instance.new("Model", char) model.Name=scriptname
  34. local modelB=Instance.new("Model", char) modelB.Name=scriptname.."B"
  35. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  36. local sound=Instance.new("Sound", char)
  37. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=model.Name
  38. local skincolor="White"
  39. local body={}
  40. local animate={}
  41. local obj={}
  42. function createParts()
  43. --==PARTS==--
  44. body.Head=head:clone() body.Head.Parent=model body.Head.BrickColor=BrickColor.new(skincolor) body.Head.Transparency=0
  45. body.Torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  46. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  47. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  48. p(function() for i, v in pairs(char:children()) do v.Transparency=1 end end)
  49. p(function() for i, v in pairs(char:children()) do v["face"]:clone().Parent=body.Head v["face"]:remove() end end)
  50. p(function() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end end end)
  51. --==WELDS==--
  52. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  53. body.TorsoW=add.Weld(body.Torso, torso, nil)
  54. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  55. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  56. --==MESHES==--
  57. add.Mesh("BlockMesh", body.ArmLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  58. add.Mesh("BlockMesh", body.ArmRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  59. add.Mesh("BlockMesh", body.LegLeft, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  60. add.Mesh("BlockMesh", body.LegRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  61. ---------------------------------------------------------------------------------------
  62. animate={
  63. ["Head"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  64. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  65. end;
  66. ["Torso"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  67. body.TorsoW.C1=cf
  68. end;
  69. ["ArmLeft"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  70. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  71. end;
  72. ["ArmRight"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  73. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  74. end;
  75. ["LegLeft"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  76. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  77. end;
  78. ["LegRight"]=function(cf) p(function() for i, v in pairs(model:children()) do v.Transparency=0 end end) leg.Left.Transparency=1 leg.Right.Transparency=1
  79. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  80. end;
  81. }
  82. --==Objects==--
  83. obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, 1, .2), nil)
  84. obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.5, -.2))
  85. obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  86. obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.9, 0))
  87. --Right
  88. obj.HandleRight=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil)
  89. obj.HandleRightW=add.Weld(obj.HandleRight, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  90. for i=1, 5 do
  91. obj.DesignRight=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil)
  92. obj.DesignRightW=add.Weld(obj.DesignRight, obj.HandleRight, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0))
  93. end
  94. obj.GuardRight=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  95. obj.GuardRightW=add.Weld(obj.GuardRight, obj.HandleRight, CFrame.new(0, 1.1, 0))
  96. obj.GuardRightB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil)
  97. obj.GuardRightBM=add.Mesh("BlockMesh", obj.GuardRightB, Vector3.new(.5, 1, 1), nil, nil)
  98. obj.GuardRightBW=add.Weld(obj.GuardRightB, obj.HandleRight, CFrame.new(0, 1.25, 0))
  99. obj.BladeRight=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.BladeRight.Reflectance=.5
  100. obj.BladeRightM=add.Mesh("BlockMesh", obj.BladeRight, Vector3.new(.5, 1, 1), nil, nil)
  101. obj.BladeRightW=add.Weld(obj.BladeRight, obj.HandleRight, CFrame.new(0, 3, 0))
  102. obj.PointRight=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.PointRight.Reflectance=.5
  103. obj.PointM=add.Mesh("SpecialMesh", obj.PointRight, Vector3.new(.5, 1, 1), nil, "Wedge")
  104. obj.PointW=add.Weld(obj.PointRight, obj.BladeRight, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0))
  105. --Left
  106. obj.HandleLeft=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil)
  107. obj.HandleLeftW=add.Weld(obj.HandleLeft, body.ArmLeft, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  108. for i=1, 5 do
  109. obj.DesignLeft=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil)
  110. obj.DesignLeftW=add.Weld(obj.DesignLeft, obj.HandleLeft, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0))
  111. end
  112. obj.GuardLeft=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  113. obj.GuardLeftW=add.Weld(obj.GuardLeft, obj.HandleRight, CFrame.new(0, 1.1, 0))
  114. obj.GuardLeftB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil)
  115. obj.GuardLeftBM=add.Mesh("BlockMesh", obj.GuardLeftB, Vector3.new(.5, 1, 1), nil, nil)
  116. obj.GuardLeftBW=add.Weld(obj.GuardLeftB, obj.HandleLeft, CFrame.new(0, 1.25, 0))
  117. obj.BladeLeft=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.BladeLeft.Reflectance=.5
  118. obj.BladeLeftM=add.Mesh("BlockMesh", obj.BladeLeft, Vector3.new(.5, 1, 1), nil, nil)
  119. obj.BladeLeftW=add.Weld(obj.BladeLeft, obj.HandleLeft, CFrame.new(0, 3, 0))
  120. obj.PointLeft=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.PointLeft.Reflectance=.5
  121. obj.PointM=add.Mesh("SpecialMesh", obj.PointLeft, Vector3.new(.5, 1, 1), nil, "Wedge")
  122. obj.PointW=add.Weld(obj.PointLeft, obj.BladeLeft, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0))
  123. --Head
  124. obj.HandleHead=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil)
  125. obj.HandleHeadW=add.Weld(obj.HandleHead, body.Head, CFrame.new(0, -.25, -.5)*CFrame.Angles(0, 0, math.rad(90)))
  126. for i=1, 5 do
  127. obj.DesignHead=add.Part(modelB, false, false, "White", 0, Vector3.new(.3, .1, .1), nil)
  128. obj.DesignHeadW=add.Weld(obj.DesignHead, obj.HandleHead, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0))
  129. end
  130. obj.GuardHead=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil)
  131. obj.GuardHeadW=add.Weld(obj.GuardHead, obj.HandleHead, CFrame.new(0, 1.1, 0))
  132. obj.GuardHeadB=add.Part(modelB, false, false, "White", 0, Vector3.new(.25, .2, .3), nil)
  133. obj.GuardHeadBM=add.Mesh("BlockMesh", obj.GuardHeadB, Vector3.new(.5, 1, 1), nil, nil)
  134. obj.GuardHeadBW=add.Weld(obj.GuardHeadB, obj.HandleHead, CFrame.new(0, 1.25, 0))
  135. obj.BladeHead=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.BladeHead.Reflectance=.5
  136. obj.BladeHeadM=add.Mesh("BlockMesh", obj.BladeHead, Vector3.new(.5, 1, 1), nil, nil)
  137. obj.BladeHeadW=add.Weld(obj.BladeHead, obj.HandleHead, CFrame.new(0, 3, 0))
  138. obj.PointHead=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.PointHead.Reflectance=.5
  139. obj.PointM=add.Mesh("SpecialMesh", obj.PointHead, Vector3.new(.5, 1, 1), nil, "Wedge")
  140. obj.PointW=add.Weld(obj.PointHead, obj.BladeHead, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0))
  141. end
  142. function removeParts()
  143. p(function()
  144. for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end
  145. end)
  146. end
  147. function play(id, pitch)
  148. c(function()
  149. local sound=Instance.new("Sound", workspace)
  150. sound.Pitch=pitch
  151. sound.SoundId=id
  152. sound:play()
  153. wait(.5)
  154. sound:remove()
  155. end)
  156. end
  157.  
  158. --Variables--
  159. local speed=32
  160. local mana=100
  161. local trailDeb=false
  162. local hitDeb=false
  163. local keyDeb=false
  164. local loopDeb=false
  165.  
  166. local label=Instance.new("TextLabel", gui)
  167. label.Position=UDim2.new(0, 0, 0, 100)
  168. label.Size=UDim2.new(0, 200, 0, 20)
  169. label.BorderColor=BrickColor.Black()
  170. label.BackgroundColor=BrickColor.White()
  171. label.TextColor=BrickColor.Black()
  172. label.Font="ArialBold"
  173. label.FontSize="Size18"
  174. label.Text="100"
  175. local charge=Instance.new("TextLabel", label) charge.Transparency=.5
  176. charge.Position=UDim2.new(0, 0, 0, 0)
  177. charge.Size=UDim2.new(1, 0, 1, 0)
  178. charge.BorderColor=BrickColor.Black()
  179. charge.BackgroundColor=BrickColor.Blue()
  180. charge.TextColor=BrickColor.Black()
  181. charge.Font="ArialBold"
  182. charge.FontSize="Size18"
  183. charge.Text=""
  184.  
  185. local attackLabel=Instance.new("TextLabel", gui)
  186. attackLabel.Position=UDim2.new(0, 0, 0, 150)
  187. attackLabel.Size=UDim2.new(0, 150, 0, 50)
  188. attackLabel.BorderColor=BrickColor.Black()
  189. attackLabel.BackgroundColor=BrickColor.Black()
  190. attackLabel.TextColor=BrickColor.White()
  191. attackLabel.Font="ArialBold"
  192. attackLabel.FontSize="Size18"
  193. attackLabel.Text="DemonSlash(Q)"
  194. local attackLabel2=Instance.new("TextLabel", attackLabel)
  195. attackLabel2.Position=UDim2.new(0, 0, 1, 0)
  196. attackLabel2.Size=UDim2.new(1, 0, 1, 0)
  197. attackLabel2.BorderColor=BrickColor.Black()
  198. attackLabel2.BackgroundColor=BrickColor.Black()
  199. attackLabel2.TextColor=BrickColor.White()
  200. attackLabel2.Font="ArialBold"
  201. attackLabel2.FontSize="Size18"
  202. attackLabel2.Text="PoundHo(E)"
  203. local attackLabel3=Instance.new("TextLabel", attackLabel2)
  204. attackLabel3.Position=UDim2.new(0, 0, 1, 0)
  205. attackLabel3.Size=UDim2.new(1, 0, 1, 0)
  206. attackLabel3.BorderColor=BrickColor.Black()
  207. attackLabel3.BackgroundColor=BrickColor.Black()
  208. attackLabel3.TextColor=BrickColor.White()
  209. attackLabel3.Font="ArialBold"
  210. attackLabel3.FontSize="Size18"
  211. attackLabel3.Text="ThousandWorlds(R)"
  212. local attackLabel4=Instance.new("TextLabel", attackLabel3)
  213. attackLabel4.Position=UDim2.new(0, 0, 1, 0)
  214. attackLabel4.Size=UDim2.new(1, 0, 1, 0)
  215. attackLabel4.BorderColor=BrickColor.Black()
  216. attackLabel4.BackgroundColor=BrickColor.Black()
  217. attackLabel4.TextColor=BrickColor.White()
  218. attackLabel4.Font="ArialBold"
  219. attackLabel4.FontSize="Size18"
  220. attackLabel4.Text="Charge(Z)"
  221. local attackLabel5=Instance.new("TextLabel", attackLabel4)
  222. attackLabel5.Position=UDim2.new(0, 0, 1, 0)
  223. attackLabel5.Size=UDim2.new(1, 0, 1, 0)
  224. attackLabel5.BorderColor=BrickColor.Black()
  225. attackLabel5.BackgroundColor=BrickColor.Black()
  226. attackLabel5.TextColor=BrickColor.White()
  227. attackLabel5.Font="ArialBold"
  228. attackLabel5.FontSize="Size18"
  229. attackLabel5.Text="GreatTwister(F)"
  230. local attackLabel6=Instance.new("TextLabel", attackLabel5)
  231. attackLabel6.Position=UDim2.new(0, 0, 1, 0)
  232. attackLabel6.Size=UDim2.new(1, 0, 1, 0)
  233. attackLabel6.BorderColor=BrickColor.Black()
  234. attackLabel6.BackgroundColor=BrickColor.Black()
  235. attackLabel6.TextColor=BrickColor.White()
  236. attackLabel6.Font="ArialBold"
  237. attackLabel6.FontSize="Size18"
  238. attackLabel6.Text="Block(X)"
  239.  
  240. function hit(h)
  241. for i, v in pairs(modelB:children()) do if h==v then return end end
  242. for i, v in pairs(model:children()) do if h==v then return end end
  243. if runDeb==true and h.Parent~=char and h.Name~="Trailz" and h.Name~="Base" and hitDeb==false then hitDeb=true print("GotHit") h:remove()
  244. p(function()
  245. local pYPos=h.Position.y-(h.Size.y/2)
  246. local sYPos=obj.PointHead.Position.y
  247. local p=h:clone() p.Parent=workspace p.Anchored=true p.CanCollide=false p.Name="Trailz"
  248. local p2=h:clone() p2.Parent=workspace p2.Anchored=true p2.CanCollide=false p.Name="Trailz"
  249. p.formFactor="Custom"
  250. p2.formFactor="Custom"
  251. p.Size=Vector3.new(h.Size.x, sYPos-pYPos, h.Size.z)
  252. p2.Size=Vector3.new(h.Size.x, p2.Size.y-(sYPos-pYPos), h.Size.z)
  253. p.CFrame=h.CFrame*CFrame.new(0, -p2.Size.y/2, 0)
  254. p2.CFrame=h.CFrame*CFrame.new(0, p.Size.y/2, 0)
  255. c(function()
  256. for i=0, 1, .05 do
  257. wait()
  258. p.Transparency=i p2.Transparency=i
  259. end
  260. p:remove() p2:remove()
  261. end)
  262. end) wait()
  263. hitDeb=false
  264. end
  265. end
  266. function computePos(pos, pos2)
  267. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  268. torso.CFrame=CFrame.new(pos, pos3)
  269. return pos3
  270. end
  271. function nearTorso(pos, dis)
  272. local temp
  273. local distance=dis
  274. for i, v in pairs(workspace:children()) do
  275. if v:isA("Model") then
  276. temp=v:findFirstChild("Torso")
  277. local humanoid=v:findFirstChild("Humanoid")
  278. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  279. distance=(temp.CFrame.p-pos).magnitude
  280. return temp
  281. end
  282. end
  283. end
  284. end
  285. function trail(pos, cf)
  286. c(function()
  287. local old=(pos.CFrame*cf).p
  288. while trailDeb==true do
  289. wait()
  290. local new=(pos.CFrame*cf).p
  291. local mag=(old-new).magnitude
  292. local dis=(old+new)/2
  293. local trail=add.Part(model, true, false, "Pastel blue-green", 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trailz"
  294. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  295. old=new
  296. c(function()
  297. for i=1, 0, -.2 do
  298. wait()
  299. trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i)
  300. end
  301. trail:remove()
  302. end)
  303. c(function()
  304. for i=0, 1, .2 do
  305. wait()
  306. trail.Transparency=i
  307. end
  308. end)
  309. end
  310. end)
  311. end
  312.  
  313. local Attacks={
  314. ["DemonSlash"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) mana=mana-5
  315. for i=0, 1, .1 do wait()
  316. animate.ArmLeft(CFrame.Angles(math.rad(90)*i, -math.rad(45)*i, math.rad(15)*i))
  317. animate.ArmRight(CFrame.Angles(math.rad(90)*i, math.rad(45)*i, -math.rad(15)*i))
  318. end
  319. trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new())
  320. for i, v in pairs(modelB:children()) do
  321. connection=v.Touched:connect(hit)
  322. end
  323. play("rbxasset://sounds//swordslash.wav", 1)
  324. for i=0, 1, .2 do wait()
  325. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*(10*i)
  326. animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0))
  327. animate.ArmLeft(CFrame.Angles(math.rad(90), -math.rad(45)+(math.rad(45)*i), math.rad(15)-(math.rad(150)*i)))
  328. animate.ArmRight(CFrame.Angles(math.rad(90), math.rad(45)+(-math.rad(45)*i), -math.rad(15)-(-math.rad(150)*i)))
  329. animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0))
  330. animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0))
  331. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(90)*i)
  332. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(90)*i)
  333. end
  334. wait(1)
  335. for i=1, 0, -.1 do wait()
  336. animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0))
  337. animate.ArmLeft(CFrame.Angles(math.rad(90)*i, 0, -math.rad(90)*i))
  338. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(90)*i))
  339. animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0))
  340. animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0))
  341. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(135)*i)
  342. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(135)*i)
  343. end
  344. trailDeb=false
  345. human.WalkSpeed=speed
  346. end;
  347. ["PoundHo"]=function(mouse) human.WalkSpeed=0
  348. for i=0, 1, .1 do wait()
  349. animate.Torso(CFrame.new(0, 2.5*i, -5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0))
  350. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
  351. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  352. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(180)*i)
  353. end
  354. local spin=45
  355. local rotate=45
  356. trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new()) trail(obj.PointHead, CFrame.new())
  357. for i, v in pairs(modelB:children()) do
  358. connection=v.Touched:connect(hit)
  359. end
  360. while loopDeb==true and mana>0 do wait() spin=spin+rotate mana=mana-1
  361. --[[local wind=add.Part(model, true, false, "Cyan", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)) wind.Name="Trailz"
  362. local windM=add.Mesh("SpecialMesh", wind, Vector3.new(1, 1, 1), nil, "File") windM.MeshId="http://www.roblox.com/asset/?id=3270017"
  363. c(function()
  364. for i=0, 3, .2 do wait()
  365. wind.CFrame=body.Torso.CFrame*CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  366. wind.Mesh.Scale=wind.Mesh.Scale+Vector3.new(i, i, i)
  367. end
  368. wind:remove()
  369. end)]]
  370. computePos((torso.CFrame*CFrame.new(0, 0, -1)*CFrame.Angles(-math.rad(90), 0, 0)).p, mouse.Hit.p)
  371. animate.Torso(CFrame.new(0, 2.5, -5)*CFrame.Angles(-math.rad(90), -math.rad(spin), 0))
  372. end
  373. trailDeb=false
  374. for i=1, 0, -.1 do wait() play("rbxasset://sounds//swordslash.wav", 1)
  375. animate.Torso(CFrame.new(0, 2.5*i, -5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0))
  376. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
  377. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  378. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(180)*i)
  379. end
  380. human.WalkSpeed=speed
  381. end;
  382. ["ThousandWorlds"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) mana=mana-20
  383. for i=0, 1, .1 do wait()
  384. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  385. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i))
  386. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(45)*i, math.rad(180)*i)
  387. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), -math.rad(45)*i, 0)
  388. end
  389. trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new())
  390. for i, v in pairs(modelB:children()) do
  391. connection=v.Touched:connect(hit)
  392. end
  393. for i=0, 50, 1 do wait() play("http://www.roblox.com/asset/?id=3931318", 1)
  394. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(45), math.rad(180)+i)
  395. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), -math.rad(45), i)
  396. end
  397. play("rbxasset://sounds//swordslash.wav", 1)
  398. for i=0, 1, .2 do wait()
  399. local fakeP=add.Part(workspace, true, false, "White", 0, Vector3.new(5, 5, 5), CFrame.new((torso.CFrame*CFrame.new(0, 0, 1.5)).p, torso.CFrame.p)*CFrame.Angles(math.rad(90), 0, 0)) fakeP.Name="Trailz"
  400. local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=20329976"
  401. c(function()
  402. for i=0, 1, .05 do
  403. wait()
  404. fakeP.Transparency=i
  405. end
  406. fakeP:remove()
  407. end)
  408. c(function()
  409. for i=1, 20, 1 do
  410. wait()
  411. mesh.Scale=Vector3.new(i, i/2, i)
  412. end
  413. end)
  414. torso.CFrame=torso.CFrame+torso.CFrame.lookVector*(20*i)
  415. animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0))
  416. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, 0))
  417. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0))
  418. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(90)*i)
  419. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(90)*i)
  420. animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0))
  421. animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0))
  422. end
  423. trailDeb=false
  424. wait(3)
  425. for i=1, 0, -.1 do wait()
  426. animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0))
  427. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, 0))
  428. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(-math.rad(90)*i, 0, 0))
  429. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(90)*i)
  430. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(90)*i)
  431. animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0))
  432. animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0))
  433. end
  434. human.WalkSpeed=speed
  435. end;
  436. ["Charge"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p)
  437. for i=0, 1, .1 do wait()
  438. animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0))
  439. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(180)-(-math.rad(90)*i)))
  440. animate.ArmRight(CFrame.Angles(0, 0, -math.rad(180)-(math.rad(90)*i)))
  441. animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0))
  442. animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0))
  443. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(45)*i)
  444. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  445. end
  446. while loopDeb==true do wait() if mana>=0 and mana<100 then mana=mana+1 end play("http://www.roblox.com/asset/?id=2101137", 1)
  447. local aura=add.Part(model, true, false, "Really black", .5, Vector3.new(1, 1, 1), torso.CFrame*CFrame.new(0, -4, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) aura.Name="Trailz"
  448. local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976"
  449. local aura2=add.Part(model, true, false, "Really black", .5, Vector3.new(5, 5, 5), torso.CFrame*CFrame.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))*CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))))
  450. aura2.Name="Trailz"
  451. c(function()
  452. for i=0, 3, .2 do wait()
  453. auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i)
  454. end
  455. c(function()
  456. for i=.5, 1, .1 do
  457. wait()
  458. aura.Transparency=i aura2.Transparency=i
  459. end
  460. end)
  461. aura:remove() aura2:remove()
  462. end)
  463. end
  464. for i=1, 0, -.1 do wait()
  465. animate.Torso(CFrame.new(0, -1.5*i, 0)*CFrame.Angles(-math.rad(45)*i, 0, 0))
  466. animate.ArmLeft(CFrame.Angles(0, 0, (-math.rad(90)*i)))
  467. animate.ArmRight(CFrame.Angles(0, 0, (math.rad(90)*i)))
  468. animate.LegLeft(CFrame.new(0, 1.5*i, -.5*i)*CFrame.Angles(math.rad(45)*i, 0, 0))
  469. animate.LegRight(CFrame.Angles(-math.rad(45)*i, 0, 0))
  470. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, -math.rad(45)*i)
  471. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  472. end
  473. human.WalkSpeed=speed
  474. end;
  475. ["GreatTwister"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p) mana=mana-40
  476. for i=0, 1, .1 do wait()
  477. animate.Torso(CFrame.new(0, 0, -50*i))
  478. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
  479. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  480. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), math.rad(180)*i, 0)
  481. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  482. end
  483. trailDeb=true trail(obj.PointLeft, CFrame.new()) trail(obj.PointRight, CFrame.new())
  484. local tornado=add.Part(workspace, true, false, "Cyan", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.Angles(math.rad(180), 0, 0)) tornado.Name="Trailz"
  485. local tornadoM=add.Mesh("SpecialMesh", tornado, Vector3.new(1, 1, 1), nil, "File") tornadoM.MeshId="http://www.roblox.com/asset/?id=36755354"
  486. local spin=35
  487. for i=0, 50, 1 do wait() play("rbxasset://sounds//swordslash.wav", 1)
  488. animate.Torso(CFrame.new(0, 0, -50)*CFrame.Angles(0, -math.rad(i*45), 0))
  489. tornado.CFrame=body.Torso.CFrame*CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(180), 0, 0)
  490. tornado.Size=Vector3.new(i, i, i)
  491. tornadoM.Scale=Vector3.new(i, i, i)
  492. end
  493. c(function() c(function()wait(10) tornado:remove() end) while true do wait() spin=spin+35 tornado.Touched:connect(hit) tornado.CFrame=tornado.CFrame*CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(spin), 0) end end)
  494. for i=1, 0, -.1 do wait()
  495. animate.Torso(CFrame.new(0, 0, -50*i)*CFrame.Angles(0, -math.rad(i*45), 0))
  496. animate.Torso(CFrame.Angles(0, 0, 0))
  497. animate.ArmLeft(CFrame.Angles(0, 0, -math.rad(90)*i))
  498. animate.ArmRight(CFrame.Angles(0, 0, math.rad(90)*i))
  499. obj.HandleLeftW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), math.rad(180)*i, 0)
  500. obj.HandleRightW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0)
  501. end
  502. trailDeb=false
  503. human.WalkSpeed=speed
  504. end;
  505. ["Block"]=function(mouse) human.WalkSpeed=0 computePos(torso.CFrame.p, mouse.Hit.p)
  506. for i=0, 1, .1 do wait()
  507. animate.ArmLeft(CFrame.Angles(math.rad(90)*i, -math.rad(45)*i, math.rad(15)*i))
  508. animate.ArmRight(CFrame.Angles(math.rad(90)*i, math.rad(45)*i, -math.rad(15)*i))
  509. end
  510. local shieldPart=add.Part(model, true, false, "White", 1, Vector3.new(10, 10, 1), torso.CFrame+torso.CFrame.lookVector*1.5)
  511. while loopDeb==true do wait() computePos(torso.CFrame.p, mouse.Hit.p) shieldPart.CFrame=torso.CFrame+torso.CFrame.lookVector*1.5
  512. shieldPart.Touched:connect(function(h) while runDeb==false do wait() end
  513. if h.Parent~=char and h.Parent~=modelB and h.Parent~=model and h.Name~="Trailz" and h.Name~="Base" and hitDeb==false then hitDeb=true print(h.Name)
  514. local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p))
  515. local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  516. c(function()
  517. for i=0, 1, .05 do
  518. wait()
  519. fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0)
  520. end
  521. fakeP:remove()
  522. end)
  523. c(function()
  524. for i=0, 1, .05 do
  525. wait()
  526. fakeP.Transparency=i
  527. end
  528. end)
  529. h.Anchored=false
  530. local bp=Instance.new("BodyPosition", h) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=(CFrame.new(torso.CFrame.p, h.CFrame.p)*CFrame.new(0, 0, -50)).p
  531. h.Velocity=Vector3.new(0, 0, 0) h.RotVelocity=Vector3.new(0, 0, 0)
  532. game.Debris:addItem(bp, .2)
  533. wait()
  534. hitDeb=false
  535. end
  536. end)
  537. end
  538. shieldPart:remove()
  539. for i=1, 0, -.1 do wait()
  540. animate.ArmLeft(CFrame.Angles(math.rad(90)*i, -math.rad(45)*i, math.rad(15)*i))
  541. animate.ArmRight(CFrame.Angles(math.rad(90)*i, math.rad(45)*i, -math.rad(15)*i))
  542. end
  543. human.WalkSpeed=speed
  544. end
  545. }
  546.  
  547. bin.Selected:connect(function(mouse) createParts() human.WalkSpeed=speed
  548. for i=0, 1, .1 do wait()
  549. animate.ArmLeft(CFrame.Angles(0, math.rad(45)*i, -math.rad(45)*i))
  550. animate.ArmRight(CFrame.Angles(0, -math.rad(45)*i, math.rad(45)*i))
  551. end
  552. human.Running:connect(function(speed)
  553. if speed>0 then while keyDeb==true do wait() end
  554. animate.ArmLeft(CFrame.Angles(0, math.rad(45), -math.rad(45)))
  555. animate.ArmRight(CFrame.Angles(0, -math.rad(45), math.rad(45)))
  556. body.LegLeft.Transparency=1 body.LegRight.Transparency=1
  557. leg.Left.Transparency=0 leg.Right.Transparency=0
  558. end
  559. end)
  560. mouse.KeyDown:connect(function(key)
  561. if key=="q" and keyDeb==false and mana>=5 then keyDeb=true runDeb=true
  562. Attacks.DemonSlash(mouse)
  563. keyDeb=false runDeb=false
  564. end
  565. if key=="e" and keyDeb==false and mana>=0 then keyDeb=true runDeb=true loopDeb=true
  566. Attacks.PoundHo(mouse)
  567. keyDeb=false runDeb=false
  568. end
  569. if key=="r" and keyDeb==false and mana>=20 then keyDeb=true runDeb=true loopDeb=true
  570. Attacks.ThousandWorlds(mouse)
  571. keyDeb=false runDeb=false
  572. end
  573. if key=="z" and keyDeb==false then keyDeb=true runDeb=true loopDeb=true
  574. Attacks.Charge(mouse)
  575. keyDeb=false runDeb=false
  576. end
  577. if key=="f" and keyDeb==false and mana>=40 then keyDeb=true runDeb=true loopDeb=true
  578. Attacks.GreatTwister(mouse)
  579. keyDeb=false runDeb=false
  580. end
  581. if key=="x" and keyDeb==false and mana>=0 then keyDeb=true runDeb=true loopDeb=true
  582. Attacks.Block(mouse)
  583. keyDeb=false runDeb=false
  584. end
  585. end)
  586. mouse.KeyUp:connect(function(key)
  587. if key=="e" and keyDeb==true then loopDeb=false end
  588. if key=="x" and keyDeb==true then loopDeb=false end
  589. if key=="z" and keyDeb==true then loopDeb=false end
  590. end)
  591. c(function() while true do wait() label.Text=mana charge.Size=UDim2.new(mana/100, 0, 1, 0) end end)
  592. end)
  593. bin.Deselected:connect(function() removeParts() end)--mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement