Advertisement
MarcAndrew

Untitled

Mar 17th, 2018
183
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.  
  4. CV="Bright yellow"
  5. p = game.Players.LocalPlayer
  6. char = p.Character
  7. local txt = Instance.new("BillboardGui", char)
  8. txt.Adornee = char .Head
  9. txt.Name = "_status"
  10. txt.Size = UDim2.new(2, 0, 1.2, 0)
  11. txt.StudsOffset = Vector3.new(-9, 8, 0)
  12. local text = Instance.new("TextLabel", txt)
  13. text.Size = UDim2.new(10, 0, 7, 0)
  14. text.FontSize = "Size24"
  15. text.TextScaled = true
  16. text.TextTransparency = 0
  17. text.BackgroundTransparency = 1
  18. text.TextTransparency = 0
  19. text.TextStrokeTransparency = 0
  20. text.Font = "Bodoni"
  21. text.TextStrokeColor3 = Color3.new(0,0,0)
  22.  
  23. v=Instance.new("Part")
  24. v.Name = "ColorBrick"
  25. v.Parent=p.Character
  26. v.FormFactor="Symmetric"
  27. v.Anchored=true
  28. v.CanCollide=false
  29. v.BottomSurface="Smooth"
  30. v.TopSurface="Smooth"
  31. v.Size=Vector3.new(10,5,3)
  32. v.Transparency=1
  33. v.CFrame=char.Torso.CFrame
  34. v.BrickColor=BrickColor.new(CV)
  35. v.Transparency=1
  36. text.TextColor3 = Color3.new(170,0,170)
  37. v.Shape="Block"
  38. text.Text = "Za Warudo"
  39.  
  40. local plr = game:GetService("Players").LocalPlayer
  41. local char, mouse = plr.Character, plr:GetMouse()
  42. local hitTab = {}
  43. local fadeTab = {}
  44. local spd = 0.2 * char:FindFirstChild("Humanoid").WalkSpeed / 16
  45. local sound1 = Instance.new("Sound", char.HumanoidRootPart)
  46. local sound2 = Instance.new("Sound", char.HumanoidRootPart)
  47. local sound3 = Instance.new("Sound")
  48. sound1.SoundId = "rbxassetid://616593932"
  49. sound1.Volume = 10
  50. sound2.SoundId = "rbxassetid://1055792303"
  51. sound2.Volume = 10
  52. sound3.SoundId = "rbxassetid://1235094803"
  53. sound3.Volume = 10
  54. local particle = Instance.new("ParticleEmitter")
  55. particle.LightEmission = 0.2
  56. particle.Texture = "rbxassetid://32629323"
  57. particle.Size = NumberSequence.new({
  58. NumberSequenceKeypoint.new(0, 0),
  59. NumberSequenceKeypoint.new(0.5, 1),
  60. NumberSequenceKeypoint.new(1, 0)
  61. })
  62. particle.Acceleration = Vector3.new(0, 0, 0)
  63. particle.Lifetime = NumberRange.new(0.15, 0.3)
  64. particle.Rate = 50
  65. particle.Rotation = NumberRange.new(0, 360)
  66. particle.RotSpeed = NumberRange.new(0, 0)
  67. particle.Speed = NumberRange.new(0, 0)
  68. local dfj = {}
  69. char:WaitForChild("Animate"):Destroy()
  70. char:WaitForChild("Humanoid"):WaitForChild("Animator"):Destroy()
  71. for i, v in pairs(char:FindFirstChild("Torso"):GetChildren()) do
  72. if v:IsA("Motor6D") and v.Name ~= "Neck" then
  73. table.insert(dfj, v:Clone())
  74. v:Destroy()
  75. Hat = Instance.new("Model")
  76. Hat.Parent = char
  77. Hat.Name = "Hat"
  78. rh = Instance.new("Part")
  79. rh.Parent = Hat
  80. rh.BrickColor = BrickColor.new("Bright yellow")
  81. rh.Locked = true
  82. rh.CanCollide = false
  83. mesh = Instance.new("SpecialMesh")
  84. rh.formFactor = "Symmetric"
  85. mesh.MeshType = "FileMesh"
  86. mesh.MeshId = "rbxassetid://882264338"
  87. mesh.Parent = rh
  88. local weld = Instance.new("Weld")
  89. weld.Parent = rh
  90. weld.Part0 = rh
  91. weld.Part1 =char.Head
  92. weld.C0 = CFrame.new(0,-.6,0)*CFrame.Angles(0,0,0)
  93. mesh.Scale = Vector3.new(0.03, 0.04, 0.03)
  94. end
  95. end
  96. local state = "idle"
  97. local rootpart = char:FindFirstChild("HumanoidRootPart")
  98. local rootjoint = rootpart:FindFirstChild("RootJoint")
  99. rootjoint.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180))
  100. local rarm = Instance.new("Weld", char:FindFirstChild("Right Arm") or nil)
  101. rarm.Part0 = char:FindFirstChild("Torso") or nil
  102. rarm.Part1 = char:FindFirstChild("Right Arm") or nil
  103. rarm.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  104. rarm.C1 = CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  105. local larm = Instance.new("Weld", char:FindFirstChild("Left Arm") or nil)
  106. larm.Part0 = char:FindFirstChild("Torso") or nil
  107. larm.Part1 = char:FindFirstChild("Left Arm") or nil
  108. larm.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  109. larm.C1 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  110. local rleg = Instance.new("Weld", char:FindFirstChild("Right Leg") or nil)
  111. rleg.Part0 = char:FindFirstChild("Torso") or nil
  112. rleg.Part1 = char:FindFirstChild("Right Leg") or nil
  113. rleg.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  114. rleg.C1 = CFrame.new(0.5, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  115. local lleg = Instance.new("Weld", char:FindFirstChild("Left Leg") or nil)
  116. lleg.Part0 = char:FindFirstChild("Torso") or nil
  117. lleg.Part1 = char:FindFirstChild("Left Leg") or nil
  118. lleg.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  119. lleg.C1 = CFrame.new(-0.5, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  120. local neck = char:FindFirstChild("Torso"):FindFirstChild("Neck") or nil
  121. neck.Part0 = char:FindFirstChild("Torso") or nil
  122. neck.Part1 = char:FindFirstChild("Head") or nil
  123. neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  124. neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  125. function hitSphere()
  126. local function recSearch(par)
  127. local tab = {}
  128. local function rec(parent)
  129. if parent:IsA("Humanoid") and parent ~= char:FindFirstChildOfClass("Humanoid") then
  130. table.insert(tab, parent)
  131. end
  132. for i, v in pairs(parent:GetChildren()) do
  133. rec(v)
  134. end
  135. end
  136. rec(par)
  137. return tab
  138. end
  139. local humsFound = {}
  140. for i, v in pairs(recSearch(workspace)) do
  141. table.insert(humsFound, v)
  142. end
  143. return humsFound
  144. end
  145. mouse.Button1Down:connect(function()
  146. if state ~= "busy" then
  147. state = "busy"
  148. do
  149. local foundHums = {}
  150. local prtcls = {}
  151. local sounds = {}
  152. local parts = {}
  153. sound1:Play()
  154. local hit = false
  155. local toggle = false
  156. local frmcon
  157. local frame = 0
  158. frmcon = game:service("RunService").RenderStepped:connect(function()
  159. frame = frame + 1
  160. if frame / 4 == math.floor(frame / 4) then
  161. char.Humanoid.MaxHealth = math.huge
  162. wait()
  163. char.Humanoid.Health = math.huge
  164. if toggle == false then
  165. toggle = true
  166. else
  167. toggle = false
  168. end
  169. end
  170. if toggle == true then
  171. 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)
  172. 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)
  173. 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)
  174. 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)
  175. 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)
  176. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-45), math.rad(0)), spd * 1.5)
  177. else
  178. 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)
  179. 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)
  180. 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)
  181. 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)
  182. 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)
  183. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)), spd * 1.5)
  184. end
  185. if frame % 5 == 0 then
  186. for i, v in pairs(hitSphere()) do
  187. for o, b in pairs(v.Parent:GetChildren()) do
  188. if b:IsA("BasePart") and 4 >= (b.Position - rootjoint.Parent.CFrame * CFrame.new(0, 0, -2.25).p).Magnitude then
  189. hit = true
  190. if foundHums[v] then
  191. foundHums[v] = foundHums[v] + 1
  192. else
  193. foundHums[v] = 1
  194. local ns = sound3:Clone()
  195. ns.Parent = b
  196. table.insert(sounds, ns)
  197. end
  198. if not prtcls[b] then
  199. partClone = particle:Clone()
  200. partClone.Enabled = false
  201. partClone.Parent = b
  202. prtcls[b] = partClone
  203. end
  204. local p = Instance.new("Part")
  205. p.Size = Vector3.new(0.2, 0.2, 0.2)
  206. p.Color = Color3.new(1, 1, 1)
  207. p.TopSurface = "Smooth"
  208. p.BottomSurface = "Smooth"
  209. p.Anchored = true
  210. p.CanCollide = false
  211. p.Shape = "Ball"
  212. p.CFrame = CFrame.new(b.CFrame.p + Vector3.new(math.random(-10, 10) / 10, math.random(-10, 10) / 10, math.random(-10, 10) / 10))
  213. p.Parent = workspace
  214. table.insert(fadeTab, p)
  215. parts[b] = b
  216. end
  217. end
  218. end
  219. end
  220. end)
  221. local bucon
  222. bucon = mouse.Button1Up:connect(function()
  223. frmcon:disconnect()
  224. sound1:Stop()
  225. state = "idle"
  226. if hit == true then
  227. sound2:Play()
  228. wait(2.7)
  229. for i, v in pairs(sounds) do
  230. spawn(function()
  231. wait(math.random(0, 100) / 600)
  232. v.TimePosition = 2.5
  233. v:Play()
  234. end)
  235. end
  236. wait(1.2)
  237. for i, v in pairs(prtcls) do
  238. v.Enabled = true
  239. end
  240. wait(1.3)
  241. spawn(function()
  242. local rcon
  243. local frame = 0
  244. rcon = game:service("RunService").RenderStepped:connect(function()
  245. frame = frame + 1
  246. for i, v in pairs(sounds) do
  247. v.Volume = 10 - frame / 5
  248. if v.Volume <= 0 then
  249. v.Volume = 0
  250. v:Destroy()
  251. end
  252. end
  253. if frame >= 200 then
  254. for i, v in pairs(sounds) do
  255. v:Destroy()
  256. end
  257. end
  258. end)
  259. end)
  260. for i, v in pairs(parts) do
  261. v.RotVelocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  262. v.Velocity = v.Velocity + Vector3.new(0, 20, 0)
  263. local bvel = Instance.new("BodyVelocity", v)
  264. bvel.MaxForce = Vector3.new(1000000, 1000000, 1000000)
  265. bvel.Velocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  266. game:service("Debris"):AddItem(bvel, 0.5)
  267. end
  268. for i, v in pairs(foundHums) do
  269. if i.MaxHealth >= math.huge then
  270. i.MaxHealth = 100
  271. end
  272. i.Health = 0
  273. end
  274. wait(0.7)
  275. for i, v in pairs(prtcls) do
  276. v.Enabled = false
  277. end
  278. end
  279. bucon:disconnect()
  280. end)
  281. end
  282. end
  283. end)
  284. game:GetService("RunService").Heartbeat:connect(function()
  285. for i, v in pairs(fadeTab) do
  286. v.Transparency = v.Transparency + 0.1
  287. local savecf = v.CFrame
  288. v.Size = v.Size + Vector3.new(0.3, 0.3, 0.3)
  289. v.CFrame = savecf
  290. end
  291. local isub = 0
  292. for i = 1, #fadeTab do
  293. if fadeTab[i - isub].Transparency >= 1 then
  294. fadeTab[i - isub]:Destroy()
  295. table.remove(fadeTab, i - isub)
  296. isub = isub + 1
  297. end
  298. end
  299. char:FindFirstChild("Humanoid").WalkSpeed = 26
  300. spd = 0.2 * char:FindFirstChild("Humanoid").WalkSpeed / 16
  301. if state ~= "busy" then
  302. local ray = Ray.new(rootpart.Position, Vector3.new(0, -4, 0))
  303. local part, pos, normal = workspace:FindPartOnRayWithIgnoreList(ray, char:GetChildren(), false, true)
  304. if rootpart.Velocity.Magnitude > 0.5 and part ~= nil then
  305. state = "running"
  306. elseif rootpart.Velocity.Magnitude <= 0.5 and part ~= nil then
  307. state = "idle"
  308. elseif 0 < rootpart.Velocity.Y and part == nil then
  309. state = "jumping"
  310. elseif 0 >= rootpart.Velocity.Y and part == nil then
  311. state = "falling"
  312. end
  313. if state == "idle" then
  314. 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)
  315. 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)
  316. 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)
  317. 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)
  318. 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)
  319. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  320. elseif state == "running" then
  321. 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)
  322. 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)
  323. 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)
  324. 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)
  325. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-110), math.rad(0), math.rad(180)), spd)
  326. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), spd)
  327. elseif state == "jumping" then
  328. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  329. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  330. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  331. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  332. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180)), spd)
  333. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  334. elseif state == "falling" then
  335. rleg.C0 = rleg.C0:lerp(CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  336. lleg.C0 = lleg.C0:lerp(CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  337. rarm.C0 = rarm.C0:lerp(CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  338. larm.C0 = larm.C0:lerp(CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  339. rootjoint.C0 = rootjoint.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180)), spd)
  340. neck.C0 = neck.C0:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), spd)
  341. end
  342. end
  343. end)
  344. warn("Loaded! Time elapsed: " .. tick() - oldtick)
  345. shirt = Instance.new("Shirt", char)
  346. shirt.Name = "Shirt"
  347. pants = Instance.new("Pants", char)
  348. pants.Name = "Pants"
  349. char.Shirt:Remove()
  350. char.Pants:Remove()
  351. for i,v in pairs(char:GetChildren()) do if v:IsA("Accessory") then v.Handle:Remove() end end
  352. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1212090323"
  353. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=547264976"
  354. char.Head.face.Texture = "rbxassetid://64064193"
  355. char["Body Colors"].HeadColor = BrickColor.new("Gray")
  356. char["Body Colors"].TorsoColor = BrickColor.new("Gray")
  357. char["Body Colors"].LeftArmColor = BrickColor.new("Gray")
  358. char["Body Colors"].RightArmColor = BrickColor.new("Gray")
  359. char["Body Colors"].LeftLegColor = BrickColor.new("Gray")
  360. char["Body Colors"].RightLegColor = BrickColor.new("Gray")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement