dsniper

Untitled

Jun 15th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.12 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3. mouse = plr:GetMouse()
  4. torso = char.Torso
  5. head = char.Head
  6. ra = char["Right Arm"]
  7. la = char["Left Arm"]
  8. rs = char.Torso["Right Shoulder"]
  9. ls = char.Torso["Left Shoulder"]
  10. humanoid = char:findFirstChild("Humanoid")
  11. local damage = math.random(16, 22)
  12. local debounce = false
  13. local attack = false
  14. local healing = false
  15. local touched = false
  16. Run = game:service'RunService'
  17.  
  18. hndl = Instance.new("Part", char)
  19. hndl.FormFactor = "Custom"
  20. hndl.Size = Vector3.new(0.51, 5, 0.21)
  21. hndl.BottomSurface = "SmoothNoOutlines"
  22. hndl.FrontSurface = "SmoothNoOutlines"
  23. hndl.RightSurface = "SmoothNoOutlines"
  24. hndl.LeftSurface = "SmoothNoOutlines"
  25. hndl.TopSurface = "SmoothNoOutlines"
  26. hndl.BackSurface = "SmoothNoOutlines"
  27. hndl.Locked = true
  28. hndl.CanCollide = false
  29. hndl.Reflectance = 0.5
  30. hndl:BreakJoints()
  31. w = Instance.new("Weld", char)
  32. w.C0 = CFrame.new(0, 0, -0.6) * CFrame.Angles(0, 0, math.pi/4)
  33. w.Part0 = hndl
  34. w.Part1 = torso
  35. hndl2 = Instance.new("Part", char)
  36. hndl2.FormFactor = "Custom"
  37. hndl2.Size = Vector3.new(0.53, 1.5, 0.23)
  38. hndl2.BrickColor = BrickColor.Blue()
  39. hndl2.BottomSurface = "SmoothNoOutlines"
  40. hndl2.FrontSurface = "SmoothNoOutlines"
  41. hndl2.RightSurface = "SmoothNoOutlines"
  42. hndl2.LeftSurface = "SmoothNoOutlines"
  43. hndl2.TopSurface = "SmoothNoOutlines"
  44. hndl2.BackSurface = "SmoothNoOutlines"
  45. hndl2.CanCollide = false
  46. hndl2.Locked = true
  47. hndl2:BreakJoints()
  48. w2 = Instance.new("Weld", char)
  49. w2.C0 = CFrame.new(0, -1.8, 0) * CFrame.Angles(0, 0, 0)
  50. w2.Part0 = hndl2
  51. w2.Part1 = hndl
  52. hndl3 = Instance.new("Part", char)
  53. hndl3.FormFactor = "Custom"
  54. hndl3.Size = Vector3.new(0.73, 0.4, 0.23)
  55. hndl3.BrickColor = BrickColor.Blue()
  56. hndl3.BottomSurface = "SmoothNoOutlines"
  57. hndl3.FrontSurface = "SmoothNoOutlines"
  58. hndl3.RightSurface = "SmoothNoOutlines"
  59. hndl3.LeftSurface = "SmoothNoOutlines"
  60. hndl3.TopSurface = "SmoothNoOutlines"
  61. hndl3.BackSurface = "SmoothNoOutlines"
  62. hndl3.CanCollide = false
  63. hndl3.Locked = true
  64. hndl3:BreakJoints()
  65. w3 = Instance.new("Weld", char)
  66. w3.C0 = CFrame.new(0, -1.2, 0) * CFrame.Angles(0, 0, 0)
  67. w3.Part0 = hndl3
  68. w3.Part1 = hndl
  69. hndl4 = Instance.new("Part", char)
  70. hndl4.FormFactor = "Custom"
  71. hndl4.Size = Vector3.new(0.36, 0.36, 0.21)
  72. hndl4.BottomSurface = "SmoothNoOutlines"
  73. hndl4.FrontSurface = "SmoothNoOutlines"
  74. hndl4.RightSurface = "SmoothNoOutlines"
  75. hndl4.LeftSurface = "SmoothNoOutlines"
  76. hndl4.TopSurface = "SmoothNoOutlines"
  77. hndl4.BackSurface = "SmoothNoOutlines"
  78. hndl4.CanCollide = false
  79. hndl4.Reflectance = 0.5
  80. hndl4.Locked = true
  81. hndl4:BreakJoints()
  82. w4 = Instance.new("Weld", char)
  83. w4.C0 = CFrame.new(-1.77, 1.77, 0) * CFrame.Angles(0, 0, math.pi/4)
  84. w4.Part0 = hndl4
  85. w4.Part1 = hndl
  86.  
  87. sound = Instance.new("Sound", head)
  88. sound.SoundId = "http://roblox.com/asset/?id=10209850"
  89. sound.Volume = 1
  90.  
  91. tool = Instance.new("HopperBin", plr.Backpack)
  92. tool.Name = "Sword"
  93.  
  94. tool.Selected:connect(function(mouse)
  95. rs.Part0 = nil
  96. rs.Part1 = nil
  97. ls.Part0 = nil
  98. ls.Part1 = nil
  99.  
  100.  
  101. ar = Instance.new("Part", char)
  102. ar.FormFactor = "Custom"
  103. ar.Size = Vector3.new(1, 1, 1)
  104. ar.Transparency = 1
  105. ar.Locked = true
  106. ar.CanCollide = false
  107. ar:BreakJoints()
  108.  
  109. fake = Instance.new("Weld", char)
  110. fake.Part0 = char.Torso
  111. fake.C0 = CFrame.new(1.48,0.45,0)
  112. fake.Part1 = ar
  113.  
  114. ws = Instance.new("Weld", char)
  115. ws.C0 = CFrame.new(0, 0.45, 0)
  116. ws.Part0 = ra
  117. ws.C1 = CFrame.new()
  118. ws.Part1 = ar
  119.  
  120.  
  121. ar2 = Instance.new("Part", char)
  122. ar2.FormFactor = "Custom"
  123. ar2.Size = Vector3.new(1, 1, 1)
  124. ar2.Transparency = 1
  125. ar2.Locked = true
  126. ar2.CanCollide = false
  127. ar2:BreakJoints()
  128.  
  129. fake2 = Instance.new("Weld", char)
  130. fake2.Part0 = char.Torso
  131. fake2.C0 = CFrame.new(-1.48,0.45,0)
  132. fake2.Part1 = ar2
  133.  
  134. ws2 = Instance.new("Weld", char)
  135. ws2.C0 = CFrame.new(0, 0.45, 0)
  136. ws2.Part0 = la
  137. ws2.C1 = CFrame.new()
  138. ws2.Part1 = ar2
  139.  
  140. for i = 0, 160, 12 do
  141. fake.C0 = CFrame.new(1.48, 0.45, 0) * CFrame.Angles(math.rad(i), 0, 0)
  142. wait()
  143. end
  144. w.C0 = CFrame.new(-0.6, 2, -0.8) * CFrame.Angles(-math.pi/2, 0, math.pi/4)
  145. w.Part0 = hndl
  146. w.Part1 = ra
  147. coroutine.wrap(function()
  148. for i = 160, 70, -10 do
  149. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(i/1.8))
  150. wait()
  151. end
  152. end)()
  153. for i = 0, 70, 10 do
  154. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(i/1.8))
  155. wait()
  156. end
  157. mouse.Button1Down:connect(function(mouse)
  158. if attack then return end
  159. if debounce then return end
  160. if healing then return end
  161. attack = true
  162. for i = 70, 120, 10 do
  163. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(50/1.8))
  164. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(90/1.8))
  165. wait()
  166. end
  167. sound:play()
  168. for i = 125, 30, -15 do
  169. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(50/1.8))
  170. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(90/1.8))
  171. wait()
  172. end
  173. for i = 30, 70, 10 do
  174. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(70/1.8))
  175. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(70/1.8))
  176. wait()
  177. end
  178. attack = false
  179.  
  180. end)
  181. mouse.KeyDown:connect(function(key)
  182. if key == "e" then
  183. if attack then return end
  184. if debounce then return end
  185. if healing then return end
  186. debounce = true
  187. super1()
  188. end
  189. if key == "q" then
  190. if attack then return end
  191. if debounce then return end
  192. healing = true
  193. coroutine.wrap(function()
  194. while healing do
  195. coroutine.wrap(function()
  196. if char:findFirstChild("Humanoid") then
  197. char.Humanoid.Health = char.Humanoid.Health + 10
  198. end
  199. local pow = Instance.new("Part", char)
  200. pow.BrickColor = BrickColor.Blue()
  201. pow.FormFactor = "Custom"
  202. pow.CanCollide = false
  203. pow.Size = Vector3.new(0.2, 0.6, 0.2)
  204. pow.Anchored = true
  205. pow.TopSurface = 0
  206. pow.BottomSurface = 0
  207. pow.BottomSurface = "SmoothNoOutlines"
  208. pow.FrontSurface = "SmoothNoOutlines"
  209. pow.RightSurface = "SmoothNoOutlines"
  210. pow.LeftSurface = "SmoothNoOutlines"
  211. pow.TopSurface = "SmoothNoOutlines"
  212. pow.BackSurface = "SmoothNoOutlines"
  213. pow.CFrame = torso.CFrame * CFrame.new(math.random(-4, 4), -4, math.random(-4, 4))
  214. Instance.new("PointLight", pow).Color = Color3.new(0, 0, 1)
  215. coroutine.wrap(function()
  216. while pow ~= nil do
  217. pow.CFrame = pow.CFrame * CFrame.new(0, 0.5, 0)
  218. Run.Stepped:wait()
  219. end
  220. end)()
  221. wait(0.5)
  222. for transpar = 0, 1, 0.1 do
  223. pow.Transparency = transpar
  224. wait()
  225. end
  226. pow:Destroy()
  227.  
  228.  
  229. end)()
  230. Run.Stepped:wait(0.2)
  231. end
  232. end)()
  233. end
  234. if key == "r" then
  235. if debounce then return end
  236. if healing then return end
  237. if attack then return end
  238. debounce = true
  239. super2()
  240. end
  241. end)
  242.  
  243. mouse.KeyUp:connect(function(key)
  244. if key == "q" then
  245. healing = false
  246. end
  247. end)
  248.  
  249. end)
  250.  
  251. tool.Deselected:connect(function()
  252. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4)
  253. fake.C0 = CFrame.new(1.2, 0.45, -0.4)
  254. w.C0 = CFrame.new(0, 0, -0.6) * CFrame.Angles(0, 0, math.pi/4)
  255. w.Part0 = hndl
  256. w.Part1 = torso
  257. ws:Destroy()
  258. ws2:Destroy()
  259. fake:Destroy()
  260. fake2:Destroy()
  261. ar2:Destroy()
  262. ar:Destroy()
  263. rs.Part0 = torso
  264. rs.Part1 = ra
  265. ls.Part0 = torso
  266. ls.Part1 = la
  267. end)
  268.  
  269.  
  270. function super1()
  271. for i = 70, 150, 10 do
  272. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(i/1.8))
  273. wait()
  274. end
  275.  
  276.  
  277.  
  278. for i = 0, 60 do
  279. coroutine.wrap(function()
  280. local charge = Instance.new("Part", char)
  281. charge.FormFactor = "Custom"
  282. charge.TopSurface = 0
  283. charge.BottomSurface = 0
  284. charge.Transparency = 0.4
  285. charge.BrickColor = BrickColor.White()
  286. charge.Anchored = true
  287. charge.CanCollide = false
  288. charge.Size = Vector3.new(2, 2, 2)
  289. charge.BottomSurface = "SmoothNoOutlines"
  290. charge.FrontSurface = "SmoothNoOutlines"
  291. charge.RightSurface = "SmoothNoOutlines"
  292. charge.LeftSurface = "SmoothNoOutlines"
  293. charge.TopSurface = "SmoothNoOutlines"
  294. charge.BackSurface = "SmoothNoOutlines"
  295. charge.CFrame = la.CFrame * CFrame.new(0, -0.8, 0) * CFrame.Angles(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  296. wait()
  297. for tra = 0.4, 1, 0.1 do
  298. charge.Transparency = tra
  299. wait()
  300. end
  301. charge:Destroy()
  302. end)()
  303. wait(0.06)
  304. end
  305. for i = 150, 70, -10 do
  306. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(i/1.8))
  307. wait()
  308. end
  309. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(70), 0, math.rad(70/1.8))
  310. local powa = Instance.new("Part", char)
  311. powa.FormFactor = "Custom"
  312. powa.BrickColor = BrickColor.White()
  313. powa.Size = Vector3.new(4, 200, 4)
  314. powa.Transparency = 0.6
  315. powa.CanCollide = false
  316. powa.Locked = true
  317. powa.Anchored = true
  318. powa.CFrame = torso.CFrame * CFrame.new(0, 0, 0)
  319. Instance.new("CylinderMesh", powa)
  320. coroutine.wrap(function()
  321. powa.Touched:connect(function(hit)
  322. if hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= plr.Name then
  323. hit.Parent:BreakJoints()
  324. end
  325. end)
  326. end)()
  327. coroutine.wrap(function()
  328. for size = 4, 70, 2 do
  329. powa.Size = Vector3.new(size, 200, size)
  330. powa.CFrame = torso.CFrame * CFrame.new(0, 0, 0)
  331. wait()
  332. end
  333. end)()
  334. wait(0.4)
  335. for trans = 0.6, 1, 0.02 do
  336. powa.Transparency = trans
  337. wait()
  338. end
  339. powa:Destroy()
  340.  
  341.  
  342. debounce = false
  343. end
  344.  
  345. function super2()
  346. for i = 70, 0, -10 do
  347. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(i/1.8))
  348. wait()
  349. end
  350.  
  351. bodyG = Instance.new("BodyGyro", torso)
  352. bodyG.maxTorque = Vector3.new(0, math.huge, 0)
  353. bodyG.P = 9999999
  354. bodyG.cframe = torso.CFrame
  355. neck = torso.Neck
  356. neck.C0 = neck.C0 * CFrame.Angles(0, math.rad(0), math.rad(90))
  357. coroutine.wrap(function()
  358. game:service'RunService'.Stepped:connect(function()
  359. bodyG.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.Position.y,mouse.Hit.p.z)) * CFrame.Angles(0, math.rad(-90), 0)
  360. end)
  361. end)()
  362. for i = 0, 90, 10 do
  363. fake2.C0 = CFrame.new(-1.45, 0.45, -0) * CFrame.Angles(0, 0, -math.rad(i))
  364. wait()
  365. end
  366. for i = 0, 20 do
  367. coroutine.wrap(function()
  368. local charge = Instance.new("Part", char)
  369. charge.FormFactor = "Custom"
  370. charge.TopSurface = 0
  371. charge.BottomSurface = 0
  372. charge.Transparency = 0.4
  373. charge.BrickColor = BrickColor.White()
  374. charge.Anchored = true
  375. charge.CanCollide = false
  376. charge.Size = Vector3.new(2, 2, 2)
  377. charge.BottomSurface = "SmoothNoOutlines"
  378. charge.FrontSurface = "SmoothNoOutlines"
  379. charge.RightSurface = "SmoothNoOutlines"
  380. charge.LeftSurface = "SmoothNoOutlines"
  381. charge.TopSurface = "SmoothNoOutlines"
  382. charge.BackSurface = "SmoothNoOutlines"
  383.  
  384. charge.CFrame = la.CFrame * CFrame.new(0, -0.8, 0) * CFrame.Angles(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  385. wait()
  386. for tra = 0.4, 1, 0.1 do
  387. charge.Transparency = tra
  388. wait()
  389. end
  390. charge:Destroy()
  391. end)()
  392. wait(0.06)
  393. end
  394. local ball = Instance.new("Part", char)
  395. ball.FormFactor = "Custom"
  396. ball.Size = Vector3.new(4, 4, 4)
  397. ball.Shape = "Ball"
  398. ball.Transparency = 0.4
  399. ball.BottomSurface = 0
  400. ball.TopSurface = 0
  401. ball.CanCollide = true
  402. ball.Anchored = true
  403. ball:breakJoints()
  404. coroutine.wrap(function()
  405. for i = 0, 100, 2 do
  406. if touched then return end
  407. ball.CFrame = la.CFrame * CFrame.new(0, -7, 0) *CFrame.new(0, -i, 0)
  408. wait()
  409. end
  410. if touched then return end
  411. ball.Size = Vector3.new(5, 5, 5)
  412. wait(0.1)
  413. ball.Transparency = 0.6
  414. ball.Size = Vector3.new(6, 6, 6)
  415. wait(0.1)
  416. ball.Size = Vector3.new(7, 7, 7)
  417. ball.Transparency = 0.8
  418. wait(0.1)
  419. ball.Transparency = 1
  420. ball:Destroy()
  421. end)()
  422. ball.BrickColor = BrickColor.White()
  423.  
  424. ball.Touched:connect(function(hit)
  425. if touched then return end
  426. if hit.Parent ~= nil then
  427. touched = true
  428. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  429. hit.Parent:BreakJoints()
  430. end
  431. ball.Transparency = 0.6
  432. ball.Size = Vector3.new(6, 6, 6)
  433. wait(0.1)
  434. ball.Size = Vector3.new(7, 7, 7)
  435. ball.Transparency = 0.8
  436. wait(0.1)
  437. ball.Transparency = 1
  438. ball:Destroy()
  439. wait(1)
  440. touched = false
  441. end
  442. end)
  443.  
  444. wait(2)
  445. bodyG:Destroy()
  446. neck.C0 = neck.C0 * CFrame.Angles(0, math.rad(0), math.rad(-90))
  447. for i = 90, 0, -10 do
  448. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(0, 0, -math.rad(i))
  449. wait()
  450. end
  451. for i = 0, 70, 10 do
  452. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(i/1.8))
  453. wait()
  454. end
  455. debounce = false
  456. end
  457.  
  458.  
  459. hndl.Touched:connect(function(hit)
  460. if attack then
  461. if debounce then return end
  462. debounce = true
  463. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  464. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(damage)
  465. end
  466. wait(0.1)
  467. debounce = false
  468. end
  469. end)
Add Comment
Please, Sign In to add comment