rouyen

Untitled

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