Advertisement
TheCopyPaster99

Untitled

Jan 22nd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.40 KB | None | 0 0
  1. local plr = game:service'Players'.LocalPlayer
  2. local char = plr.Character
  3. local mouse = plr:GetMouse()
  4. local torso = char:findFirstChild("Torso")
  5. local head = char.Head
  6. local ra = char:findFirstChild("Right Arm")
  7. local la = char:findFirstChild("Left Arm")
  8. local rl = char:findFirstChild("Right Leg")
  9. local ll = char:findFirstChild("Left Leg")
  10. local rs = torso:findFirstChild("Right Shoulder")
  11. local ls = torso:findFirstChild("Left Shoulder")
  12. local equipped = false
  13. local debounce = false
  14. local slashing = false
  15. local blocking = false
  16. local blocking2 = false
  17. local stoopidstuff = Instance.new("BoolValue", char)
  18. stoopidstuff.Name = "stoopidstuff"
  19. stoopidstuff.Value = true
  20. local healing = false
  21. local storedhealth
  22. local storewalkspeed = char:findFirstChild("Humanoid").WalkSpeed
  23. local damage = 9999991e+9999
  24. local colors = {"Bright red"}
  25. function part(parent, size, formfactor, color, collide, transparency)
  26. local p=Instance.new("Part", parent)
  27. p.FormFactor=formfactor
  28. p.CanCollide=false
  29. p.Size=size
  30. p.Locked=true
  31. p.Transparency=transparency
  32. p.Position=torso.Position
  33. p.BrickColor=color
  34. p.FrontSurface="SmoothNoOutlines"
  35. p.BackSurface="SmoothNoOutlines"
  36. p.LeftSurface="SmoothNoOutlines"
  37. p.BottomSurface="SmoothNoOutlines"
  38. p.TopSurface="SmoothNoOutlines"
  39. p.RightSurface="SmoothNoOutlines"
  40. return p
  41. end
  42. function wedge(parent, size, formfactor, color, collide)
  43. local p=Instance.new("Wedge", parent)
  44. p.FormFactor=formfactor
  45. p.CanCollide=false
  46. p.Size=size
  47. p.Locked=true
  48. p.Position = torso.Position
  49. p.BrickColor=color
  50. p.FrontSurface="SmoothNoOutlines"
  51. p.BackSurface="SmoothNoOutlines"
  52. p.LeftSurface="SmoothNoOutlines"
  53. p.BottomSurface="SmoothNoOutlines"
  54. p.TopSurface="SmoothNoOutlines"
  55. p.RightSurface="SmoothNoOutlines"
  56. return p
  57. end
  58. function weld(c0, c1, part1, part0)
  59. local wel=Instance.new("Weld", char)
  60. wel.Part0 = part0
  61. wel.Part1 = part1
  62. wel.C0 = c0
  63. wel.C1 = c1
  64. return wel
  65. end
  66. function specialmesh(parent, meshType, scale, meshId)
  67. local mesh = Instance.new("SpecialMesh", parent)
  68. mesh.Scale = scale
  69. mesh.MeshType = meshType
  70. mesh.MeshId = meshId
  71. return mesh
  72. end
  73. function equip()
  74. ar = Instance.new("Part", char)
  75. ar.FormFactor = "Custom"
  76. ar.Size = Vector3.new(1, 1, 1)
  77. ar.Transparency = 1
  78. ar.CanCollide = false
  79. ar.Locked = true
  80. ar:BreakJoints()
  81. fakel = Instance.new("Weld", char)
  82. fakel.Part0 = char.Torso
  83. fakel.Part1 = ar
  84. coroutine.wrap(function()
  85. for angle = 0, 45, 5 do
  86. if fakel == nil then return end
  87. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(0), math.rad(0))
  88. wait()
  89. end
  90. end)()
  91. welditbro = Instance.new("Weld", char)
  92. welditbro.C0 = CFrame.new(0, 0.5, 0)
  93. welditbro.Part0 = ra
  94. welditbro.Part1 = ar
  95. end
  96. function block()
  97. if not equipped then return end
  98. stoopidstuff.Value = true
  99. damage = 200000000
  100. char:findFirstChild("Humanoid").WalkSpeed = 6
  101. storedhealth = char:findFirstChild("Humanoid").Health
  102. for angle = 0, 70, 10 do
  103. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45), math.rad(angle), 0)
  104. wait()
  105. end
  106. coroutine.wrap(function()
  107. while blocking do
  108. if not blocking then return end
  109. char:findFirstChild("Humanoid").Health = storedhealth
  110. game:service'RunService'.Stepped:wait()
  111. end
  112. end)()
  113. end
  114. function unblock()
  115. stoopidstuff.Value = false
  116. if not equipped then return end
  117. damage = 3000000
  118. char:findFirstChild("Humanoid").WalkSpeed = storewalkspeed
  119. for angle = 70, 0, -10 do
  120. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45), math.rad(angle), 0)
  121. wait()
  122. end
  123. blocking = false
  124. end
  125. function block2()
  126. if not equipped then return end
  127. stoopidstuff.Value = true
  128. damage = 20000000
  129. char:findFirstChild("Humanoid").WalkSpeed = 6
  130. storedhealth = char:findFirstChild("Humanoid").Health
  131. for angle = 0, 50, 10 do
  132. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45 + angle/6), 0, -math.rad(angle))
  133. wait()
  134. end
  135. coroutine.wrap(function()
  136. while blocking2 do
  137. if not blocking2 then return end
  138. char:findFirstChild("Humanoid").Health = storedhealth
  139. game:service'RunService'.Stepped:wait()
  140. end
  141. end)()
  142. end
  143. function unblock2()
  144. stoopidstuff.Value = false
  145. if not equipped then return end
  146. damage = 30000
  147. char:findFirstChild("Humanoid").WalkSpeed = storewalkspeed
  148. for angle = 50, 0, -10 do
  149. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45 + angle/6), math.rad(0), -math.rad(angle))
  150. wait()
  151. end
  152. blocking2 = false
  153. end
  154. function heal()
  155. ar2 = Instance.new("Part", char)
  156. ar2.FormFactor = "Custom"
  157. ar2.Size = Vector3.new(1, 1, 1)
  158. ar2.Transparency = 1
  159. ar2.CanCollide = false
  160. ar2.Locked = true
  161. ar2:BreakJoints()
  162. fakel2 = Instance.new("Weld", char)
  163. fakel2.Part0 = torso
  164. fakel2.Part1 = ar2
  165. welditbro2 = Instance.new("Weld", char)
  166. welditbro2.C0 = CFrame.new(0, 0.5, 0)
  167. welditbro2.Part0 = la
  168. welditbro2.Part1 = ar2
  169. for angle = 0, 170, 5 do
  170. fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(0), math.rad(0))
  171. wait()
  172. end
  173. local ball = Instance.new("Part", char)
  174. ball.FormFactor = "Custom"
  175. ball.BrickColor = BrickColor.new("Lime green")
  176. ball.Anchored = true
  177. ball.CanCollide = false
  178. ball.TopSurface = 0
  179. ball.BottomSurface = 0
  180. ball.Transparency = 0.4
  181. ball.Locked = true
  182. ball.Shape = "Ball"
  183. ball.CFrame = torso.CFrame
  184. local mesh = Instance.new("SpecialMesh", ball)
  185. mesh.MeshType = "Sphere"
  186. coroutine.wrap(function()
  187. for i = 0.2, 8, 0.1 do
  188. mesh.Scale = Vector3.new(i, i, i)
  189. ball.Transparency = ball.Transparency + 0.005
  190. wait()
  191. end
  192. ball:Destroy()
  193. end)()
  194. local splash = Instance.new("Part", char)
  195. splash.FormFactor = "Custom"
  196. splash.BrickColor = BrickColor.new("Lime green")
  197. splash.Transparency = 0
  198. splash.Anchored = true
  199. splash.CanCollide = false
  200. splash.BottomSurface = 0
  201. splash.TopSurface = 0
  202. splash.Locked = true
  203. local mesh = Instance.new("SpecialMesh", splash)
  204. mesh.MeshType = "FileMesh"
  205. mesh.Scale = Vector3.new(1, 1, 1)
  206. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  207. splash:BreakJoints()
  208. splash.CFrame = ball.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  209. coroutine.resume(coroutine.create(function()
  210. for i = 0, 50, 0.5 do
  211. mesh.Scale = Vector3.new(i, i, 1)
  212. splash.Transparency = splash.Transparency + 0.01
  213. wait()
  214. end
  215. splash:Destroy()
  216. end))
  217.  
  218. char:findFirstChild("Humanoid").Health = char:findFirstChild("Humanoid").Health + 1000
  219. wait(0.5)
  220. welditbro2:Destroy()
  221. fakel2:Destroy()
  222. ar2:Destroy()
  223. ls.Parent = torso
  224. wait(1)
  225. healing = false
  226. end
  227.  
  228. function slash()
  229. if blocking then return end
  230. if blocking2 then return end
  231. if not equipped then return end
  232. damage = 200000000
  233. for angle = 45, 95, 10 do
  234. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)
  235. wait()
  236. end
  237. for angle = 95, 5, -20 do
  238. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)
  239. wait()
  240. end
  241. for angle = 5, 45, 10 do
  242. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/angle - 5), 0)
  243. wait()
  244. end
  245. slashing = false
  246. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, 0)
  247. damage = 200000000
  248. wait(0.2)
  249. end
  250. function deequip()
  251. pcall(function()
  252. ar:Destroy()
  253. fakel:Destroy()
  254. welditbro:Destroy()
  255. end)
  256. end
  257.  
  258. local part1 = part(char, Vector3.new(0.2, 1.4, 0.2), "Custom", BrickColor.new("Black"), 0)
  259. Instance.new("CylinderMesh", part1)
  260. local weld1 = weld(CFrame.new(0, 0, 1) * CFrame.Angles(math.pi/2, 0, 0), CFrame.new(), ra, part1)
  261. local part2 = part(char, Vector3.new(0.4, 0.4, 0.4), "Custom", BrickColor.new("Black"), 0)
  262. Instance.new("CylinderMesh", part2)
  263. local weld3 = weld(CFrame.new(0, 0.65, 0), CFrame.new(), part2, part1)
  264. local part3 = part(char, Vector3.new(0.3, 4.4, 0.3), "Custom", BrickColor.White(), 0)
  265. local mesh1 = specialmesh(part3, "Head", Vector3.new(0.8, 1, 0.8), "")
  266. local weld4 = weld(CFrame.new(0, 2.9, 0), CFrame.new(), part3, part1)
  267. local part4 = part(char, Vector3.new(0.4, 4.4, 0.4), "Custom", BrickColor.new(colors[math.random(1, #colors)]), 0)
  268. local mesh2 = specialmesh(part4, "Head", Vector3.new(1, 1.01, 1), "")
  269. local weld5 = weld(CFrame.new(0, 2.9, 0), CFrame.new(), part4, part1)
  270. local pl = Instance.new("PointLight", part4)
  271. pl.Color = part4.BrickColor.Color
  272. pl.Brightness = 0
  273. part3.Transparency = 1
  274. part4.Transparency = 1
  275. part4.Touched:connect(function(hit)
  276. if not equipped then return end
  277. if debounce then return end
  278. debounce = true
  279. coroutine.wrap(function()
  280. pcall(function()
  281. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  282. if hit.Parent.Name == char.Name then return end
  283. if hit.Parent:findFirstChild("stoopidstuff") ~= nil and hit.Parent:findFirstChild("stoopidstuff").Value == true then
  284. return
  285. end
  286. damagerandom = damage + math.random(0, 10)
  287. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damagerandom
  288. coroutine.wrap(function()
  289. local prt = Instance.new("Part", char)
  290. prt.FormFactor = "Custom"
  291. prt.Size = Vector3.new(0.1, 0.1, 0.1)
  292. prt.Transparency = 1
  293. prt.CanCollide = false
  294. prt.CFrame = CFrame.new(part4.CFrame.x, part4.CFrame.y, part4.CFrame.z)
  295. prt.Anchored = true
  296. coroutine.resume(coroutine.create(function()
  297. for i = 2, 10, 0.05 do
  298. if prt == nil then return end
  299. prt.CFrame = prt.CFrame * CFrame.new(0, 0.05, 0)
  300. game:service'RunService'.Stepped:wait()
  301. end
  302. end))
  303.  
  304. local bg = Instance.new("BillboardGui")
  305. bg.Parent = prt
  306. bg.Adornee = prt
  307. bg.Size = UDim2.new(4, 0, 3.5, 0)
  308. bg.ExtentsOffset = Vector3.new(0, 0, 0)
  309. local lol = Instance.new("TextLabel")
  310. lol.Size = UDim2.new(1.3, 0, 0.4, 0)
  311. lol.TextScaled = true
  312. lol.TextWrapped = true
  313. lol.BackgroundTransparency = 0.4
  314. lol.Parent = bg
  315. lol.FontSize = "Size24"
  316. lol.TextColor3 = Color3.new(1, 0, 0)
  317. lol.TextStrokeTransparency = 0
  318. lol.Font = "ArialBold"
  319. lol.Text = "-"..damagerandom
  320.  
  321. wait(5)
  322. prt:Destroy()
  323. end)()
  324. end
  325. end)
  326. end)()
  327. wait(0.1)
  328. debounce = false
  329. end)
  330. mouse.Button1Down:connect(function(mouse)
  331. if slashing then return end
  332. if not equipped then return end
  333. if blocking2 then return end
  334. if blocking then return end
  335. slashing = true
  336. slash()
  337. end)
  338. mouse.KeyUp:connect(function(key)
  339.  
  340. if key == "f" then
  341. if not equipped then return end
  342. if not blocking then return end
  343. unblock()
  344. char:findFirstChild("Humanoid").MaxHealth = 100
  345. end
  346. if key == "g" then
  347. if not equipped then return end
  348. if not blocking2 then return end
  349. unblock2()
  350. char:findFirstChild("Humanoid").MaxHealth = 100
  351. end
  352. end)
  353. mouse.KeyDown:connect(function(key)
  354. if key == "f" then
  355. if not equipped then return end
  356. if blocking then return end
  357. if blocking2 then return end
  358. blocking = true
  359. block()
  360. end
  361. if key == "g" then
  362. if not equipped then return end
  363. if blocking then return end
  364. if blocking2 then return end
  365. blocking2 = true
  366. block2()
  367. end
  368. if key == "v" then
  369. if healing then return end
  370. if slashing then return end
  371. healing = true
  372. heal()
  373. end
  374. if key == "q" then
  375. if blocking2 then return end
  376. if blocking then return end
  377. equipped = not equipped
  378. if equipped then
  379. coroutine.wrap(function()
  380. while equipped do
  381. part4.Transparency = 0.6
  382. pl.Brightness = 0.6
  383. wait(0.05)
  384. part4.Transparency = 0.7
  385. pl.Brightness = 0.8
  386. wait(0.05)
  387. end
  388. end)()
  389. weld1.Part1 = ra
  390. weld1.C0 = CFrame.new(0, 0, 1) * CFrame.Angles(math.pi/2, 0, 0)
  391. part3.Transparency = 0
  392. local sound = Instance.new("Sound", char.Head)
  393. sound.SoundId = [[rbxasset://sounds\Rocket whoosh 01.wav]]
  394. sound.Pitch = 3
  395. sound.Volume = 1
  396. sound:play()
  397. equip()
  398. wait(1)
  399. sound:stop()
  400. sound:Destroy()
  401. else
  402. deequip()
  403. wait(0.1)
  404. weld1.Part1 = rl
  405. weld1.C0 = CFrame.new(-0.6,-0.8,-0.2) * CFrame.Angles(math.pi/4, 0, 0)
  406. part3.Transparency = 1
  407. pl.Brightness = 0
  408. part4.Transparency = 1
  409. end
  410. end
  411.  
  412. end)
  413. while true do
  414.  
  415. if slashing then
  416. local clone = part4:clone()
  417. clone.Anchored = true
  418. clone.Parent = workspace
  419. clone.Name = "trail"
  420. clone:findFirstChild("Mesh"):Destroy()
  421. Instance.new("BlockMesh", clone)
  422. clone.Mesh.Scale = clone.Mesh.Scale - Vector3.new(0.8, 0, 0) + Vector3.new(0, 0, 1.6)
  423. coroutine.wrap(function()
  424. for i = 0, 20 do
  425. clone.Transparency = clone.Transparency + 0.05
  426. clone.Mesh.Scale = clone.Mesh.Scale - Vector3.new(0.05, 0.05, 0.05)
  427. wait()
  428. end
  429. clone:Destroy()
  430. end)()
  431. end
  432. wait()
  433. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement