Advertisement
Finnegan5

sword kaka

Oct 6th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.33 KB | None | 0 0
  1. print("made by WitherBlazestorm2")
  2. script.Parent = nil
  3. ply = game:GetService("Players").LocalPlayer
  4. local char = ply.Character
  5. local torso = char.Torso
  6. local ls = torso["Left Shoulder"]
  7. local rs = torso["Right Shoulder"]
  8. local neck = torso.Neck
  9. local larm = char["Left Arm"]
  10. local rarm = char["Right Arm"]
  11. suita = false
  12. rw = Instance.new("Weld")
  13. script.Parent = nil
  14. attacking = false
  15. holding = false
  16. ndam = 1
  17. dam = ndam
  18. damage = 1
  19. nmind,nmaxd = 20,40
  20. mind,maxd = nmind,nmaxd
  21. wt = 0.3
  22.  
  23. function sd(a,b)
  24. mind,maxd = a,b
  25. if a == nil and b == nil then
  26. mind,maxd = nmind,nmaxd
  27. end
  28. end
  29.  
  30. bm = Instance.new("FileMesh")
  31. bm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  32. rm = Instance.new("FileMesh")
  33. rm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  34.  
  35. g = Instance.new("BodyGyro",nil)
  36. g.maxTorque = Vector3.new(4e+005,4e+005,4e+005)
  37. g.P = 20e+003
  38. g.cframe = char.Head.CFrame
  39.  
  40. local function damage(hit)
  41. if attacking == true then
  42. if hit.Parent ~= char then
  43. for i,v in pairs(hit.Parent:GetChildren()) do
  44. if v:IsA("Humanoid") then
  45. if v:FindFirstChild("Value") == nil then
  46. damage = math.random(mind,maxd)
  47. v.Health = v.Health-damage
  48. showdam(v.Torso,damage)
  49. game:GetService("Debris"):AddItem(Instance.new("BoolValue",v),wt)
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end
  56.  
  57. local function damage2(hit,a,b,c)
  58. if hit.Parent ~= char then
  59. for i,v in pairs(hit.Parent:GetChildren()) do
  60. if v:IsA("Humanoid") then
  61. if v:FindFirstChild("Value") == nil then
  62. damage = math.random(a,b)
  63. v.Health = v.Health-damage
  64. showdam(v.Torso,damage)
  65. game:GetService("Debris"):AddItem(Instance.new("BoolValue",v),c)
  66. end
  67. end
  68. end
  69. end
  70. end
  71.  
  72. function showdam(tar,a)
  73. bbg = Instance.new("BillboardGui",tar)
  74. bbg.Adornee = tar
  75. bbg.StudsOffset = Vector3.new(0,4.5,0)
  76. bbg.Size = UDim2.new(0,100,0,50)
  77.  
  78. il = Instance.new("ImageLabel",bbg)
  79. il.Size = UDim2.new(1,0,1,0)
  80. il.Image = "http://www.roblox.com/asset/?id=31884718"
  81. il.BackgroundTransparency = 1
  82.  
  83. box = Instance.new("TextLabel",bbg)
  84. box.BackgroundTransparency = 1
  85. box.Size = UDim2.new(1,0,1,0)
  86. box.FontSize = 9
  87. box.Text = tostring(a)
  88. box.TextColor3 = Color3.new(1,0,0)
  89. box.ZIndex = 5
  90.  
  91. game:GetService("Debris"):AddItem(bbg,wt)
  92. end
  93.  
  94. function ss(pitch,sound)
  95. local SlashSound = Instance.new("Sound")
  96. if sound == nil then
  97. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  98. SlashSound:Play()
  99. else SlashSound.SoundId = sound
  100. end
  101. SlashSound.Parent = m
  102. SlashSound.Volume = .7
  103. SlashSound.Pitch = pitch
  104. SlashSound.PlayOnRemove = true
  105. coroutine.resume(coroutine.create(function()
  106. wait(0)
  107. SlashSound.Parent = nil
  108. end))
  109. end
  110.  
  111. function lock(a)
  112. if a == 1 then
  113. rw.Parent = torso
  114. rw.Part0 = rs.Part0
  115. rw.Part1 = rs.Part1
  116. rw.C0 = rs.C0
  117. rw.C1 = rs.C1
  118.  
  119. rs.Parent = nil
  120. elseif a == 0 then
  121. rs.Parent = torso
  122. rw.Parent = nil
  123. end
  124. end
  125.  
  126. script.Parent = nil
  127. m = Instance.new("Model",char)
  128.  
  129. hdl = Instance.new("Part",m)
  130. hdl.TopSurface,hdl.BottomSurface = 0,0
  131. hdl.formFactor = "Custom"
  132. hdl.Size = Vector3.new(0.3,2,0.1)
  133. hdl.Color = Color3.new(0,0,1)
  134.  
  135. p1 = hdl:Clone()
  136. p1.Parent = m
  137. p1.Size = Vector3.new(2,6,0.1)
  138. p1.Color = Color3.new(0,0,0)
  139. p1.Name = "p1"
  140.  
  141. p2 = Instance.new("WedgePart",m)
  142. p2.TopSurface,hdl.BottomSurface = 0,0
  143. p2.formFactor = "Custom"
  144. p2.Size = Vector3.new(0.1,2,2)
  145. p2.Color = p1.Color
  146. p2.Name = "p2"
  147.  
  148. w = Instance.new("Weld",m)
  149. w.Part0,w.Part1 = p1,hdl
  150. w.C1 = CFrame.new(0,hdl.Size.y/2+p1.Size.y/2-0.05,0)
  151.  
  152. w = Instance.new("Weld",m)
  153. w.Part0,w.Part1 = p2,p1
  154. w.C1 = CFrame.new(0,p1.Size.y/2+p2.Size.y/2-0.05,0) * CFrame.Angles(0,math.pi/2,0)
  155.  
  156. f = Instance.new("Fire",p1)
  157. f.Size = 10
  158. f.Color = Color3.new(0,0,1)
  159. f.SecondaryColor = Color3.new(0.5,0.5,0.5)
  160.  
  161. p1.Touched:connect(damage) p2.Touched:connect(damage)
  162. Instance.new("CylinderMesh",hdl)
  163.  
  164. hpos = CFrame.new(0,-larm.Size.y/2,0) * CFrame.Angles(-math.pi/2,-math.pi/2,0)
  165. tpos = CFrame.new(0,0,torso.Size.z/2) * CFrame.Angles(0,0,math.pi/4)
  166. spos = CFrame.new(0,-larm.Size.y/2-hdl.Size.y/2+0.5,0) * CFrame.Angles(0,0,-math.pi)
  167.  
  168. hw = Instance.new("Weld",hdl)
  169. hw.Part0 = hdl
  170. hw.Part1 = torso
  171. hw.C1 = tpos
  172.  
  173. function ang(x,y,z)
  174. return CFrame.Angles(math.rad(x)*s,math.rad(y)*s,math.rad(z)*s)
  175. end
  176.  
  177. s = 20
  178.  
  179. function wield(a)
  180. if a == 1 then
  181. for i = 1,170,s do
  182. wait()
  183. rw.C0 = rw.C0 * ang(0,0,1)
  184. end
  185. hw.Part1,hw.C1 = rarm,hpos
  186. for i = 1,170/2,s do
  187. wait()
  188. rw.C0 = rw.C0 * ang(0,0,-1)
  189. end
  190. elseif a == 0 then
  191. for i = 1,170/2,s do
  192. wait()
  193. rw.C0 = rw.C0 * ang(0,0,1)
  194. end
  195. hw.Part1,hw.C1 = torso,tpos
  196. for i = 1,170,s do
  197. wait()
  198. rw.C0 = rw.C0 * ang(0,0,-1)
  199. end
  200. end
  201. end
  202.  
  203. h = Instance.new("HopperBin",ply.Backpack)
  204. h.Name = "Sode No konayuki"
  205.  
  206. tim = 0
  207.  
  208. function gui(a)
  209. if a == 1 then
  210. g = Instance.new("ScreenGui",ply.PlayerGui)
  211. g.Name = "Charging"
  212.  
  213. gu = ply.PlayerGui:FindFirstChild("Charging")
  214.  
  215. lab = Instance.new("TextLabel",g)
  216. lab.Size = UDim2.new(0.05,0,0.05)
  217. lab.Position = UDim2.new(0,0,0.5,0)
  218. lab.BackgroundTransparency = 0.3
  219. lab.BackgroundColor = BrickColor.new("Royal purple")
  220. lab.Name = "label"
  221.  
  222. elseif a == 2 then
  223. tim = tim+0.1
  224. gu:FindFirstChild("label").Text = tim
  225.  
  226. elseif a == 3 then
  227. gu:Remove()
  228. end
  229. end
  230.  
  231. function att()
  232. attacking = true
  233. r = 3
  234. for i = 1,60,s do
  235. wait()
  236. rw.C0 = rw.C0 * ang(0,0,-1)
  237. end
  238. gui(1)
  239. holding = true
  240. while holding == true do wait(0.2) gui(2) end
  241. gui(3)
  242. for i = 1,360,20 do
  243. local c = Instance.new("Part",m)
  244. c.TopSurface = 0
  245. c.BottomSurface = 0
  246. c.FormFactor = "Custom"
  247. c.Size = Vector3.new(0.5,0.5,0.5)
  248. c.Transparency = 0.5
  249. c.BrickColor = BrickColor.new("Bright red")
  250. Instance.new("Sparkles",c)
  251. cc = (p2.CFrame * CFrame.new(0,p2.Size.y/2,0)).p
  252. c.CFrame = CFrame.new(cc) + Vector3.new(math.cos(math.rad(i))*r,0,math.sin(math.rad(i))*r)
  253. c.CFrame = CFrame.new(c.Position,cc)
  254.  
  255. Instance.new("SpecialMesh",c).MeshType = 3
  256.  
  257. b = Instance.new("BodyVelocity",c)
  258. b.maxForce = Vector3.new() * math.huge
  259. b.velocity = c.CFrame.lookVector * -100
  260.  
  261. delay(tim,function()
  262. e = Instance.new("Explosion",Workspace)
  263. e.BlastPressure = 0
  264. e.Position = c.Position
  265. e.Hit:connect(function(hit) damage2(hit,30,40,0.035) end)
  266. c:Remove()
  267. end)
  268. end
  269.  
  270. for i = 1,60,s do
  271. wait()
  272. rw.C0 = rw.C0 * ang(0,0,1)
  273. end
  274. attacking = false
  275. tim = 0
  276. end
  277.  
  278. function att2(tar,pos)
  279. o = 3
  280. base = Instance.new("CFrameValue",nil)
  281. base.Value = torso.CFrame
  282. if tar ~= nil then
  283. local mag = (base.Value.p-pos).magnitude
  284. local unit = (base.Value.p-pos).unit
  285.  
  286. for i = 1,mag*2,o do
  287. wait()
  288. local c = Instance.new("Part",m)
  289. c.TopSurface = 0
  290. c.BottomSurface = 0
  291. c.formFactor = "Custom"
  292. c.Anchored = true
  293. c.Size = Vector3.new(0.5,0.5,0.5)
  294. c.Transparency = 0.5
  295. c.BrickColor = BrickColor.new("Navy blue")
  296. c.Touched:connect(function(hit) damage2(hit,10,20,0.2) end)
  297. c.CFrame = base.Value - unit*i*c.Size.z
  298. Instance.new("Fire",c).Color = Color3.new(1,0,0)
  299. game:GetService("Debris"):AddItem(c,0.5)
  300. end
  301. end
  302. end
  303.  
  304. function demon()
  305. holding = true
  306.  
  307. m2 = Instance.new("Model",char)
  308.  
  309. mp = Instance.new("Part")
  310. mp.TopSurface = 0
  311. mp.BottomSurface = 0
  312. mp.formFactor = "Custom"
  313. mp.Transparency = 1
  314. mp.CanCollide = false
  315.  
  316. --CLAWS--
  317. cl1 = mp:Clone()
  318. cl1.Parent = m2
  319. cl1.Size = Vector3.new(larm.Size.x,larm.Size.z,2.5)
  320. cl1.Color = Color3.new(1,0,0)
  321.  
  322. mesh = Instance.new("FileMesh",cl1)
  323. mesh.MeshId = "http://www.roblox.com/asset/?id=10681506"
  324.  
  325. cl2 = cl1:Clone()
  326. cl2.Parent = m2
  327.  
  328. w = Instance.new("Weld",m2)
  329. w.Part0,w.Part1 = cl1,rarm
  330. w.C1 = CFrame.new(0,-rarm.Size.y/2-cl1.Size.y/2,0) * CFrame.Angles(math.pi/2,0,0)
  331.  
  332. w = Instance.new("Weld",m2)
  333. w.Part0,w.Part1 = cl2,larm
  334. w.C1 = CFrame.new(0,-rarm.Size.y/2-cl1.Size.y/2,0) * CFrame.Angles(math.pi/2,0,math.pi)
  335. -------------
  336. ----WINGS-----
  337. wing = mp:Clone()
  338. wing.Parent = m2
  339. wing.Size = Vector3.new(3,1,0.3)
  340. wing.Color = Color3.new(0,0,0)
  341.  
  342. mesh = Instance.new("FileMesh",wing)
  343. mesh.MeshId = "http://www.roblox.com/asset/?id=19367744"
  344.  
  345. w = Instance.new("Weld",m2)
  346. w.Part0,w.Part1 = wing,torso
  347. w.C1 = CFrame.new(0,torso.Size.y/4,torso.Size.z*1.2)
  348. --------------------
  349. for i = 1,0,-0.05 do
  350. wait()
  351. for _,v in pairs(m2:GetChildren()) do
  352. if v:IsA("BasePart") then
  353. v.Transparency = i
  354. end
  355. end
  356. end
  357.  
  358. local speed = Instance.new("NumberValue",nil)
  359. speed.Value = char.Humanoid.WalkSpeed
  360.  
  361. char.Humanoid.WalkSpeed = 100
  362. while holding == true do
  363. for i = 0,0.5,0.05 do
  364. wait()
  365. for _,v in pairs(m2:GetChildren()) do
  366. if v:IsA("BasePart") then
  367. v.Transparency = i
  368. end
  369. end
  370. end
  371.  
  372. for _,v in pairs(char:GetChildren()) do
  373. if v:IsA("Humanoid") then v.Health = v.Health + 5
  374. end
  375. end
  376.  
  377. for i = 0.5,0,-0.05 do
  378. wait()
  379. for _,v in pairs(m2:GetChildren()) do
  380. if v:IsA("BasePart") then
  381. v.Transparency = i
  382. end
  383. end
  384. end
  385.  
  386. end
  387. char.Humanoid.WalkSpeed = speed.Value
  388. for i = 0,1,0.05 do
  389. wait()
  390. for _,v in pairs(m2:GetChildren()) do
  391. if v:IsA("BasePart") then
  392. v.Transparency = i
  393. end
  394. end
  395. end
  396. m2:Remove()
  397. end
  398.  
  399. function effect1(mode,pos,size,speed)
  400. local co = Instance.new("Part",m)
  401. co.TopSurface = 0
  402. co.BottomSurface = 0
  403. co.CFrame = pos
  404. co.formFactor = "Custom"
  405. co.Size = Vector3.new(0.1,0.1,0.1)
  406. co.CanCollide = false
  407. co.Color = Color3.new(0,0,1)
  408.  
  409. local CL = CFrame.new(co.Position)
  410.  
  411. w = Instance.new("Weld",mode)
  412. w.Part0 = co
  413. w.Part1 = mode
  414. w.C0 = co.CFrame:inverse() * CL
  415. w.C1 = co.CFrame:inverse() * CL
  416.  
  417. local mesh = Instance.new("SpecialMesh",co)
  418. mesh.MeshType = 3
  419.  
  420. for i = 1,size,speed do
  421. wait()
  422. mesh.Scale = Vector3.new(i,i,i)
  423. co.Transparency = i/size
  424. end
  425. co:Remove()
  426. end
  427.  
  428. function att3()
  429. attacking = true
  430. sd(30,50)
  431. for i = 1,40,s do
  432. wait()
  433. rw.C0 = rw.C0 * ang(0,1,0)
  434. end
  435. for i = 1,90,s do
  436. wait()
  437. rw.C0 = rw.C0 * ang(0,0,-1)
  438. end
  439. tip = p2.CFrame * CFrame.new(0,p2.Size.y/2,0)
  440. effect1(hdl,tip,40,1)
  441. char.archivable = true
  442. holding = true
  443. for i = 1,8 do
  444. wait()
  445. torso.CFrame = torso.CFrame + torso.CFrame.lookVector * 5
  446.  
  447. local cl = char:Clone()
  448. cl.Parent = Workspace
  449. cl.Torso.CFrame = torso.CFrame - torso.CFrame.lookVector * 3
  450. e = Instance.new("Explosion",cl.Torso)
  451. e.BlastPressure = 0
  452. e.Position = cl.Torso.Position
  453. e.Hit:connect(function(hit) damage2(hit,mind,maxd,0.1) end)
  454.  
  455. for _,v in pairs(cl.Model:GetChildren()) do
  456. if v:IsA("BasePart") then v.Touched:connect(damage)
  457. end
  458. end
  459.  
  460. for i,v in pairs(cl:GetChildren()) do
  461. if v.className == "Part" then
  462. v.Transparency = 0.5
  463. v.Anchored = true
  464. v.Touched:connect(damage)
  465. v.Color = Color3.new(1,1,1)
  466. elseif v.className ~= "Part" and v.className ~= "Model" then v:Remove()
  467. elseif v.Name == "Torso" then v["RightShoulder"],v["LeftShoulder"].Name = "lol"
  468. elseif v.Name == "Head" then for _,o in pairs(v:GetChildren()) do if v.className == "Sound" then v:Remove() end end
  469. end
  470. end
  471.  
  472. delay(0.7,function()
  473. for i = 0.5,1,0.05 do
  474. wait()
  475. for _,v in pairs(cl:GetChildren()) do
  476. if v:IsA("BasePart") then
  477. v.Transparency = i
  478. end
  479. end
  480.  
  481. end
  482. cl:Remove()
  483. end)
  484. end
  485. char.archivable = false
  486. for i = 1,130,s do
  487. wait()
  488. rw.C0 = rw.C0 * ang(0,0,1)
  489. end
  490. for i = 1,130-90,s do
  491. wait()
  492. rw.C0 = rw.C0 * ang(0,0,-1)
  493. end
  494. for i = 1,40,s do
  495. wait()
  496. rw.C0 = rw.C0 * ang(0,-1,0)
  497. end
  498. sd()
  499. attacking = false
  500. end
  501.  
  502. function suicide()
  503. s = 10
  504. for i = 1,60,s do
  505. wait()
  506. rw.C0 = rw.C0 * ang(-1,0,0)
  507. end
  508. hw:Remove()
  509. delay(0.3,function()
  510. for i = 0,1,0.1 do
  511. wait()
  512. for _,v in pairs(m:GetChildren()) do
  513. if v:IsA("BasePart") then
  514. v.Transparency = i
  515. end
  516. end
  517. end
  518. m:Remove()
  519. end)
  520. wait(0.5)
  521. for i = 1,60,s do
  522. wait()
  523. rw.C0 = rw.C0 * ang(1,0,0)
  524. end
  525. for i = 1,80,s do
  526. wait()
  527. rw.C0 = rw.C0 * ang(0,0,-1)
  528. end
  529. for i = 1,80,s do
  530. wait()
  531. rw.C0 = rw.C0 * ang(-1,0,0)
  532. end
  533. e = Instance.new("Explosion",Workspace)
  534. e.BlastRadius = 100
  535. e.Position = (rarm.CFrame * CFrame.new(0,-rarm.Size.y/2,0)).p
  536. end
  537.  
  538. function slash()
  539. attacking = true
  540. for i = 1,90,s do
  541. wait()
  542. rw.C0 = rw.C0 * ang(0,0,1)
  543. end
  544. for i = 1,180,s do
  545. wait()
  546. rw.C0 = rw.C0 * ang(0,0,-1)
  547. end
  548. for i = 1,80,s do
  549. wait()
  550. rw.C0 = rw.C0 * ang(0,0,1)
  551. end
  552. attacking = false
  553. end
  554.  
  555. function kd(key,mouse)
  556. if key == "x" then m:Remove() h:Remove() lock(0)
  557. end
  558. if attacking == false then
  559. if key == "f" then att()
  560. elseif key == "r" then att2(mouse.Target,mouse.hit.p)
  561. elseif key == "e" then demon()
  562. elseif key == "c" then att3()
  563. elseif key == "q" then suicide()
  564. end
  565. end
  566. end
  567.  
  568. keylist = {"f","e"}
  569.  
  570. function select(mouse)
  571. lock(1)
  572. wield(1)
  573. mouse.KeyUp:connect(function(key) for i,v in pairs(keylist) do if key == v then holding = false end end end)
  574. mouse.KeyDown:connect(function(key) kd(key,mouse) end)
  575. mouse.Button1Down:connect(function() if attacking == false then slash() end end)
  576. end
  577.  
  578. h.Selected:connect(select)
  579. h.Deselected:connect(function() wield(0) lock(0) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement