V3rmLua33

Rare

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