Advertisement
mathmasterphil

Katana, Hopefully

Feb 1st, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.33 KB | None | 0 0
  1. local antiSteal="mathmasterphil"
  2. local player=game.Players.LocalPlayer
  3. local char=player.Character
  4. repeat wait() until player and char
  5. local torso=char.Torso
  6. local head=char.Head
  7. local human=char.Humanoid
  8. local hat
  9. for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end
  10. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  11. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  12. local c=function(f) coroutine.resume(coroutine.create(f)) end
  13. pcall(function() torso.roblox:clone().Parent=fake.Torso torso.roblox:remove() head.face:remove() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end v.Transparency=1 end end)
  14. local add={
  15. Part=function(par, a, c, col, t, s, cf)
  16. 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()
  17. return p
  18. end,
  19. Weld=function(par, p1, cf)
  20. local w=Instance.new("Weld", par) w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new()
  21. return w
  22. end,
  23. Mesh=function(ins, par, s, of, t)
  24. local m=Instance.new(ins, par) m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() pcall(function() m.MeshType=t end)
  25. return m
  26. end
  27. }
  28. local scriptname="DSword"
  29. pcall(function() char[scriptname]:remove() end)
  30. local model=Instance.new("Model", char) model.Name=scriptname
  31. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=model.Name
  32. local skincolor="Really black"
  33. local fake={}
  34. local weld={}
  35. local mesh={}
  36. fake.arm={}
  37. fake.leg={}
  38. fake.torso=nil
  39. fake.Mesh={} fake.Weld={}
  40. --====--
  41. weld.arm={}
  42. weld.leg={}
  43. weld.torso=nil
  44. --====--
  45. mesh.arm={}
  46. mesh.leg={}
  47. --==FAKE, MESH, WELDZ==--
  48. fake.arm.left=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  49. fake.arm.right=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  50. fake.leg.left=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  51. fake.leg.right=add.Part(model, false, false, skincolor, 0, Vector3.new(1, 1, 1), nil)
  52. fake.torso=add.Part(model, false, false, skincolor, 0, Vector3.new(2, 2, 1), nil)
  53. fake.head=head:clone() fake.head.Parent=model fake.head.BrickColor=BrickColor.new(skincolor) fake.head.Transparency=0
  54. -------------------------
  55. mesh.arm.left=add.Mesh("BlockMesh", fake.arm.left, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  56. mesh.arm.right=add.Mesh("BlockMesh", fake.arm.right, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  57. mesh.leg.left=add.Mesh("BlockMesh", fake.leg.left, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  58. mesh.leg.right=add.Mesh("BlockMesh", fake.leg.right, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil)
  59. -------------------------
  60. weld.arm.left=add.Weld(fake.arm.left, fake.torso, CFrame.new(-1.5, .5, 0))
  61. weld.arm.right=add.Weld(fake.arm.right, fake.torso, CFrame.new(1.5, .5, 0))
  62. weld.leg.left=add.Weld(fake.leg.left, fake.torso, CFrame.new(-.5, -1.5, 0))
  63. weld.leg.right=add.Weld(fake.leg.right, fake.torso, CFrame.new(.5, -1.5, 0))
  64. weld.torso=add.Weld(fake.torso, torso, nil)
  65. weld.head=add.Weld(fake.head, fake.torso, CFrame.new(0, 1.5, 0))
  66. pcall(function() torso.roblox:remove() head.face:remove() for i, v in pairs(char:children()) do if v.ClassName=="Hat" then v:remove() end v.Transparency=1 end end)
  67. --==SIGN==--
  68. fake.Rot=add.Part(model, false, false, "Really black", 0, Vector3.new(1, 1, 1), nil)
  69. fake.Mesh.Rot=add.Mesh("CylinderMesh", fake.Rot, Vector3.new(1.5, .5, 1.5), nil, nil)
  70. fake.Weld.Rot=add.Weld(fake.Rot, fake.torso, CFrame.new(0, 0, -.3)*CFrame.Angles(math.rad(90), 0, 0))
  71. fake.L=add.Part(model, false, false, "Bright yellow", 0, Vector3.new(1, 1, 1), nil)
  72. fake.Mesh.L=add.Mesh("BlockMesh", fake.L, Vector3.new(.25, .5, 1), nil, nil)
  73. fake.Weld.L=add.Weld(fake.L, fake.Rot, CFrame.new(.25, -0.05, 0))
  74. fake.L2=add.Part(model, false, false, "Bright yellow", 0, Vector3.new(1, 1, 1), nil)
  75. fake.Mesh.L2=add.Mesh("BlockMesh", fake.L2, Vector3.new(.75, .5, .25), nil, nil)
  76. fake.Weld.L2=add.Weld(fake.L2, fake.Rot, CFrame.new(0, -0.05, .4))
  77. c(function() for i=0, math.huge, .1 do wait() fake.Weld.Rot.C0=CFrame.Angles(0, i, 0) end end)
  78. --==MANA==--
  79. local gui=Instance.new("ScreenGui", player.PlayerGui)
  80. local label=Instance.new("TextLabel", gui)
  81. label.Text="--==100%==--"
  82. label.Position=UDim2.new(0, 0, 0, 200)
  83. label.Size=UDim2.new(0, 200, 0, 20)
  84. label.BorderColor=BrickColor.Black() label.BackgroundColor=BrickColor.White()
  85. label.TextColor=BrickColor.Black()
  86. local charge=label:clone() charge.Parent=label
  87. charge.Position=UDim2.new()
  88. charge.Text=""
  89. charge.Size=UDim2.new(1, 0, 1, 0)
  90. charge.BorderColor=BrickColor.Black() charge.BackgroundColor=BrickColor.Yellow() charge.Transparency=.5
  91. ----------------------------------------------------------------------------------------------
  92. local colorA="Cyan"
  93. local colorB="Really black"
  94. local bladecolor="Medium stone grey"
  95. local mana=100
  96. c(function()
  97. while true do wait()
  98. label.Text="--=="..mana.."%==--"
  99. charge.Size=UDim2.new(mana/100, 0, 1, 0)
  100. end
  101. end)
  102. --bag--
  103. local bag=add.Part(model, false, false, colorA, 0, Vector3.new(.5, 4, .2), nil)
  104. local bagweld=add.Weld(bag, fake.torso, CFrame.new(0, 0, .6)*CFrame.Angles(0, 0, -math.rad(45)))
  105. local tip=add.Part(model, false, false, colorA, 0, Vector3.new(.2, 1, .5), nil)
  106. local tipmesh=add.Mesh("SpecialMesh", tip, Vector3.new(1, 1, 1), nil, "Wedge")
  107. local tipweld=add.Weld(tip, bag, CFrame.new(0, -2.5, 0)*CFrame.Angles(-math.rad(90), -math.rad(90), math.rad(90)))
  108. local a=add.Part(model, false, false, colorB, 0, Vector3.new(.55, .5, .25), nil)
  109. local aweld=add.Weld(a, bag, nil)
  110. local b=add.Part(model, false, false, colorB, 0, Vector3.new(.55, .5, .25), nil)
  111. local bweld=add.Weld(b, bag, CFrame.new(0, -1, 0))
  112. local c2=add.Part(model, false, false, colorB, 0, Vector3.new(.55, .5, .25), nil)
  113. local cweld=add.Weld(c2, bag, CFrame.new(0, 1, 0))
  114. local d=add.Part(model, false, false, colorB, 0, Vector3.new(.25, 3, .25), nil)
  115. local dweld=add.Weld(d, bag, nil)
  116. local tipe=add.Part(model, false, false, colorB, 0, Vector3.new(.25, .5, .25), nil)
  117. local tipmeshe=add.Mesh("SpecialMesh", tipe, Vector3.new(1, 1, 1), nil, "Wedge")
  118. local tipwelde=add.Weld(tipe, tip, CFrame.new(0, -.2, 0))
  119. --sword--
  120. local smodel=Instance.new("Model", model) smodel.Name="DSwordB"
  121. local handle=add.Part(smodel, false, false, colorB, 0, Vector3.new(.2, 2, .2), nil)
  122. local handleweld=add.Weld(handle, bag, CFrame.new(0, 3, 0)*CFrame.Angles(0, -math.rad(90), math.rad(180)))
  123. local handlemesh=add.Mesh("CylinderMesh", handle, Vector3.new(1, 1, 1), nil, nil)
  124. local stip=add.Part(smodel, false, false, colorA, 0, Vector3.new(.4, .4, .4), nil)
  125. local stipweld=add.Weld(stip, handle, CFrame.new(0, -1, 0))
  126. local stipmesh=add.Mesh("SpecialMesh", stip, Vector3.new(1, 1, 1), nil, "Sphere")
  127. local handleb=add.Part(smodel, false, false, colorA, 0, Vector3.new(.55, .1, .55), nil)
  128. local handlebmesh=add.Mesh("CylinderMesh", handleb, Vector3.new(1, .8, 1), nil, nil)
  129. local handlebweld=add.Weld(handleb, handle, CFrame.new(0, 1, 0))
  130. local blade=add.Part(smodel, false, false, bladecolor, 0, Vector3.new(.1, 3, .4), nil) blade.Reflectance=.5
  131. local bladeweld=add.Weld(blade, handleb, CFrame.new(0, 1.5, 0))
  132. local blademesh=add.Mesh("BlockMesh", blade, Vector3.new(.5, 1, 1), nil, nil)
  133. local bladetip=add.Part(smodel, false, false, bladecolor, 0, Vector3.new(.1, 1, .4), nil) bladetip.Reflectance=.5
  134. local bladetipmesh=add.Mesh("SpecialMesh", bladetip, Vector3.new(.5, 1, 1), nil, "Wedge")
  135. local bladetipweld=add.Weld(bladetip, blade, CFrame.new(0, 2, 0))
  136. local a=add.Part(smodel, false, false, colorB, 0, Vector3.new(.1, .25, .4), nil)
  137. local amesh=add.Mesh("BlockMesh", a, Vector3.new(.8, 1, 1.1), nil, nil)
  138. local aweld=add.Weld(a, handleb, CFrame.new(0, .22, 0))
  139. local b=add.Part(smodel, false, false, colorB, 0, Vector3.new(.1, .5, .1), nil)
  140. local bmesh=add.Mesh("BlockMesh", b, Vector3.new(.5, 1, .5), nil, nil)
  141. local bweld=add.Weld(b, a, CFrame.new(0, -.1, .3)*CFrame.Angles(math.rad(135), 0, 0))
  142. local cc=add.Part(smodel, false, false, colorB, 0, Vector3.new(.1, .75, .1), nil)
  143. local cmesh=add.Mesh("BlockMesh", cc, Vector3.new(.5, 1, .5), nil, nil)
  144. local cweld=add.Weld(cc, handleb, CFrame.new(0, -.25, .22)*CFrame.Angles(-math.rad(135), 0, 0))
  145. local d=add.Part(smodel, false, false, colorB, 0, Vector3.new(.35, 1, .1), nil)
  146. local dweld=add.Weld(d, blade, CFrame.new(0, 0, 0))
  147. local dmesh=add.Mesh("BlockMesh", d, Vector3.new(.6, 2.8, 1), nil, nil)
  148. local tdeb=false
  149. local bdeb=false
  150. local rdeb=false
  151. local deb=false
  152. local tsize=.5
  153. local move=1
  154. local dmg=math.random(5, 10)
  155. local wspeed=32
  156. local hDeb=false
  157. local dmg=math.random(5, 10)
  158. function hit(h)
  159. local humanoid=h.Parent:findFirstChild("Humanoid")
  160. if humanoid and h.Parent~=char and hDeb==false then
  161. hDeb=true
  162. --c(function()
  163. local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p))
  164. local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017"
  165. c(function()
  166. for i=0, 1, .05 do
  167. wait()
  168. fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0)
  169. end
  170. fakeP:remove()
  171. end)
  172. c(function()
  173. for i=0, 1, .05 do
  174. wait()
  175. fakeP.Transparency=i
  176. end
  177. end)
  178. humanoid.Health=humanoid.Health-dmg
  179. local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg
  180. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  181. local fakeP=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) fakeP.Name="Head"
  182. local fakeMesh=add.Mesh("CylinderMesh", fakeP, Vector3.new(1, .2, 1), nil, nil)
  183. local bp=Instance.new("BodyPosition", fakeP) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  184. game.Debris:addItem(fakeM, 2)
  185. pcall(function()h.Parent:findFirstChild("Torso").RotVelocity=Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))end)
  186. pcall(function()h.Parent:findFirstChild("Torso").Velocity=Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))end)
  187. wait()
  188. hDeb=false
  189. --end)
  190. end
  191. end
  192. for i, v in pairs(smodel:children()) do v.Touched:connect(hit) end
  193. function trail(pos, cf, col)
  194. c(function()
  195. local old=(pos.CFrame*cf).p
  196. while tdeb==true do
  197. wait()
  198. local new=(pos.CFrame*cf).p
  199. local mag=(old-new).magnitude
  200. local dis=(old+new)/2
  201. local trail=add.Part(workspace, true, false, col, 0, Vector3.new(tsize, mag, tsize), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0))
  202. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  203. old=new
  204. c(function()
  205. for i=1, 0, -.2 do
  206. wait()
  207. trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i)
  208. end
  209. trail:remove()
  210. end)
  211. c(function()
  212. for i=0, 1, .2 do
  213. wait()
  214. trail.Transparency=i
  215. end
  216. end)
  217. end
  218. end)
  219. end
  220.  
  221. local actions={
  222. ["Spin"]=function()
  223. if tdeb==false then tdeb=true
  224. trail(bladetip, CFrame.new(), bladecolor)
  225. for i=0, 1, .1 do
  226. wait()
  227. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(90)*i)
  228. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  229. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(180))
  230. end
  231. c(function()
  232. while tdeb do wait()
  233. local trail=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), fake.torso.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
  234. local tMesh=add.Mesh("BlockMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  235. old=new
  236. c(function()
  237. for i=0, 2, .2 do
  238. wait()
  239. trail.Mesh.Scale=trail.Mesh.Scale+Vector3.new(i, i, i)
  240. end
  241. trail:remove()
  242. end)
  243. c(function()
  244. for i=0, 1, .1 do
  245. wait()
  246. trail.Transparency=i
  247. end
  248. end)
  249. end
  250. end)
  251. for i=1, 100 do
  252. wait()
  253. weld.torso.C1=CFrame.Angles(0, math.rad(45)*i, 0)
  254. end
  255. tdeb=false
  256. for i=1, 0, -.1 do
  257. wait()
  258. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(90)*i)
  259. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  260. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
  261. end
  262. end
  263. end;
  264. ["ForeSpin"]=function()
  265. if tdeb==false then tdeb=true
  266. trail(bladetip, CFrame.new(), bladecolor)
  267. for i=0, 1, .1 do
  268. wait()
  269. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, math.rad(45)*i)
  270. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, -math.rad(45)*i)
  271. handleweld.C1=CFrame.new(0, -1.5+(-.5*i), 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(225))
  272. end
  273. for i=1, 100 do
  274. wait()
  275. weld.torso.C1=CFrame.new(0, 0, -i/10)*CFrame.Angles(-math.rad(45)*i, 0, 0)
  276. end
  277. tdeb=false
  278. for i=1, 0, -.1 do
  279. wait()
  280. weld.torso.C1=CFrame.new(0, 0, -10*i)
  281. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, math.rad(45)*i)
  282. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(180)*i, 0, -math.rad(45)*i)
  283. handleweld.C1=CFrame.new(0, -1.5+(-.5*i), 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180)-(math.rad(180)*i), math.rad(225))
  284. end
  285. end
  286. end;
  287. ["Coup"]=function()
  288. if tdeb==false then tdeb=true
  289. trail(bladetip, CFrame.new(), bladecolor)
  290. for i=0, 1, .1 do
  291. wait()
  292. weld.torso.C1=CFrame.new(0, 0, -10*i)*CFrame.Angles(0, math.rad(90)*i, 0)
  293. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  294. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
  295. end
  296. tdeb=false
  297. for i=1, 0, -.1 do
  298. wait()
  299. weld.torso.C1=CFrame.new(0, 0, -10*i)*CFrame.Angles(0, math.rad(90)*i, 0)
  300. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  301. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
  302. end
  303. end
  304. end;
  305. ["Fence"]=function()
  306. if tdeb==false then tdeb=true
  307. trail(bladetip, CFrame.new(), bladecolor)
  308. for i=0, 1, .1 do
  309. wait()
  310. weld.torso.C1=CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(90)*i, 0)
  311. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  312. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  313. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(180))
  314. end
  315. c(function()
  316. while tdeb do wait()
  317. local trail=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), bladetip.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
  318. local tMesh=add.Mesh("BlockMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  319. old=new
  320. c(function()
  321. for i=0, 2, .2 do
  322. wait()
  323. trail.Mesh.Scale=trail.Mesh.Scale+Vector3.new(i, i, i)
  324. end
  325. trail:remove()
  326. end)
  327. c(function()
  328. for i=0, 1, .2 do
  329. wait()
  330. trail.Transparency=i
  331. end
  332. end)
  333. end
  334. end)
  335. for i=1, 100 do
  336. wait()
  337. weld.torso.C1=CFrame.new(0, 0, -i)*CFrame.Angles(0, math.rad(90), 0)
  338. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90))
  339. end
  340. for i=1, 0, -.1 do
  341. wait()
  342. weld.torso.C1=CFrame.new(0, 0, -100*i)*CFrame.Angles(0, math.rad(90)*i, 0)
  343. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  344. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i)
  345. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
  346. end
  347. tdeb=false
  348. end
  349. end;
  350. ["CHARGE"]=function()
  351. human.WalkSpeed=0
  352. for i=0, 1, .1 do
  353. wait()
  354. weld.torso.C1=CFrame.Angles(0, math.rad(45)*i, 0)
  355. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  356. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  357. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180)-(math.rad(180)*i), math.rad(180))
  358. end
  359. while bdeb do wait()
  360. if mana>0 and mana<100 then mana=mana+1 end
  361. local trail=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), fake.torso.CFrame*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
  362. local tMesh=add.Mesh("BlockMesh", trail, Vector3.new(1, 1, 1), nil, nil)
  363. local trailb=add.Part(workspace, true, false, colorA, 0, Vector3.new(4, 2, 4), fake.torso.CFrame*CFrame.new(0, -3, 0)*CFrame.Angles(math.rad(90), 0, 0))
  364. local tMeshb=add.Mesh("SpecialMesh", trailb, Vector3.new(1, 1, 1), nil, "File") tMeshb.MeshId="http://www.roblox.com/asset/?id=3270017"
  365. local trailc=add.Part(workspace, true, false, colorA, 0, Vector3.new(1, 1, 1), fake.torso.CFrame*CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))*CFrame.Angles(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)))
  366. local tMeshc=add.Mesh("BlockMesh", trailc, Vector3.new(1, 1, 1), nil, nil)
  367. old=new
  368. c(function()
  369. for i=0, 2.5, .2 do
  370. wait()
  371. trail.Mesh.Scale=trail.Mesh.Scale+Vector3.new(i, i, i)
  372. trailb.Mesh.Scale=trailb.Mesh.Scale+Vector3.new(i, i, 0)
  373. trailc.Mesh.Scale=trailc.Mesh.Scale+Vector3.new(i, i, i)
  374. end
  375. trail:remove()
  376. trailb:remove()
  377. end)
  378. c(function()
  379. for i=0, 1, .1 do
  380. wait()
  381. trail.Transparency=i
  382. trailb.Transparency=i
  383. trailc.Transparency=i
  384. end
  385. end)
  386. end
  387. for i=1, 0, -.1 do
  388. wait()
  389. weld.torso.C1=CFrame.Angles(0, math.rad(45)*i, 0)
  390. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i)
  391. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  392. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
  393. end
  394. human.WalkSpeed=16
  395. end;
  396. }
  397.  
  398. bin.Selected:connect(function(mouse)
  399. mouse.KeyDown:connect(function(k)
  400. if k=="z" and bdeb==false and mana>=20 then mana=mana-20 bdeb=true actions.Spin() bdeb=false end
  401. if k=="x" and bdeb==false and mana>=5 then mana=mana-5 bdeb=true actions.Coup() bdeb=false end
  402. if k=="c" and bdeb==false and mana>=25 then mana=mana-25 bdeb=true actions.ForeSpin() bdeb=false end
  403. if k=="f" and bdeb==false and mana>=30 then mana=mana-30 bdeb=true actions.Fence() bdeb=false end
  404. if k=="q" and bdeb==false then bdeb=true actions.CHARGE() end
  405. end)
  406. mouse.KeyUp:connect(function(k)
  407. if k=="q" and bdeb==true then bdeb=false end
  408. end)
  409. human.Running:connect(function(speed)
  410. if speed>5 then
  411. while bdeb do wait() end
  412. for i=0, 1, .1 do
  413. wait()
  414. weld.torso.C1=CFrame.Angles(0, math.rad(90)*i, 0)
  415. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, math.rad(45)*i, -math.rad(45)*i)
  416. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
  417. end
  418. else
  419. while bdeb do wait() end
  420. for i=1, 0, -.1 do
  421. wait()
  422. weld.torso.C1=CFrame.Angles(0, math.rad(90)*i, 0)
  423. weld.arm.left.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, math.rad(45)*i, -math.rad(45)*i)
  424. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(90)*i)
  425. end
  426. end
  427. end)
  428. for i=0, 1, .1 do
  429. wait()
  430. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  431. handleweld.C1=CFrame.new(0, 3+(3*i), 0)*CFrame.Angles(0, -math.rad(90), math.rad(180))
  432. handle.Transparency=i
  433. stip.Transparency=i
  434. handleb.Transparency=i
  435. blade.Transparency=i
  436. bladetip.Transparency=i
  437. a.Transparency=i
  438. b.Transparency=i
  439. cc.Transparency=i
  440. d.Transparency=i
  441. end
  442. handleweld.Part1=fake.arm.right
  443. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(0, math.rad(180), math.rad(180))
  444. for i=1, 0, -.1 do
  445. wait()
  446. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  447. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
  448. handle.Transparency=i
  449. stip.Transparency=i
  450. handleb.Transparency=i
  451. blade.Transparency=i
  452. bladetip.Transparency=i
  453. a.Transparency=i
  454. b.Transparency=i
  455. cc.Transparency=i
  456. d.Transparency=i
  457. end
  458. end)
  459. bin.Deselected:connect(function()
  460. for i=0, 1, .1 do
  461. wait()
  462. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  463. handleweld.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90)-(math.rad(90)*i), math.rad(180), math.rad(180))
  464. handle.Transparency=i
  465. stip.Transparency=i
  466. handleb.Transparency=i
  467. blade.Transparency=i
  468. bladetip.Transparency=i
  469. a.Transparency=i
  470. b.Transparency=i
  471. cc.Transparency=i
  472. d.Transparency=i
  473. end
  474. handleweld.Part1=bag
  475. handleweld.C1=CFrame.new(0, 6, 0)*CFrame.Angles(0, -math.rad(90), math.rad(180))
  476. for i=1, 0, -.1 do
  477. wait()
  478. weld.arm.right.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i)
  479. handleweld.C1=CFrame.new(0, 3+(3*i), 0)*CFrame.Angles(0, -math.rad(90), math.rad(180))
  480. handle.Transparency=i
  481. stip.Transparency=i
  482. handleb.Transparency=i
  483. blade.Transparency=i
  484. bladetip.Transparency=i
  485. a.Transparency=i
  486. b.Transparency=i
  487. cc.Transparency=i
  488. d.Transparency=i
  489. end
  490. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement