Thefrozen106

Dark blade

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