ThatOneGuy561

Untitled

Jun 14th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.88 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3. mouse = plr:GetMouse()
  4. id = char.Head.face.Texture
  5. attacking = false
  6. enabled = false
  7. faces = {0}
  8. current = 2
  9. dhit = false
  10. hits = {}
  11. tool = Instance.new("HopperBin", plr.Backpack)
  12. tool.Name = "Kagune"
  13. damage = 10
  14. qt = false
  15. dt = false
  16. tool.Selected:connect(function()
  17. char.Head.face.Texture = "rbxassetid://417365650"
  18. enabled = true
  19. end)
  20. tool.Deselected:connect(function()
  21. char.Head.face.Texture = id
  22. enabled = false
  23. char.Humanoid.WalkSpeed = 16
  24. end)
  25. mouse.KeyDown:connect(function(key)
  26. if key == "2" and enabled then
  27. char.Humanoid.WalkSpeed = 150
  28. end
  29. end)
  30. mouse.KeyUp:connect(function(key)
  31. if key == "2" then
  32. char.Humanoid.WalkSpeed = 16
  33. end
  34. end)
  35. eat = Instance.new("Sound", char.Head)
  36. eat.SoundId = "rbxassetid://422622480"
  37. function blood(a)
  38. for i = 1, 3 do
  39. do
  40. local b = Instance.new("Part", workspace)
  41. b.Material = "SmoothPlastic"
  42. b.BrickColor = BrickColor.new("Crimson")
  43. b.Size = Vector3.new(0.3, 0.3, 0.3)
  44. b.CFrame = a.CFrame
  45. local done = false
  46. game:GetService("RunService").Stepped:connect(function()
  47. if done == false then
  48. done = true
  49. wait(1)
  50. b:Destroy()
  51. end
  52. end)
  53. wait()
  54. end
  55. end
  56. end
  57. function lto(a, b)
  58. if a < b then
  59. return 0
  60. else
  61. return a
  62. end
  63. end
  64. function hto(a, b)
  65. if b < a then
  66. return b
  67. else
  68. return a
  69. end
  70. end
  71. bv = CFrame.new(0, 0, -0.8) * CFrame.Angles(0, math.rad(180), 0)
  72. kpv = CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5)
  73. attacking = false
  74. spawn(function()
  75. while true do
  76. wait()
  77. if not attacking then
  78. for i = 0, 50, 0.1 do
  79. if not attacking then
  80. wait()
  81. kpv = kpv:lerp(CFrame.Angles(math.rad(35), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.005)
  82. end
  83. end
  84. for i = 0, 50, 0.1 do
  85. if not attacking then
  86. wait()
  87. kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.005)
  88. end
  89. end
  90. end
  91. end
  92. end)
  93. base = Instance.new("Part", script)
  94. base.Transparency = 1
  95. base.CanCollide = false
  96. base.Size = Vector3.new(0, 0, 0)
  97. bw = Instance.new("Motor6D", base)
  98. bw.Part0 = char.Torso
  99. bw.Part1 = base
  100. spawn(function()
  101. while true do
  102. wait()
  103. bw.C0 = bw.C0:lerp(bv, 0.3)
  104. end
  105. end)
  106. rp = Instance.new("Motor6D", char.Torso)
  107. rp.Part0 = char.HumanoidRootPart
  108. rp.Part1 = char.Torso
  109. size = 20
  110. prev = base
  111. for i = 1, size do
  112. do
  113. local a = Instance.new("Part", script)
  114. a.BrickColor = BrickColor.new("Crimson")
  115. a.Material = "Pebble"
  116. a.CanCollide = false
  117. if i > size / 2 then
  118. xs = size - i
  119. else
  120. xs = i
  121. end
  122. xs = xs * 0.5
  123. xs = xs + 1
  124. a.Size = Vector3.new(xs, 0, 3)
  125. local weld = function(a, b, c)
  126. local w = Instance.new("Weld", b)
  127. w.Part0 = a
  128. w.Part1 = b
  129. w.C0 = c
  130. end
  131. local b = a:Clone()
  132. b.Parent = script
  133. b.BrickColor = BrickColor.new(339)
  134. b.Size = Vector3.new(0, 0.3, 3)
  135. weld(a, b, CFrame.new(xs / 2, 0, 0))
  136. local c = a:Clone()
  137. c.Parent = script
  138. c.BrickColor = BrickColor.new(339)
  139. c.Size = Vector3.new(0, 0.3, 3)
  140. weld(a, c, CFrame.new(-xs / 2, 0, 0))
  141. local d = a:Clone()
  142. d.Parent = script
  143. d.BrickColor = c.BrickColor
  144. d.Size = Vector3.new(0.5, 0.5, 3)
  145. weld(a, d, CFrame.new(0, 0, 0))
  146. local e = a:Clone()
  147. e.Parent = script
  148. e.BrickColor = c.BrickColor
  149. e.Size = a.Size
  150. weld(a, e, CFrame.new(0, -0.2, 0))
  151. a.Material = "SmoothPlastic"
  152. local w = Instance.new("Motor6D", a)
  153. w.Part0 = prev
  154. w.Part1 = a
  155. w.C0 = kpv
  156. spawn(function()
  157. while true do
  158. wait()
  159. if i > 1 then
  160. w.C0 = kpv
  161. end
  162. if attacking and current == 2 then
  163. w.C0 = kpv
  164. end
  165. if qt == true then
  166. w.C0 = kpv
  167. end
  168. end
  169. end)
  170. spawn(function()
  171. while true do
  172. wait()
  173. if enabled then
  174. a.Transparency = 0
  175. b.Transparency = 0
  176. c.Transparency = 0
  177. d.Transparency = 0
  178. e.Transparency = 0
  179. else
  180. a.Transparency = 1
  181. b.Transparency = 1
  182. c.Transparency = 1
  183. d.Transparency = 1
  184. e.Transparency = 1
  185. end
  186. end
  187. end)
  188. spawn(function()
  189. while true do
  190. wait()
  191. if enabled then
  192. base.Anchored = false
  193. bw.Part0 = char.Torso
  194. else
  195. base.Anchored = true
  196. bw.Part0 = nil
  197. end
  198. end
  199. end)
  200. prev = a
  201. a.Touched:connect(function(hit)
  202. local found = false
  203. for i = 1, #hits do
  204. if hits[i] == hit then
  205. found = true
  206. end
  207. end
  208. if dhit and hit.Parent:FindFirstChild("Humanoid") and hit:IsDescendantOf(char) == false and found == false then
  209. hit.Parent.Humanoid:TakeDamage(damage)
  210. char.Humanoid:TakeDamage(-16)
  211. blood(hit)
  212. local s = Instance.new("Sound", a)
  213. s.SoundId = "rbxassetid://314390675"
  214. s:Play()
  215. game:GetService("Debris"):AddItem(s, s.TimeLength)
  216. table.insert(hits, hit)
  217. end
  218. end)
  219. end
  220. end
  221. function sound()
  222. local swoosh = Instance.new("Sound", char.Torso)
  223. swoosh.SoundId = "rbxassetid://145486992"
  224. swoosh:Play()
  225. game:GetService("Debris"):AddItem(swoosh, swoosh.TimeLength)
  226. end
  227. mouse.Button1Down:connect(function()
  228. if enabled == true and attacking == false then
  229. current = current + 1
  230. if current > 2 then
  231. current = 1
  232. end
  233. sound()
  234. if current == 1 then
  235. local v = Instance.new("BodyVelocity", char.Torso)
  236. v.Velocity = char.Torso.CFrame.lookVector * 40
  237. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  238. damage = 1.5
  239. attacking = true
  240. dhit = true
  241. for i = 0, 1, 0.1 do
  242. wait()
  243. kpv = kpv:lerp(CFrame.Angles(math.rad(90 * i), 0, 0) * CFrame.new(0, -0.5, -2.5), 0.3)
  244. end
  245. v:Destroy()
  246. dhit = false
  247. hits = {}
  248. for i = 0, 0.5, 0.1 do
  249. wait()
  250. kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
  251. end
  252. attacking = false
  253. else
  254. damage = 7
  255. attacking = true
  256. dhit = true
  257. local v = Instance.new("BodyVelocity", char.Torso)
  258. v.Velocity = char.Torso.CFrame.lookVector * 40
  259. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  260. for i = 0, 2, 0.1 do
  261. wait()
  262. kpv = kpv:lerp(CFrame.Angles(0, math.rad(15), 0) * CFrame.new(0, 0, -2.5), i)
  263. rp.C0 = rp.C0 * CFrame.Angles(0, math.rad(45), 0)
  264. end
  265. v:Destroy()
  266. dhit = false
  267. hits = {}
  268. for i = 0, 0.5, 0.1 do
  269. wait()
  270. kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
  271. rp.C0 = rp.C0:lerp(CFrame.Angles(0, 0, 0), 0.9)
  272. end
  273. attacking = false
  274. end
  275. end
  276. end)
  277. mouse.KeyDown:connect(function(key)
  278. if enabled == true and attacking == false then
  279. if key == "e" then
  280. attacking = true
  281. qt = true
  282. damage = 25
  283. for i = 0, 5, 0.1 do
  284. wait()
  285. kpv = kpv:lerp(CFrame.Angles(math.rad(5), 0, 0) * CFrame.new(0, 0, -2.5), 0.05)
  286. end
  287. dhit = true
  288. sound()
  289. local v = Instance.new("BodyVelocity", char.Torso)
  290. v.Velocity = char.Torso.CFrame.lookVector * 150
  291. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  292. game:GetService("Debris"):AddItem(v, 0.1)
  293. for i = 0, 1, 0.1 do
  294. wait()
  295. kpv = kpv:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, -2.5), 0.3)
  296. rp.C0 = rp.C0:lerp(CFrame.Angles(0, math.rad(180), 0), 0.8)
  297. end
  298. dhit = false
  299. hits = {}
  300. for i = 0, 0.5, 0.1 do
  301. wait()
  302. kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
  303. rp.C0 = rp.C0:lerp(CFrame.Angles(0, 0, 0), 0.5)
  304. end
  305. attacking = false
  306. qt = false
  307. end
  308. if key == "f" and dj == false then
  309. sound()
  310. attacking = true
  311. damage = 50
  312. local v = Instance.new("BodyVelocity", char.Torso)
  313. v.Velocity = char.Torso.CFrame.lookVector * 300
  314. v.Velocity = v.Velocity + Vector3.new(0, 300, 0)
  315. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  316. game:GetService("Debris"):AddItem(v, 0.1)
  317. dj = true
  318. for i = 0, 1, 0.1 do
  319. wait()
  320. qt = true
  321. kpv = kpv:lerp(CFrame.Angles(math.rad(-5), math.rad(30), math.rad(30)) * CFrame.new(0, 0, -2.5), 0.8)
  322. end
  323. attacking = false
  324. for i = 0, 0.5, 0.1 do
  325. wait()
  326. kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
  327. rp.C0 = rp.C0:lerp(CFrame.Angles(0, 0, 0), 0.5)
  328. end
  329. qt = false
  330. wait(3)
  331. dj = false
  332. end
  333. end
  334. if key == "t" and dt == false then
  335. sound()
  336. dt = true
  337. attacking = true
  338. damage = 5
  339. local v = Instance.new("BodyVelocity", char.Torso)
  340. v.Velocity = char.Torso.CFrame.lookVector * 300
  341. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  342. game:GetService("Debris"):AddItem(v, 0.1)
  343. for i = 0, 1, 0.1 do
  344. wait()
  345. qt = true
  346. kpv = kpv:lerp(CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0, -2.5), 0.8)
  347. end
  348. for i = 0, 0.5, 0.1 do
  349. wait()
  350. kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
  351. end
  352. dt = false
  353. attacking = false
  354. end
  355. end)
  356. dj = false
  357. eating = false
  358. mouse.KeyDown:connect(function(key)
  359. if enabled and key == "r" then
  360. char.Humanoid.JumpPower = 200
  361. wait()
  362. char.Humanoid.Jump = true
  363. wait()
  364. char.Humanoid.JumpPower = 50
  365. end
  366. if enabled == true and key == "q" and eating == false then
  367. local target = mouse.Target
  368. if target and target.Parent:FindFirstChild("Humanoid") and target.Position - char.Torso.Position.magnitude < 5 and not target:IsDescendantOf(char) then
  369. if target.Name ~= "Torso" and target.Name ~= "Head" then
  370. target:BreakJoints()
  371. end
  372. eating = true
  373. wait()
  374. target.CanCollide = false
  375. local weld = Instance.new("Weld", target)
  376. weld.Part0 = char.Head
  377. weld.Part1 = target
  378. weld.C0 = CFrame.new(0, 0, -1.5)
  379. char.Humanoid.Health = char.Humanoid.Health + 16
  380. blood(target)
  381. eat:Play()
  382. target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 16
  383. wait(0.3)
  384. weld:Destroy()
  385. eating = false
  386. if target.Name ~= "Torso" and target.Name ~= "Head" then
  387. target:Destroy()
  388. end
  389. if target.Parent.Humanoid.Health == 0 then
  390. target:Destroy()
  391. end
  392. end
  393. end
  394. end)
Add Comment
Please, Sign In to add comment