Advertisement
astronaut32

kodashi daggers

Jun 8th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.59 KB | None | 0 0
  1. --[[================================================================================================================]]--
  2. script.Parent = nil local plr=game.Players.LocalPlayer
  3. script:ClearAllChildren() new=Instance.new; vnew=Vector3.new; fnew=CFrame.new; bcn=BrickColor.new; cnew=Color3.new;
  4. local id = 0 plrb=plr.Backpack; plrc=plr.Character; plrg=plr.PlayerGui;
  5. function shw(n,t) l=new('Hint' ,workspace) l.Text=t wait(n) l:Destroy(); end --Its in black forgot to fix
  6. function prt(siz,cf,t,f,tra,re,n,na, col) n=new('Part' ,workspace) n.Size=siz n.CFrame=cf n.Locked=t n.Anchored=f n.Transparency=tra n.Reflectance=re n.Name=na n.BrickColor=bcn(col) end
  7. function stls(plrs) for i,v in pairs(plrs.Backpack:GetChildren()) do if v:IsA('Tool') or v:IsA('HopperBin') then v:clone().Parent=plrs.StarterGear end end end
  8. function tele(id) game:service'TeleportService':Teleport(id);end new=new;
  9. local nam = 'AQ'
  10. local hoppa = new('HopperBin',plrb)
  11. hoppa.Name = nam
  12. local mouse = nil
  13. local kd = '' active=true
  14. local char = plr.Character
  15. local RA,LA = char['Right Arm'],char['Left Arm']
  16. local torso = char.Torso
  17. local RS,LS = torso['Right Shoulder'], torso['Left Shoulder']
  18. local rs,ls = RS:Clone(),LS:Clone()
  19. rs.Part0 = nil rs.Part1 = nil ls.Part0 = nil
  20. ls.Part1 = nil ls.Parent = torso
  21. rs.Parent = torso rs.DesiredAngle = 0
  22. ls.DesiredAngle = 0
  23. rs.CurrentAngle = 0
  24. ls.CurrentAngle = 0
  25. local bv = new('BodyVelocity')
  26. function weld(p0,p1)
  27. local w = new('Weld',p0)
  28. w.Part0 = p0
  29. w.Part1 = p1
  30. return w
  31. end
  32. plr.Chatted:connect(function(msg)
  33. if msg=='kanwto' then
  34. tele(id)
  35. end
  36. if msg=='save' then
  37. stls(plr);
  38. end
  39. if msg=='ff' then
  40. p=new('ForceField' ,plr.Character);
  41. end
  42. end)
  43. plr:GetMouse().KeyDown:connect(function(a)
  44. if(a=='g') then
  45. plr.Character:MoveTo(mouse.Hit.p)
  46. shw(2,'lool teleported!')
  47. end
  48. end)
  49. if char:findFirstChild('Stuff') then char.Stuff:Destroy() end
  50. local m = new('Model',char)
  51. m.Name = 'Stuff'
  52. local lm = new('Model',m)
  53. lm.Name = 'Left Dagger'
  54. local han1 = new('Part',lm)
  55. han1.FormFactor = 'Custom'
  56. han1.CanCollide = false
  57. han1.Size = vnew(.4,1,.2)
  58. han1.TopSurface = 'Smooth'
  59. han1.BottomSurface = 'Smooth'
  60. han1.BrickColor = BrickColor.new('Really black')
  61. local dec1 = han1:Clone()
  62. dec1.Parent = lm
  63. dec1.Size = vnew(.6,.2,.4)
  64. new('BlockMesh',dec1).Scale = vnew(1,.5,1)
  65. local de1 = dec1:Clone()
  66. de1.Parent = lm
  67. de1.Size = vnew(.2,.2,.2)
  68. de1.Mesh.Scale = vnew(1,.5,.5)
  69. local de2 = de1:Clone()
  70. de2.Parent = lm
  71. local de3 = de1:Clone()
  72. de3.Parent = lm
  73. de3.Mesh.Scale = vnew(.5,.5,1)
  74. local de4 = de3:Clone()
  75. de4.Parent = lm
  76. local de5 = de1:Clone()
  77. de5.Parent = lm
  78. de5.Size = vnew(.8,.2,.2)
  79. local de6 = de5:Clone()
  80. de6.Parent = lm
  81. local de7 = de3:Clone()
  82. de7.Parent = lm
  83. de7.Size = vnew(.2,.2,.5)
  84. local de8 = de7:Clone()
  85. de8.Parent = lm
  86. for i,v in pairs(lm:GetChildren()) do
  87. if v ~= han1 then v.BrickColor = BrickColor.new('Really black') v.Reflectance = .1 end
  88. end
  89. local bladepar = han1
  90. local bl1 = han1:Clone()
  91. bl1.Parent = lm
  92. bl1.BrickColor = BrickColor.new('Really black')
  93. bl1.Reflectance = .2
  94. bl1.Size = vnew(.2,1.5,.2)
  95. new('BlockMesh',bl1).Scale = vnew(.5,1,.5)
  96. local bl2 = bl1:Clone()
  97. bl2.Parent = bl1.Parent
  98. local bl3 = bl1:Clone()
  99. bl3.Parent = bl1.Parent
  100. bl3.Size = vnew(.3,.2,.2)
  101. bl3.Mesh.Scale = vnew(1,.5,.5)
  102. local bl4 = bl3:Clone()
  103. bl4.Parent = bl1.Parent
  104. local bl5 = bl1:Clone()
  105. bl5.Parent = bl1.Parent
  106. bl5.Size = vnew(.3,.8,.2)
  107. bl5.Mesh.Scale = vnew(1,1,.1)
  108. bl5.Transparency = .02
  109. bl5.BrickColor = dec1.BrickColor
  110. bl5.Name = 'hitter'
  111. bl5.Reflectance = .5
  112. local bl6 = new('WedgePart')
  113. bl6.Parent = bl1.Parent
  114. bl6.CanCollide = false
  115. bl6.FormFactor = 'Custom'
  116. bl6.Size = vnew(.2,.5,.5)
  117. bl6.TopSurface = 'Smooth'
  118. bl6.BottomSurface = 'Smooth'
  119. bl6.Reflectance = bl1.Reflectance
  120. bl6.BrickColor = bl1.BrickColor
  121. new('SpecialMesh',bl6).MeshType = 'Wedge'
  122. bl6.Mesh.Scale = vnew(.5,1,1)
  123. ------- LEFT DAGGER WELDING ------
  124. lm:BreakJoints()
  125. local w1 = weld(torso,han1)
  126. w1.C0 = fnew(-1,-.7,.6) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(90))
  127. weld(han1,dec1).C0 = fnew(0,.1,0)
  128. weld(dec1,de1).C0 = fnew(.4,0,.15)
  129. weld(dec1,de2).C0 = fnew(-.4,0,-.15)
  130. weld(dec1,de3).C0 = fnew(.25,0,-.25)
  131. weld(dec1,de4).C0 = fnew(-.25,0,.25)
  132. weld(dec1,de5).C0 = fnew(.1,0,.3)
  133. weld(dec1,de6).C0 = fnew(-.1,0,-.3)
  134. weld(dec1,de7).C0 = fnew(-.45,0,.1)
  135. weld(dec1,de8).C0 = fnew(.45,0,-.1)
  136. weld(bladepar,bl1).C0 = fnew(.2,-.7,0)
  137. weld(bladepar,bl2).C0 = fnew(-.2,-.7,0)
  138. weld(bladepar,bl3).C0 = fnew(0,-.5,0)
  139. weld(bladepar,bl4).C0 = fnew(0,-1.4,0)
  140. weld(bladepar,bl5).C0 = fnew(0,-.95,0)
  141. weld(bladepar,bl6).C0 = fnew(0,-1.7,0) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(180))
  142. ------- RIGHT DAGGER CREATION ------
  143. local rm = new('Model',m)
  144. rm.Name = 'Right Dagger'
  145. local han2 = han1:Clone()
  146. han2.Parent = rm
  147. han2.BrickColor = BrickColor.new('Really black')
  148. local dec1 = dec1:Clone()
  149. dec1.Parent = rm
  150. local de1 = de1:Clone()
  151. de1.Parent = rm
  152. local de2 = de2:Clone()
  153. de2.Parent = rm
  154. local de3 = de3:Clone()
  155. de3.Parent = rm
  156. local de4 = de4:Clone()
  157. de4.Parent = rm
  158. local de5 = de5:Clone()
  159. de5.Parent = rm
  160. local de6 = de6:Clone()
  161. de6.Parent = rm
  162. local de7 = de7:Clone()
  163. de7.Parent = rm
  164. local de8 = de8:Clone()
  165. de8.Parent = rm
  166. for i,v in pairs(rm:GetChildren()) do
  167. if v ~= han2 then v.BrickColor = BrickColor.new('Really black') v.Reflectance = .1 end
  168. end
  169. local bladepar = han2
  170. local bl1 = han2:Clone()
  171. bl1.Parent = rm
  172. bl1.BrickColor = BrickColor.new('Really black')
  173. bl1.Reflectance = .2
  174. bl1.Size = vnew(.2,1.5,.2)
  175. new('BlockMesh',bl1).Scale = vnew(.5,1,.5)
  176. local bl2 = bl1:Clone()
  177. bl2.Parent = bl1.Parent
  178. local bl3 = bl1:Clone()
  179. bl3.Parent = bl1.Parent
  180. bl3.Size = vnew(.3,.2,.2)
  181. bl3.Mesh.Scale = vnew(1,.5,.5)
  182. local bl4 = bl3:Clone()
  183. bl4.Parent = bl1.Parent
  184. local bl5 = bl1:Clone()
  185. bl5.Parent = bl1.Parent
  186. bl5.Size = vnew(.3,.8,.2)
  187. bl5.Mesh.Scale = vnew(1,1,.1)
  188. bl5.Transparency = .02
  189. bl5.BrickColor = dec1.BrickColor
  190. bl5.Name = 'hitter'
  191. bl5.Reflectance = .5
  192. local bl6 = new('WedgePart')
  193. bl6.Parent = bl1.Parent
  194. bl6.FormFactor = 'Custom'
  195. bl6.CanCollide = false
  196. bl6.Size = vnew(.2,.5,.5)
  197. bl6.TopSurface = 'Smooth'
  198. bl6.BottomSurface = 'Smooth'
  199. bl6.Reflectance = bl1.Reflectance
  200. bl6.BrickColor = bl1.BrickColor
  201. new('SpecialMesh',bl6).MeshType = 'Wedge'
  202. bl6.Mesh.Scale = vnew(.5,1,1)
  203. ------- RIGHT DAGGER WELDING ------
  204. rm:BreakJoints()
  205. local w2 = weld(torso,han2)
  206. w2.C0 = fnew(1,-.7,.5) * CFrame.Angles(math.rad(0),0,math.rad(-90))
  207. weld(han2,dec1).C0 = fnew(0,.1,0)
  208. weld(dec1,de1).C0 = fnew(.4,0,.15)
  209. weld(dec1,de2).C0 = fnew(-.4,0,-.15)
  210. weld(dec1,de3).C0 = fnew(.25,0,-.25)
  211. weld(dec1,de4).C0 = fnew(-.25,0,.25)
  212. weld(dec1,de5).C0 = fnew(.1,0,.3)
  213. weld(dec1,de6).C0 = fnew(-.1,0,-.3)
  214. weld(dec1,de7).C0 = fnew(-.45,0,.1)
  215. weld(dec1,de8).C0 = fnew(.45,0,-.1)
  216. weld(bladepar,bl1).C0 = fnew(.2,-.7,0)
  217. weld(bladepar,bl2).C0 = fnew(-.2,-.7,0)
  218. weld(bladepar,bl3).C0 = fnew(0,-.5,0)
  219. weld(bladepar,bl4).C0 = fnew(0,-1.4,0)
  220. weld(bladepar,bl5).C0 = fnew(0,-.95,0)
  221. weld(bladepar,bl6).C0 = fnew(0,-1.7,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(180))
  222. ----[[DAMAGE CONNECT TION BY 507]]----------
  223. bl6.Touched:connect(function(hit)
  224. if(hit.Parent:findFirstChild('Humanoid') ~= nil) then
  225. hit.Parent.Humanoid.Health=0
  226. end
  227. end)
  228. ---[[LOOOOOOOOOOOOOOOOOOOL]]---------------
  229. --[[
  230. local h1 = han1:Clone()
  231. h1.Parent = m
  232. h1.BrickColor = BrickColor.new('Brown')
  233. h1.Size = vnew(.6,1.5,.3)
  234. h1:BreakJoints()
  235. local hw1 = weld(torso,h1)
  236. hw1.C0 = w1.C0 * fnew(0,-.8,0) * CFrame.Angles(0,0,0)
  237. local h2 = h1:Clone()
  238. h2.Parent = m
  239. h2:BreakJoints()
  240. local hw2 = weld(torso,h2)
  241. hw2.C0 = w2.C0 * fnew(0,-.8,0) * CFrame.Angles(0,0,0)]]
  242. function cr()
  243. if rs.Part1 ~= nil then
  244. rs.Part0 = nil
  245. rs.Part1 = nil
  246. wait()
  247. rs.C0 = RS.C0
  248. rs.C1 = RS.C1
  249. rs.MaxVelocity = RS.MaxVelocity
  250. RS.CurrentAngle = rs.CurrentAngle
  251. rs.CurrentAngle = 0
  252. rs.DesiredAngle = 0
  253. RS.Part0 = torso
  254. RS.Part1 = RA
  255. else
  256. RS.Part0 = nil
  257. RS.Part1 = nil
  258. rs.Part0 = torso
  259. rs.Part1 = RA
  260. end end
  261. function cl()
  262. if ls.Part1 ~= nil then
  263. ls.Part0 = nil
  264. ls.Part1 = nil
  265. wait()
  266. ls.C0 = LS.C0
  267. ls.C1 = LS.C1
  268. ls.MaxVelocity = LS.MaxVelocity
  269. LS.CurrentAngle = ls.CurrentAngle
  270. ls.CurrentAngle = 0
  271. ls.DesiredAngle = 0
  272. LS.Part0 = torso
  273. LS.Part1 = LA
  274. else
  275. LS.Part0 = nil
  276. LS.Part1 = nil
  277. ls.Part0 = torso
  278. ls.Part1 = LA
  279. end end
  280. function resrs()
  281. rs.C0 = RS.C0
  282. rs.C1 = RS.C1
  283. rs.MaxVelocity = RS.MaxVelocity
  284. rs.DesiredAngle = 0
  285. rs.CurrentAngle = 0
  286. end
  287. function resls()
  288. ls.C0 = LS.C0
  289. ls.C1 = LS.C1
  290. ls.MaxVelocity = LS.MaxVelocity
  291. ls.DesiredAngle = 0
  292. ls.CurrentAngle = 0
  293. end
  294. function resg1()
  295. g1.C0 = fnew(0,-.6,0) * CFrame.Angles(math.rad(-100),math.rad(90),math.rad(190))
  296. g1.C1 = fnew(0,.8,0)
  297. end
  298. function resg2()
  299. g2.C0 = fnew(0,-.6,0) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  300. g2.C1 = fnew(0,.8,0)
  301. end
  302. local eDb = false
  303. local eq1 = false
  304. local at1 = false
  305. local idcf1,idcf2
  306. function resumeIdle()
  307. local wavsped = 1
  308. local wavam = 15
  309. while eq1 and not eDb and not at1 do
  310. local wave = (math.abs(tick()%wavsped-(wavsped/2))*2-(wavsped/2)) * (wavam/wavsped) --Im not getting this.
  311. rs.C0 = idcf1 * CFrame.Angles(math.rad(wave),0,math.rad(wave))
  312. ls.C0 = idcf2 * CFrame.Angles(-math.rad(wave),0,math.rad(wave))
  313. wait(1/16)
  314. end
  315. end
  316. local lastw,lastl = tick(),''
  317. local lastdir = vnew(0,0,0)
  318. local faston = false
  319. function kdown(k)
  320. print(k)
  321. kd = kd .. k
  322. if k == 'r' and not at1 and mouse ~= nil then
  323. torso.CFrame = fnew(torso.Position,vnew(mouse.Hit.X,torso.Position.Y,mouse.Hit.Z))
  324. at1 = true
  325. local bg = new('BodyGyro',torso)
  326. local bp = new('BodyPosition',torso)
  327. bp.position = torso.Position
  328. bp.maxForce = vnew(500000000,500000000,50000000)
  329. bp.P = 1000000
  330. local torcf = torso.CFrame
  331. bg.cframe = torcf
  332. bg.maxTorque = vnew(500000000,500000000,50000000)
  333. bg.P = 1000000
  334. resrs()
  335. resls()
  336. torso.Neck.DesiredAngle = -1.57
  337. rs.MaxVelocity = .2
  338. rs.DesiredAngle = math.pi-.2
  339. for i=1,10 do
  340. bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(9),0)
  341. rs.C0 = rs.C0 * CFrame.Angles(0,math.rad(-9),0)
  342. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(-4.5))
  343. wait(1/60)
  344. end
  345. rs.DesiredAngle = rs.DesiredAngle +.1
  346. wait(.1)
  347. rs.MaxVelocity = .8
  348. rs.DesiredAngle = math.pi/2
  349. wait(.1)
  350. for i=1,5 do
  351. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(-9))
  352. wait(1/60)
  353. end
  354. g1.Part1 = nil
  355. for i,v in pairs(rm:GetChildren()) do
  356. v.Anchored = true
  357. end
  358. local spd = vnew(0,-4,0)
  359. local actar = nil
  360. for i=1,100/math.abs(spd.y) do
  361. local hit,ray = workspace:FindPartOnRay(Ray.new(han2.Position,han2.CFrame:vectorToWorldSpace(spd)),char)
  362. if hit then
  363. rm:TranslateBy(han2.CFrame:vectorToWorldSpace(spd.unit*(ray-han2.Position).magnitude/2))
  364. actar = hit
  365. break
  366. else
  367. rm:TranslateBy(han2.CFrame:vectorToWorldSpace(spd))
  368. end
  369. wait(1/60)
  370. end
  371. local bp2,hum = bp:Clone(),nil
  372. if actar then
  373. if actar.Anchored then
  374. actar = nil
  375. else
  376. hum = actar.Parent:findFirstChild('Humanoid')
  377. if hum == nil then hum = actar.Parent.Parent:FindFirstChild('Humanoid') end
  378. if hum ~= nil then hum.Sit = true end
  379. bp2.position = actar.Position
  380. bp2.P = 10000
  381. bp2.Parent = actar
  382. end
  383. end
  384. torso.Neck.DesiredAngle = math.pi/4
  385. wait(.1)
  386. for i=1,15 do
  387. bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(-9),0)
  388. rs.C0 = rs.C0 * CFrame.Angles(0,math.rad(9),0)
  389. wait(1/60)
  390. end
  391. local dist = ((RA.CFrame*g1.C0).p-han2.Position).magnitude
  392. dist = math.floor(dist / (math.abs(spd.Y)*2))
  393. for i=1,dist do
  394. rm:TranslateBy(han2.CFrame:vectorToWorldSpace(-spd*2))
  395. bp2.position = han2.Position
  396. wait(1/60)
  397. end
  398. for i,v in pairs(rm:GetChildren()) do
  399. v.Anchored = false
  400. end
  401. torso.Neck.DesiredAngle = 0
  402. g1.Part0 = RA
  403. g1.Part1 = han2
  404. g1.C1 = fnew(0,.8,0)
  405. wait(.1)
  406. bp2:Destroy()
  407. if actar then
  408. actar.RotVelocity = vnew(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  409. Delay(1,function() if hum then hum.Sit = false end end)
  410. end
  411. bg:Destroy()
  412. bp:Destroy()
  413. torso.CFrame = torcf
  414. at1 = false
  415. resrs()
  416. resls()
  417. resg1()
  418. resg2()
  419. resumeIdle()
  420. end
  421. if k == 'q' and not at1 and mouse ~= nil and mouse.Target ~= nil then
  422. at1 = true
  423. local bg = new('BodyGyro',torso)
  424. local bp = new('BodyPosition',torso)
  425. bp.position = torso.Position
  426. bp.maxForce = vnew(500000000,500000000,50000000)
  427. bp.P = 1000000
  428. local torcf = torso.CFrame
  429. bg.cframe = torcf
  430. bg.maxTorque = vnew(500000000,500000000,50000000)
  431. bg.P = 1000000
  432. wait(.05)
  433. resrs()
  434. resls()
  435. local curp = torso.Position
  436. local tarp = mouse.Hit.p + vnew(0,3,0)
  437. local dis = (tarp-curp).magnitude
  438. local un = (tarp-curp).unit
  439. local midy = curp.Y+30 + dis^0.5
  440. local bgcf = fnew(bg.cframe.p,vnew(tarp.X,bg.cframe.y,tarp.Z))
  441. local chngr = 15
  442. rs.DesiredAngle = 3
  443. ls.DesiredAngle = -3
  444. for i=0,1,1/chngr do
  445. bg.cframe = bgcf * CFrame.Angles(math.rad((i-.5)*30),0,0)
  446. local y = (1-i)*(1-i)*0 + 2*(1-i)*i*midy+i*i*0
  447. bp.position = curp+(un*dis*i) + vnew(0,y,0)
  448. wait(1/60)
  449. end
  450. bp.position = curp+(un*dis)
  451. wait(.1)
  452. bg:Destroy()
  453. bp:Destroy()
  454. rs.DesiredAngle = 0
  455. ls.DesiredAngle = 0
  456. wait(.2)
  457. at1 = false
  458. resrs()
  459. resls()
  460. resg1()
  461. resg2()
  462. resumeIdle()
  463. end
  464. if k == 'f' and not at1 and mouse ~= nil then
  465. at1 = true
  466. local tar = mouse.Hit.p
  467. local bg = new('BodyGyro',torso)
  468. local bp = new('BodyPosition',torso)
  469. bp.position = torso.Position
  470. bp.maxForce = vnew(500000000,500000000,50000000)
  471. bp.P = 1000000
  472. local torcf = torso.CFrame
  473. bg.cframe = fnew(torso.Position,vnew(tar.X,torcf.Y,tar.Z))
  474. bg.maxTorque = vnew(500000000,500000000,50000000)
  475. bg.P = 1000000
  476. wait(.05)
  477. resrs()
  478. resls()
  479. for i=1,15 do
  480. rs.C0 = rs.C0 * CFrame.Angles(math.rad(-2),0,0)
  481. ls.C0 = ls.C0 * CFrame.Angles(math.rad(-2),0,0)
  482. wait(1/60)
  483. end
  484. local t = tick()
  485. repeat
  486. local tab = workspace:FindPartsInRegion3(Region3.new(vnew(torso.Position.X-10,torso.Position.Y-10,torso.Position.Z-10),vnew(torso.Position.X+10,torso.Position.Y+10,torso.Position.Z+10)),char,100)
  487. for i,v in pairs(tab) do
  488. if not v.Anchored then
  489. v.CFrame = fnew(v.Position,(v.Position-v.Velocity))
  490. v.Velocity = (v.Position-(v.Position-v.Velocity)).unit*v.Velocity.magnitude*2
  491. end
  492. end
  493. wait(1/60)
  494. until tick()-t > 5
  495. for i=1,15 do
  496. rs.C0 = rs.C0 * CFrame.Angles(math.rad(2),0,0)
  497. ls.C0 = ls.C0 * CFrame.Angles(math.rad(2),0,0)
  498. wait(1/60)
  499. end
  500. bp:Destroy()
  501. bg:Destroy()
  502. at1 = false
  503. resrs()
  504. resls()
  505. resg1()
  506. resg2()
  507. resumeIdle()
  508. end
  509. if k == 'e' and not at1 and mouse ~= nil and mouse.Target ~= nil then
  510. local tar = mouse.Target.Parent
  511. if not tar:FindFirstChild('Torso') then tar = tar.Parent end
  512. if not tar:FindFirstChild('Torso') then return end
  513. local echar = tar
  514. if not echar:FindFirstChild('Torso') then return end
  515. local etor = echar.Torso
  516. at1 = true
  517. local bg = new('BodyGyro',torso)
  518. local bp = new('BodyPosition',torso)
  519. bp.position = torso.Position
  520. bp.maxForce = vnew(500000000,500000000,50000000)
  521. bp.P = 1000000
  522. local torcf = torso.CFrame
  523. bg.cframe = torcf
  524. bg.maxTorque = vnew(500000000,500000000,50000000)
  525. bg.P = 1000000
  526. wait(.05)
  527. resrs()
  528. resls()
  529. for i=1,5 do
  530. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(-36))
  531. g1.C1 = g1.C1 * CFrame.Angles(0,math.rad(36),0)
  532. wait(1/60)
  533. end
  534. local curp = torso.Position
  535. local tarp,dis,un,lv,off = nil,nil,nil,nil,nil
  536. local midy = curp.Y+30
  537. --[[
  538. local Damage = function()
  539. repeat
  540. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(han1.Position+han1.CFrame:vectorToWorldSpace(vnew(0,1,0)),han1.CFrame:vectorToWorldSpace(vnew(0,-3,0))),list)
  541. if hit then
  542. table.insert(list,hit)
  543. hit:BreakJoints()
  544. if not hit.Anchored and hit.Name ~= 'Torso' then
  545. local w = weld(han1,hit)
  546. w.C0 = han1.CFrame:toObjectSpace(hit.CFrame)
  547. game.Debris:AddItem(w,3)
  548. end end
  549. until hit == nil
  550. repeat
  551. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(han2.Position+han2.CFrame:vectorToWorldSpace(vnew(0,1,0)),han2.CFrame:vectorToWorldSpace(vnew(0,-3,0))),list)
  552. if hit then
  553. table.insert(list,hit)
  554. hit:BreakJoints()
  555. if not hit.Anchored and hit.Name ~= 'Torso' then
  556. local w = weld(han2,hit)
  557. w.C0 = han2.CFrame:toObjectSpace(hit.CFrame)
  558. game.Debris:AddItem(w,3)
  559. end end
  560. until hit == nil
  561. end
  562. ]]
  563. local Damage = function(hit,han)
  564. local par = hit
  565. repeat
  566. par = par.Parent
  567. until par == workspace or par == nil or par:FindFirstChild('Torso')
  568. if par == workspace or par == nil then return end
  569. if par ~= char then
  570. if hit.Name == 'Torso' or hit.Name == 'Head' then
  571. hit:BreakJoints()
  572. end end
  573. end
  574. local hit1 = rm.hitter.Touched:connect(function(hit) Damage(hit,han2) end)
  575. local hit2 = lm.hitter.Touched:connect(function(hit) Damage(hit,han1) end)
  576. for i=0,1,1/15 do
  577. bg.cframe = fnew(bg.cframe.p,vnew(etor.Position.X,bg.cframe.Y,etor.Position.Z)) * CFrame.Angles(math.rad(i*15),0,0)
  578. lv = fnew(bg.cframe.p,vnew(etor.Position.X,bg.cframe.Y,etor.Position.Z)).lookVector
  579. off = lv*5 - vnew(0,4+(math.random()/2),0)
  580. tarp = etor.Position - off
  581. dis = (curp-tarp).magnitude
  582. un = (tarp-curp).unit
  583. midy = curp.Y+30 + dis^0.5
  584. local y = (1-i)*(1-i)*0 + 2*(1-i)*i*midy+i*i*0
  585. bp.position = curp+(un*dis*i) + vnew(0,y,0)
  586. rs.C0 = rs.C0 * fnew(0,0,-.01) * CFrame.Angles(math.rad(2),0,math.rad(13))
  587. ls.C0 = ls.C0 * fnew(0,0,-.01) * CFrame.Angles(math.rad(2),0,math.rad(-13))
  588. --Damage()
  589. wait(1/60)
  590. end
  591. for i=1,5 do
  592. bp.position = bp.position + lv*.7 - vnew(0,.7,0)
  593. bg.cframe = bg.cframe * CFrame.Angles(math.rad(-5),0,0)
  594. rs.C0 = rs.C0 * fnew(0,0,-.01) * CFrame.Angles(math.rad(-6),0,math.rad(-17))
  595. ls.C0 = ls.C0 * fnew(0,0,-.01) * CFrame.Angles(math.rad(-6),0,math.rad(17))
  596. --Damage()
  597. wait(1/60)
  598. end
  599. --Damage()
  600. bg:Destroy()
  601. bp:Destroy()
  602. for i=1,15 do
  603. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(180/15))
  604. g1.C1 = g1.C1 * CFrame.Angles(0,math.rad(-180/15),0)
  605. rs.C0 = rs.C0 * fnew(0,0,.2/15) * CFrame.Angles(0,0,math.rad(-110/15))
  606. ls.C0 = ls.C0 * fnew(0,0,.2/15) * CFrame.Angles(0,0,math.rad(110/15))
  607. wait(1/60)
  608. end
  609. hit1:disconnect()
  610. hit2:disconnect()
  611. at1 = false
  612. resrs()
  613. resls()
  614. resg1()
  615. resg2()
  616. resumeIdle()
  617. end
  618. if k == 't' and not at1 then
  619. at1 = true
  620. resrs()
  621. resg1()
  622. for i=1,15 do
  623. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(-90/15))
  624. wait(1/60)
  625. end
  626. wait(.5)
  627. for i=1,30 do
  628. g1.C1 = g1.C1 * fnew(0,0.05,0)
  629. wait(1/60)
  630. end
  631. local p = new('Part',m)
  632. p.Anchored = true
  633. p.FormFactor = 'Custom'
  634. p.BrickColor = BrickColor.new('Deep blue')
  635. p.Transparency = 0
  636. p.Size = vnew(1,.2,1)
  637. new('CylinderMesh',p).Scale = vnew(1,.0001,1)
  638. p:BreakJoints()
  639. p.CFrame = han2.CFrame * fnew(0,.15,0)
  640. for i=1,50 do
  641. p.Mesh.Scale = p.Mesh.Scale + vnew(.2,0,.2)
  642. p.Transparency = i/50
  643. wait(1/60)
  644. end
  645. p.Mesh.Scale = vnew(1,.0001,1)
  646. for i=1,75 do
  647. p.Mesh.Scale = p.Mesh.Scale + vnew(.2,0,.2)
  648. p.Transparency = i/75
  649. wait(1/60)
  650. end
  651. p.Mesh.Scale = vnew(1,.0001,1)
  652. local wtrs = {}
  653. for i=1,200 do
  654. p.Mesh.Scale = p.Mesh.Scale + vnew(.4,0,.4)
  655. p.Transparency = i/200
  656. local rad = p.Mesh.Scale.X/2
  657. for i,v in pairs(game.Players:GetPlayers()) do
  658. if v ~= plr then
  659. local dis = v:DistanceFromCharacter(p.Position)
  660. if dis < rad then
  661. pcall(function()
  662. local pos = v.Character.Torso.Position
  663. local terpos = workspace.Terrain:WorldToCell(pos)
  664. for i=0,4 do
  665. if workspace.Terrain:GetCell(terpos.X,terpos.Y+i,terpos.Z) == Enum.CellMaterial.Empty then
  666. workspace.Terrain:SetWaterCell(terpos.X,terpos.Y+i,terpos.Z,3,4)
  667. table.insert(wtrs,vnew(terpos.X,terpos.Y+i,terpos.Z))
  668. end
  669. end
  670. end)
  671. end
  672. end
  673. end
  674. wait(1/60)
  675. end
  676. p:Destroy()
  677. wait(.5)
  678. for i=1,30 do
  679. g1.C1 = g1.C1 * fnew(0,-0.05,0)
  680. wait(1/60)
  681. end
  682. for i=1,15 do
  683. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(90/15))
  684. wait(1/60)
  685. end
  686. coroutine.resume(coroutine.create(function()
  687. wait(2)
  688. for i,v in pairs(wtrs) do
  689. pcall(function()
  690. if workspace.Terrain:GetCell(v.X,v.Y,v.Z) == Enum.CellMaterial.Water then
  691. workspace.Terrain:SetCell(v.X,v.Y,v.Z,0,0,0)
  692. wait(1/10)
  693. end end) end end))
  694. at1 = false
  695. resrs()
  696. resg1()
  697. resumeIdle()
  698. end
  699. if (k == 'w' or k == 's' or k == ' ' or k == 'd' or k == 'a' or k == '0') and tick()-lastw < .2 and lastl == k and not faston then
  700. faston = true
  701. bv.Parent = torso
  702. bv.maxForce = vnew(1000000,1000000,1000000)
  703. local t = tick()
  704. local lasts = {0,0,0,0,0,0}
  705. while tick()-t < 2 do
  706. local lv = workspace.CurrentCamera.CoordinateFrame.lookVector
  707. torso.CFrame = fnew(torso.Position,torso.Position+vnew(lv.X,0,lv.Z))
  708. local dir = vnew(0,0,0)
  709. local doit = false
  710. if kd:find('w') and tick()-lasts[1]>0.2 then lasts[1] = tick() doit = true end
  711. if kd:find('s') and tick()-lasts[2]>0.2 then lasts[2] = tick() doit = true end
  712. if kd:find(' ') and tick()-lasts[3]>0.2 then lasts[3] = tick() doit = true end
  713. if kd:find('0') and tick()-lasts[4]>0.2 then lasts[4] = tick() doit = true end
  714. if kd:find('d') and tick()-lasts[5]>0.2 then lasts[5] = tick() doit = true end
  715. if kd:find('a') and tick()-lasts[6]>0.2 then lasts[6] = tick() doit = true end
  716. if tick()-lasts[1]<.2 then dir = dir + torso.CFrame.lookVector * 250 end
  717. if tick()-lasts[2]<.2 then dir = dir - torso.CFrame.lookVector * 150 end
  718. if tick()-lasts[3]<.2 then dir = dir + vnew(0,150,0) end
  719. if tick()-lasts[4]<.2 then dir = dir - vnew(0,150,0) end
  720. if tick()-lasts[5]<.2 then dir = dir + torso.CFrame:vectorToWorldSpace(vnew(200,0,0)) end
  721. if tick()-lasts[6]<.2 then dir = dir + torso.CFrame:vectorToWorldSpace(vnew(-200,0,0)) end
  722. if dir.magnitude > 0 and doit then
  723. local p = new('Part',workspace)
  724. p.Size = vnew(1,1,1)
  725. p:BreakJoints()
  726. p.Anchored = true
  727. new('SpecialMesh',p).MeshId = 'http://www.roblox.com/asset/?id=9756362'
  728. p.BrickColor = BrickColor.new('Whíte')
  729. p.Mesh.Scale = vnew(5,5,5)
  730. p.Transparency = .5
  731. p.CanCollide = false
  732. p.CFrame = fnew(torso.Position-dir.unit*5,torso.Position) * CFrame.Angles(math.rad(90),0,0)
  733. game.Debris:AddItem(p,2)
  734. t = tick()
  735. end
  736. lastdir = dir
  737. bv.velocity = dir
  738. wait(1/60)
  739. end
  740. bv.Parent = nil
  741. faston = false
  742. elseif (k == 'w' or k == 's' or k == ' ' or k == 'd' or k == 'a' or k == '0') and not faston then
  743. lastw = tick()
  744. lastl = k
  745. end
  746. end
  747. function kup(k)
  748. kd = kd:gsub(k,'')
  749. end
  750. hoppa.Selected:connect(function(m)
  751. if eDb or eq1 or at1 then repeat wait() until not eDb and not eq1 and not at1 end
  752. mouse = m
  753. mouse.KeyDown:connect(kdown)
  754. mouse.KeyUp:connect(kup)
  755. eq1 = true
  756. eDb = true
  757. cr()
  758. cl()
  759. ls.DesiredAngle = -0.2
  760. rs.DesiredAngle = 0.2
  761. for i=1,5 do
  762. ls.C0 = ls.C0 * CFrame.Angles(0,math.rad(15),0)
  763. rs.C0 = rs.C0 * CFrame.Angles(0,math.rad(-15),0)
  764. wait(1/60)
  765. end
  766. wait(.1)
  767. w1.Part0 = nil
  768. w1.Part1 = nil
  769. w2.Part0 = nil
  770. w2.Part1 = nil
  771. local pos1,pos2 = han2.CFrame,han1.CFrame
  772. g1 = weld(RA,han2)
  773. g2 = weld(LA,han1)
  774. --g1.C0 = RA.CFrame:toObjectSpace(pos1)
  775. --g2.C0 = LA.CFrame:toObjectSpace(pos2)
  776. g1.C0 = fnew(0,-.6,0) * CFrame.Angles(math.rad(-100),math.rad(90),0)
  777. g2.C0 = fnew(0,-.6,0) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  778. g1.C1 = fnew(0,.8,0)
  779. g2.C1 = fnew(0,.8,0)
  780. ls.DesiredAngle = -1.4
  781. rs.DesiredAngle = 1.4
  782. wait(.1)
  783. ls.DesiredAngle = 0
  784. rs.DesiredAngle = 0
  785. for i=1,10 do
  786. ls.C0 = ls.C0 * CFrame.Angles(0,math.rad(-7.5),math.rad(-1))
  787. rs.C0 = rs.C0 * CFrame.Angles(0,math.rad(7.5),math.rad(1))
  788. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(19))
  789. wait(1/60)
  790. end
  791. ls.CurrentAngle = 0
  792. rs.CurrentAngle = 0
  793. eDb = false
  794. idcf1 = rs.C0
  795. idcf2 = ls.C0
  796. resumeIdle()
  797. end)
  798. hoppa.Deselected:connect(function()
  799. if eDb or not eq1 or at1 then repeat wait() until not eDb and eq1 and not at1 end
  800. eDb = true
  801. eq1 = false
  802. ls.DesiredAngle = -0.8
  803. rs.DesiredAngle = 0.8
  804. wait(.1)
  805. for i=1,10 do
  806. ls.C0 = ls.C0 * CFrame.Angles(0,math.rad(7.5),math.rad(1))
  807. rs.C0 = rs.C0 * CFrame.Angles(0,math.rad(-7.5),math.rad(-1))
  808. g1.C0 = g1.C0 * CFrame.Angles(0,0,math.rad(-19))
  809. g2.C0 = g2.C0 * fnew(-.05,0,0)
  810. wait(1/60)
  811. end
  812. g1:Destroy()
  813. g2:Destroy()
  814. w1.Part0 = torso
  815. w1.Part1 = han1
  816. w2.Part0 = torso
  817. w2.Part1 = han2
  818. ls.DesiredAngle = 0
  819. rs.DesiredAngle = 0
  820. for i=1,5 do
  821. ls.C0 = ls.C0 * CFrame.Angles(0,math.rad(-15),0)
  822. rs.C0 = rs.C0 * CFrame.Angles(0,math.rad(15),0)
  823. wait(1/60)
  824. end
  825. cr()
  826. cl()
  827. eDb = false
  828. end)
  829. print'YoZamiKekodashi SwordDaggers loaded';
  830. if active==true then
  831. shw(5 , 'Kodashi daggers are active!')
  832. else
  833. shw(5 , 'Kodashi daggers are not active!')
  834. end
  835.  
  836. Game.Workspace.kash5.Animate:remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement