RobloxScripting

4 dem sword

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