Advertisement
joe201501

NANI!?!?!?!?! V2

Mar 17th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local oldtick = tick()
  2. warn("Animation rig - By Mewy23")
  3. local plr = game:GetService("Players").LocalPlayer
  4. local char, mouse = plr.Character, plr:GetMouse()
  5. local hitTab = {}
  6. local fadeTab = {}
  7. local spd = 0.2 * char:FindFirstChild("Humanoid").WalkSpeed / 16
  8. local sound1 = Instance.new("Sound", char.HumanoidRootPart)
  9. local sound2 = Instance.new("Sound", char.HumanoidRootPart)
  10. local sound3 = Instance.new("Sound")
  11. sound1.SoundId = "rbxassetid://512813873"
  12. sound1.Volume = 10
  13. sound1.Looped = true
  14. sound2.SoundId = "rbxassetid://1205111204"
  15. sound2.Volume = 10000000
  16. sound3.SoundId = "rbxassetid://0"
  17. sound3.Volume = 10000
  18. local particle = Instance.new("ParticleEmitter")
  19. particle.LightEmission = 0.2
  20. particle.Texture = "rbxassetid://304748520"
  21. particle.Size = NumberSequence.new({
  22. NumberSequenceKeypoint.new(0, 0),
  23. NumberSequenceKeypoint.new(0.5, 1),
  24. NumberSequenceKeypoint.new(1, 0)
  25. })
  26. particle.Acceleration = Vector3.new(0, 0, 0)
  27. particle.Lifetime = NumberRange.new(0.15, 0.3)
  28. particle.Rate = 50
  29. particle.Rotation = NumberRange.new(0, 360)
  30. particle.RotSpeed = NumberRange.new(0, 0)
  31. particle.Speed = NumberRange.new(0, 0)
  32. local dfj = {}
  33. char:WaitForChild("Animate"):Destroy()
  34. char:WaitForChild("Humanoid"):WaitForChild("Animator"):Destroy()
  35. for i, v in pairs(char:FindFirstChild("Torso"):GetChildren()) do
  36. if v:IsA("Motor6D") and v.Name ~= "Neck" then
  37. table.insert(dfj, v:Clone())
  38. v:Destroy()
  39. end
  40. end
  41. local state = "idle"
  42. local rootpart = char:FindFirstChild("HumanoidRootPart")
  43. local rootjoint = rootpart:FindFirstChild("RootJoint")
  44. rootjoint.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180))
  45. local rarm = Instance.new("Weld", char:FindFirstChild("Right Arm") or nil)
  46. rarm.Part0 = char:FindFirstChild("Torso") or nil
  47. rarm.Part1 = char:FindFirstChild("Right Arm") or nil
  48. rarm.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  49. rarm.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  50. local larm = Instance.new("Weld", char:FindFirstChild("Left Arm") or nil)
  51. larm.Part0 = char:FindFirstChild("Torso") or nil
  52. larm.Part1 = char:FindFirstChild("Left Arm") or nil
  53. larm.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  54. larm.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  55. local rleg = Instance.new("Weld", char:FindFirstChild("Right Leg") or nil)
  56. rleg.Part0 = char:FindFirstChild("Torso") or nil
  57. rleg.Part1 = char:FindFirstChild("Right Leg") or nil
  58. rleg.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  59. rleg.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  60. local lleg = Instance.new("Weld", char:FindFirstChild("Left Leg") or nil)
  61. lleg.Part0 = char:FindFirstChild("Torso") or nil
  62. lleg.Part1 = char:FindFirstChild("Left Leg") or nil
  63. lleg.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  64. lleg.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  65. local neck = char:FindFirstChild("Torso"):FindFirstChild("Neck") or nil
  66. neck.Part0 = char:FindFirstChild("Torso") or nil
  67. neck.Part1 = char:FindFirstChild("Head") or nil
  68. neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  69. neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  70. function hitSphere()
  71. local function recSearch(par)
  72. local tab = {}
  73. local function rec(parent)
  74. if parent:IsA("Humanoid") and parent ~= char:FindFirstChildOfClass("Humanoid") then
  75. table.insert(tab, parent)
  76. end
  77. for i, v in pairs(parent:GetChildren()) do
  78. rec(v)
  79. end
  80. end
  81. rec(par)
  82. return tab
  83. end
  84. local humsFound = {}
  85. for i, v in pairs(recSearch(workspace)) do
  86. table.insert(humsFound, v)
  87. end
  88. return humsFound
  89. end
  90. mouse.Button1Down:connect(function()
  91. if state ~= "busy" then
  92. state = "busy"
  93. do
  94. local foundHums = {}
  95. local prtcls = {}
  96. local sounds = {}
  97. local parts = {}
  98. sound1:Play()
  99. local hit = false
  100. local toggle = false
  101. local frmcon
  102. local frame = 0
  103. frmcon = game:service("RunService").RenderStepped:connect(function()
  104. frame = frame + 1
  105. if frame / 4 == math.floor(frame / 4) then
  106. if toggle == false then
  107. toggle = true
  108. else
  109. toggle = false
  110. end
  111. end
  112. if toggle == true then
  113. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1 - math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  114. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1 - math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  115. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(45)), spd * 1.5)
  116. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), spd * 1.5)
  117. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(225)), spd * 1.5)
  118. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-45), math.rad(0)), spd * 1.5)
  119. else
  120. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1 - math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  121. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1 - math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  122. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), spd * 1.5)
  123. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-45)), spd * 1.5)
  124. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(135)), spd * 1.5)
  125. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)), spd * 1.5)
  126. end
  127. if frame % 5 == 0 then
  128. for i, v in pairs(hitSphere()) do
  129. for o, b in pairs(v.Parent:GetChildren()) do
  130. if b:IsA("BasePart") and 4 >= (b.Position - rootjoint.Parent.CFrame * CFrame.new(0, 0, -2.25).p).Magnitude then
  131. hit = true
  132. if foundHums[v] then
  133. foundHums[v] = foundHums[v] + 1
  134. else
  135. foundHums[v] = 1
  136. local ns = sound3:Clone()
  137. ns.Parent = b
  138. table.insert(sounds, ns)
  139. end
  140. if not prtcls[b] then
  141. partClone = particle:Clone()
  142. partClone.Enabled = false
  143. partClone.Parent = b
  144. prtcls[b] = partClone
  145. end
  146. local p = Instance.new("Part")
  147. p.Size = Vector3.new(0.2, 0.2, 0.2)
  148. p.Color = Color3.new(1, 1, 1)
  149. p.TopSurface = "Smooth"
  150. p.BottomSurface = "Smooth"
  151. p.Anchored = true
  152. p.CanCollide = false
  153. p.Shape = "Ball"
  154. p.CFrame = CFrame.new(b.CFrame.p + Vector3.new(math.random(-10, 10) / 10, math.random(-10, 10) / 10, math.random(-10, 10) / 10))
  155. p.Parent = workspace
  156. table.insert(fadeTab, p)
  157. parts[b] = b
  158. end
  159. end
  160. end
  161. end
  162. end)
  163. local bucon
  164. bucon = mouse.Button1Up:connect(function()
  165. frmcon:disconnect()
  166. sound1:Stop()
  167. state = "idle"
  168. if hit == true then
  169. sound2:Play()
  170. warn("OH NO HERE COMES A CHINESE EARTHQUAKE abrabrabrbarbabrabrbarbabrabr")
  171. wait(2.7)
  172. for i, v in pairs(sounds) do
  173. spawn(function()
  174. wait(math.random(0, 100) / 600)
  175. v.TimePosition = 2.5
  176. v:Play()
  177. end)
  178. end
  179. wait(1.2)
  180. for i, v in pairs(prtcls) do
  181. v.Enabled = true
  182. end
  183. wait(1.3)
  184. spawn(function()
  185. local rcon
  186. local frame = 0
  187. rcon = game:service("RunService").RenderStepped:connect(function()
  188. frame = frame + 1
  189. for i, v in pairs(sounds) do
  190. v.Volume = 10 - frame / 5
  191. if v.Volume <= 0 then
  192. v.Volume = 0
  193. v:Destroy()
  194. end
  195. end
  196. if frame >= 200 then
  197. for i, v in pairs(sounds) do
  198. v:Destroy()
  199. end
  200. end
  201. end)
  202. end)
  203. for i, v in pairs(parts) do
  204. v.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  205. v.Velocity = v.Velocity + Vector3.new(0, 20, 0)
  206. local bvel = Instance.new("BodyVelocity", v)
  207. bvel.MaxForce = Vector3.new(1000000, 1000000, 1000000)
  208. bvel.Velocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  209. game:service("Debris"):AddItem(bvel, 0.5)
  210. end
  211. for i, v in pairs(foundHums) do
  212. if i.MaxHealth >= math.huge then
  213. i.MaxHealth = 100
  214. end
  215. i.Health = 0
  216. i.Torso.CFrame = CFrame.new(i.Torso.Position)
  217. warn("BOOM!!!!!!")
  218. local kablmaoXDXD = Instance.new("Sound", game.Players.LocalPlayer.Character)
  219. kablmaoXDXD.SoundId = "rbxassetid://141679994"
  220. kablmaoXDXD.Volume = 10
  221. kablmaoXDXD:Play()
  222. local ball1 = Instance.new("Part", game.Players.LocalPlayer.Character)
  223. ball1.Size = Vector3.new(1,1,1)
  224. ball1.Material = "Neon"
  225. ball1.Anchored = true
  226. ball1.Transparency = 0.3
  227. ball1.BrickColor = BrickColor.new("Magenta")
  228. ball1.CanCollide = false
  229. ball1.CFrame = i.Torso.CFrame
  230. local ball11 = Instance.new("Part", game.Players.LocalPlayer.Character)
  231. ball11.Size = Vector3.new(1,1,1)
  232. ball11.Material = "Neon"
  233. ball11.Anchored = true
  234. ball11.Transparency = 0.3
  235. ball11.BrickColor = BrickColor.new("Royal purple")
  236. ball11.CanCollide = false
  237. ball11.CFrame = i.Torso.CFrame
  238. local cf = ball1.CFrame
  239. ball1:BreakJoints()
  240. local cfval = 0
  241. local cfval1 = 0
  242. for i = 1,260 do
  243. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  244. cfval1 = cfval1 - 1
  245. cfval = cfval + 1
  246. ball1.Size = ball1.Size + Vector3.new(0.4,0.4,0.4)
  247. ball1.CFrame = cf * CFrame.fromEulerAnglesXYZ(0,cfval,cfval + math.random(-1,1))
  248. --
  249. ball11.Size = ball1.Size + Vector3.new(0.2,0.2,0.2)
  250. ball11.CFrame = cf * CFrame.fromEulerAnglesXYZ(0,cfval1,cfval1 + math.random(-1,1))
  251. wait()
  252. end
  253. for i = 1,20 do
  254. game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  255. cfval1 = cfval1 - 1
  256. cfval = cfval + 1
  257. ball1.Transparency = ball1.Transparency + 0.05
  258. ball1.Size = ball1.Size + Vector3.new(0.4,0.4,0.4)
  259. ball1.CFrame = cf * CFrame.fromEulerAnglesXYZ(0,cfval,cfval + math.random(-1,1))
  260. --
  261. ball11.Transparency = ball11.Transparency + 0.05
  262. ball11.Size = ball1.Size + Vector3.new(0.2,0.2,0.2)
  263. ball11.CFrame = cf * CFrame.fromEulerAnglesXYZ(0,cfval1,cfval1 + math.random(-1,1))
  264. wait()
  265. end
  266. wait(0.7)
  267. for i, v in pairs(prtcls) do
  268. v.Enabled = false
  269. end
  270. end
  271. bucon:disconnect()
  272. end
  273. end
  274. )end
  275. end
  276. game:GetService("RunService").Heartbeat:connect(function()
  277. for i, v in pairs(fadeTab) do
  278. v.Transparency = v.Transparency + 0.1
  279. local savecf = v.CFrame
  280. v.Size = v.Size + Vector3.new(0.3, 0.3, 0.3)
  281. v.CFrame = savecf
  282. end
  283. local isub = 0
  284. for i = 1, #fadeTab do
  285. if fadeTab[i - isub].Transparency >= 1 then
  286. fadeTab[i - isub]:Destroy()
  287. table.remove(fadeTab, i - isub)
  288. isub = isub + 1
  289. end
  290. end
  291. char:FindFirstChild("Humanoid").WalkSpeed = 26
  292. spd = 0.2 * char:FindFirstChild("Humanoid").WalkSpeed / 16
  293. if state ~= "busy" then
  294. local ray = Ray.new(rootpart.Position, Vector3.new(0, -4, 0))
  295. local part, pos, normal = workspace:FindPartOnRayWithIgnoreList(ray, char:GetChildren(), false, true)
  296. if rootpart.Velocity.Magnitude > 0.5 and part ~= nil then
  297. state = "running"
  298. elseif rootpart.Velocity.Magnitude <= 0.5 and part ~= nil then
  299. state = "idle"
  300. elseif 0 < rootpart.Velocity.Y and part == nil then
  301. state = "jumping"
  302. elseif 0 >= rootpart.Velocity.Y and part == nil then
  303. state = "falling"
  304. end
  305. if state == "idle" then
  306. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1 - math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  307. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1 - math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  308. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5 + math.cos(tick() + 0.5) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad((math.cos(tick()) + 1) / 16) * 20), spd)
  309. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5 + math.cos(tick() + 0.5) / 16, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-(math.cos(tick()) + 1) / 16) * 20), spd)
  310. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, math.cos(tick()) / 16, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180)), spd)
  311. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  312. elseif state == "running" then
  313. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1 - -math.sin(tick() * 8 + 90) / 8, math.sin(tick() * 8 + 90) / 10) * CFrame.Angles(math.rad(math.sin(tick() * 8) * 60), math.rad(0), math.rad(0)), spd)
  314. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1 - math.sin(tick() * 8 + 90) / 8, -math.sin(tick() * 8 + 90) / 10) * CFrame.Angles(-math.rad(math.sin(tick() * 8) * 60), math.rad(0), math.rad(0)), spd)
  315. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(math.sin(tick() * 8) * 80), math.rad(0), math.rad(0)), spd)
  316. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(-math.rad(math.sin(tick() * 8) * 80), math.rad(0), math.rad(0)), spd)
  317. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-110), math.rad(0), math.rad(180)), spd)
  318. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), spd)
  319. elseif state == "jumping" then
  320. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  321. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  322. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  323. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  324. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180)), spd)
  325. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  326. elseif state == "falling" then
  327. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  328. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  329. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  330. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  331. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180)), spd)
  332. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  333. end
  334. end
  335. end
  336. )end
  337. )warn("Loaded! Time elapsed: " .. tick() - oldtick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement