Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.27 KB | None | 0 0
  1. local pl = game.Players.LocalPlayer
  2. local mouse = pl:GetMouse()
  3. local chr = pl.Character
  4. local debounce = {}
  5. local walking
  6. local single = true ---variable for either just one chat, or have the chat scroll like undertale/banjo kazooie. (true for instant, false for undertale)
  7. local hp = 1000000000000000
  8. local speed = 35
  9. wait()
  10. local ORAORAORA = "rbxassetid://791600989"
  11. local ORAA = "rbxassetid://773819918"
  12.  
  13. local oraloop = Instance.new("Sound",chr.Torso)
  14. oraloop.SoundId = ORAORAORA
  15. oraloop.Volume = 7
  16. oraloop.Looped = true
  17.  
  18. local orafinish = Instance.new("Sound",chr.Torso)
  19. orafinish.SoundId = ORAA
  20. orafinish.Volume = 666
  21.  
  22. chr.Humanoid.WalkSpeed = speed
  23.  
  24. function part(args,duration)
  25. local p = Instance.new("Part")
  26. p.TopSurface = Enum.SurfaceType.Smooth
  27. p.BottomSurface = Enum.SurfaceType.Smooth
  28. p.Anchored = false
  29. p.CanCollide = false
  30. p.Parent = workspace
  31. for i,v in pairs(args) do
  32. p[i] = v
  33. end
  34. if duration ~= true then
  35. game.Debris:AddItem(p,duration == false and 5 or duration)
  36. end
  37. return p
  38. end
  39.  
  40. chr.Humanoid.MaxHealth = hp
  41. chr.Humanoid.Health = hp
  42.  
  43.  
  44. function Sound(pitch,id,volume,parent)
  45. if id then game.ContentProvider:Preload(id) end
  46. local blip = Instance.new("Sound",parent or chr.Head)
  47. blip.Pitch = pitch or 1.05
  48. blip.Volume = volume or 8
  49. blip.SoundId = id
  50. blip:Play()
  51. game.Debris:AddItem(blip,3)
  52. end
  53.  
  54. local DmgDebounce = {}
  55. local color = Color3.new(155/255,100/255,155/255)
  56. local attack
  57.  
  58. local ani = chr:WaitForChild("Animate")
  59. ani:Destroy()
  60. for _,anim in pairs(chr.Humanoid:GetPlayingAnimationTracks()) do
  61. anim:Stop()
  62. end
  63.  
  64. function DamageNotif(parent,text,color)
  65. local DamageGui = Instance.new("BillboardGui",parent)
  66. DamageGui.Size = UDim2.new(0,100,0,40)
  67. DamageGui.Adornee = parent
  68. DamageGui.StudsOffset = Vector3.new(0,2,0)
  69. local poopoopeepee = Instance.new("TextLabel",DamageGui)
  70. poopoopeepee.TextColor = color or BrickColor.new(Color3.new(255,0,0))
  71. poopoopeepee.TextScaled = false
  72. poopoopeepee.Text = text
  73. poopoopeepee.BackgroundTransparency = 1
  74. poopoopeepee.TextSize = 24
  75. poopoopeepee.BorderSizePixel = 0
  76. poopoopeepee.Size = UDim2.new(1,0,1,0)
  77. game.Debris:AddItem(DamageGui,1.1)
  78. spawn(function()
  79. for i = 1, 30 do
  80. DamageGui.StudsOffset = DamageGui.StudsOffset + Vector3.new(0,0.1,0)
  81. poopoopeepee.TextTransparency = poopoopeepee.TextTransparency + 1/30
  82. wait()
  83. end
  84. end)
  85. end
  86.  
  87. function damage(part,hit,damage,player,cooldown) --basic contact damage script for melee weapons.
  88. DmgDebounce[part] = DmgDebounce[part] or {}
  89. local enemyp = game.Players:GetPlayerFromCharacter(hit.Parent)
  90. local enemy = hit.Parent
  91. if DmgDebounce[part][enemy] or enemyp and DmgDebounce[part][enemyp] then return false
  92. elseif enemyp and enemy and player ~= enemyp then
  93. DmgDebounce[part][enemyp] = true
  94. enemyp.Character.Humanoid:TakeDamage(damage)
  95. spawn(function()
  96. DamageNotif(enemyp.Character.Head,"-"..damage)
  97. end)
  98. wait(cooldown)
  99. DmgDebounce[part][enemyp] = false
  100. return true
  101. elseif enemy and not enemyp and chr ~= enemy and enemy:FindFirstChild("Humanoid") then
  102. DmgDebounce[part][enemy] = true
  103. enemy.Humanoid:TakeDamage(damage)
  104. spawn(function()
  105. DamageNotif(enemy.Head,"-"..damage)
  106. end)
  107. wait(cooldown)
  108. DmgDebounce[part][enemy] = false
  109. return true
  110. end
  111. end
  112.  
  113. function weld(prt0,prt1,x,y,z)
  114. local w = Instance.new("Weld",prt1)
  115. w.Part0 = prt0
  116. w.Part1 = prt1
  117. w.C0 = CFrame.new(x,y,z)
  118. end
  119.  
  120. function Lerp(cframe1,cframe2,angles) --- this was entirely based from a BM script
  121. local cf1 = {cframe1.X,cframe1.Y,cframe1.Z,cframe1:toEulerAnglesXYZ()} --- first cframe
  122. local cf2 = {cframe2.X,cframe2.Y,cframe2.Z,cframe2:toEulerAnglesXYZ()} --- second cframe
  123. for i, v in pairs(cf1) do ---for all parts in the first cframe
  124. cf1[i] = v + (cf2[i]-v)*angles --- changes all values so that it's partway between the other cframe
  125. end
  126. return CFrame.new(cf1[1],cf1[2],cf1[3])*CFrame.Angles(select(4,unpack(cf1))) --- returns the value
  127. end
  128.  
  129. debounce["Noidl"] = false
  130.  
  131. function lerptest(cframe1,cframe2,angles)
  132. local cf1 = Vector3.new(cframe1.X,cframe1.Y,cframe1.Z)
  133. local cf2 = Vector3.new(cframe2.X,cframe2.Y,cframe2.Z)
  134. local cf1angles = cframe1:toEulerAnglesXYZ()
  135. local cf2angles = cframe2:toEulerAnglesXYZ()
  136. cf1 = cf1 + (cf2-cf1)*angles
  137. return CFrame.new(cf1)*CFrame.Angles(angles)
  138. end
  139.  
  140. function Tracer(part,material,color)
  141. local oldcframe = part.CFrame
  142. local p = Instance.new("Part")
  143. p.Size = part.Size
  144. p.Anchored = true
  145. p.CanCollide = false
  146. p.Material = material or Enum.Material.Neon
  147. p.TopSurface = Enum.SurfaceType.Smooth
  148. p.BottomSurface = Enum.SurfaceType.Smooth
  149. p.BrickColor = color and BrickColor.new(color) or part.BrickColor
  150. if part:FindFirstChild("Mesh") then
  151. local pm = part.Mesh:Clone()
  152. pm.TextureId = ""
  153. pm.Parent = p
  154. end
  155. p.Transparency = 0.5
  156. p.CanCollide = false
  157. p.Anchored = true
  158. p.Parent = workspace
  159. p.CFrame = oldcframe
  160. game.Debris:AddItem(p,1)
  161. spawn(function()
  162. for i = 1, 14 do
  163. p.Transparency = p.Transparency + 0.5/14
  164. wait()
  165. end
  166. end)
  167. end
  168.  
  169. function Velocity(part,direction,duration)
  170. local v = Instance.new("BodyVelocity",part)
  171. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  172. v.Velocity = direction
  173. if duration then game.Debris:AddItem(v,duration) end
  174. end
  175.  
  176. local finisher
  177.  
  178. local rs = game:GetService("RunService").RenderStepped
  179.  
  180. local kick
  181.  
  182.  
  183. chr["Right Arm"].Touched:connect(function(hit)
  184. if debounce["lmb"] and damage(chr["Right Arm"],hit,25,pl,0.1) or debounce[Enum.KeyCode.Z] and damage(chr["Left Arm"],hit,15,pl,0.25) then
  185. spawn(function()
  186. local bubble = part({Shape = "Ball",Size = Vector3.new(1,1,1),Anchored = true,BrickColor = BrickColor.White(),CFrame = hit.CFrame},0.2)
  187. for i = 1, 10 do
  188. bubble.Size = bubble.Size + Vector3.new(0.25,0.25,0.25)
  189. bubble.CFrame = hit.CFrame
  190. bubble.Transparency = bubble.Transparency + 1/15
  191. rs:wait()
  192. end
  193. end)
  194. if finisher then
  195. local a = CFrame.new(chr.Torso.CFrame.p,hit.Parent.Torso.CFrame.p)
  196. spawn(function() Velocity(hit.Parent.Torso,a.lookVector*100,0.1) end)
  197. end
  198. end
  199. end)
  200.  
  201. chr["Left Arm"].Touched:connect(function(hit)
  202. if debounce["lmb"] and damage(chr["Left Arm"],hit,25,pl,0.1) or debounce[Enum.KeyCode.Z] and damage(chr["Left Arm"],hit,15,pl,0.25) then
  203. spawn(function()
  204. local bubble = part({Shape = "Ball",Size = Vector3.new(1,1,1),Anchored = true,BrickColor = BrickColor.White(),CFrame = hit.CFrame},0.2)
  205. for i = 1, 10 do
  206. bubble.Size = bubble.Size + Vector3.new(0.25,0.25,0.25)
  207. bubble.CFrame = hit.CFrame
  208. bubble.Transparency = bubble.Transparency + 1/15
  209. rs:wait()
  210. end
  211. end)
  212. end
  213. end)
  214.  
  215. chr["Right Leg"].Touched:connect(function(hit)
  216. if kick and damage(chr["Right Leg"],hit,30,pl,0.4) then
  217. local a = CFrame.new(chr.Torso.CFrame.p,hit.Parent.Torso.CFrame.p)
  218. spawn(function()
  219. local bubble = part({Shape = "Ball",Size = Vector3.new(1,1,1),Anchored = true,BrickColor = BrickColor.White(),CFrame = hit.CFrame},0.2)
  220. for i = 1, 10 do
  221. bubble.Size = bubble.Size + Vector3.new(0.25,0.25,0.25)
  222. bubble.CFrame = hit.CFrame
  223. bubble.Transparency = bubble.Transparency + 1/15
  224. rs:wait()
  225. end
  226. end)
  227. spawn(function() Velocity(hit.Parent.Torso,a.lookVector*100,0.1) end)
  228.  
  229. -- elseif debounce[Enum.KeyCode.Z] and damage(chr["Right Leg"],hit,5,pl,0.05) then
  230. -- spawn(function()
  231. -- local bubble = part({Shape = "Ball",Size = Vector3.new(1,1,1),Anchored = true,BrickColor = BrickColor.White(),CFrame = hit.CFrame},0.2)
  232. -- for i = 1, 10 do
  233. -- bubble.Size = bubble.Size + Vector3.new(0.25,0.25,0.25)
  234. -- bubble.CFrame = hit.CFrame
  235. -- bubble.Transparency = bubble.Transparency + 1/15
  236. -- rs:wait()
  237. -- end
  238. -- end)
  239. end
  240. end)
  241.  
  242.  
  243. local pose = "Idle"
  244. local lastpose = "Idle"
  245.  
  246. local larm = chr["Left Arm"]
  247. local rarm = chr["Right Arm"]
  248. local torso = chr["Torso"]
  249. local lleg = chr["Left Leg"]
  250. local rleg = chr["Right Leg"]
  251. local hed = chr["Head"]
  252. local root = chr["HumanoidRootPart"]
  253.  
  254.  
  255.  
  256. RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  257. RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  258. LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  259. LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  260. RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  261. RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  262. LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  263. LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  264. NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  265. NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  266. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  267. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  268. Grip = nil
  269. GripC0 = CFrame.new(0, -0.7, 0) * CFrame.fromEulerAnglesXYZ(-math.pi / 2, 0, math.pi)
  270. GripUNC0 = CFrame.new(1.1, -0.85, 0.5) * CFrame.fromEulerAnglesXYZ(math.pi / 2.2, -math.pi / 1.13, math.rad(-90))
  271. local t = chr.Torso
  272. local hrp = chr.HumanoidRootPart.RootJoint
  273. RightShoulder = t:FindFirstChild("Right Shoulder")
  274. LeftShoulder = t:FindFirstChild("Left Shoulder")
  275. RightHip = t:FindFirstChild("Right Hip")
  276. LeftHip = t:FindFirstChild("Left Hip")
  277. RootJoint = hrp
  278. Neck = t:FindFirstChild("Neck")
  279.  
  280. local actions = {}
  281.  
  282. function actions.taunt()
  283. Sound(1,"rbxassetid://690262386",66,chr.Head)---(pitch,id,volume,parent)
  284. end
  285.  
  286. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  287. local wld = Instance.new("Weld", wp1)
  288. wld.Part0 = wp0
  289. wld.Part1 = wp1
  290. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  291. end
  292. newWeld(torso, larm, -1.5, 0.5, 0)
  293. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  294. newWeld(torso, rarm, 1.5, 0.5, 0)
  295. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  296. newWeld(torso, hed, 0, 1.5, 0)
  297. newWeld(torso, lleg, -0.5, -1, 0)
  298. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  299. newWeld(torso, rleg, 0.5, -1, 0)
  300. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  301. newWeld(root, torso, 0, -1, 0)
  302. torso.Weld.C1 = CFrame.new(0, 0, 0)
  303.  
  304. local animpose = "Idle"
  305. local lastanimpose = "Idle"
  306. local sine = 1
  307. local change = 1
  308. local val = 0
  309.  
  310. local jump
  311.  
  312. game:GetService("RunService").RenderStepped:connect(function()
  313. --print(chr.Torso.Anchored,chr.HumanoidRootPart.Anchored)
  314. if chr.Humanoid.Jump == true then
  315. jump = true
  316. else
  317. jump = false
  318. end
  319. chr.Humanoid.FreeFalling:connect(function(f)
  320. if f then
  321. ffing = true
  322. else
  323. ffing = false
  324. end
  325. end)
  326.  
  327. sine = sine + change
  328. if jump == true then
  329. animpose = "Jumping"
  330. elseif ffing == true then
  331. animpose = "Freefalling"
  332. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  333. animpose = "Idle"
  334. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  335. animpose = "Walking"
  336. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  337. animpose = "Running"
  338. end
  339. if animpose ~= lastanimpose then
  340. sine = 0
  341. if debounce["Noidl"] == false then
  342. if animpose == "Idle" then
  343. for i = 1, 2 do
  344. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  345. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  346. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  347. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.4)
  348. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  349. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  350. end
  351. elseif animpose == "Jumping" then
  352. for i = 1, 2 do
  353. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  354. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  355. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  356. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.4)
  357. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  358. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  359. end
  360. elseif animpose == "Freefalling" then
  361. for i = 1, 2 do
  362. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
  363. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
  364. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
  365. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
  366. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
  367. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
  368. end
  369. elseif animpose == "Walking" then
  370. for i = 1, 2 do
  371. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  372. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  373. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4)
  374. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  375. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4)
  376. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4)
  377. end
  378. elseif animpose == "Running" then
  379. for i = 1, 2 do
  380. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2)
  381. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2)
  382. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4)
  383. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4)
  384. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4)
  385. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4)
  386. wait()
  387. end
  388. end
  389. else
  390. end
  391. end
  392. lastanimpose = animpose
  393. if debounce["Noidl"] == false then
  394. if animpose == "Idle" then
  395. change = 0.5
  396. --rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4)
  397. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.55,0.5+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-7-2*math.cos(sine/10))), 0.4)
  398. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(25),math.rad(0),math.rad(10-2*math.cos(sine/10))), 0.4)
  399. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(2.25-2*math.cos(sine/10)),math.rad(35),0), 0.2)
  400. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  401. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0.1-0.05*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-45), math.rad(0)), 0.05)
  402. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1+0.00000000000000001*(sine/10), 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-1*math.cos(sine/10))), 0.4)
  403. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.00000000000000001*(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+1*math.cos(sine/10))), 0.4)
  404. elseif animpose == "Freefalling" then
  405. change = 0.5
  406. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10-180),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4)
  407. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20-180),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4)
  408. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2)
  409. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  410. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05)
  411. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-5*math.cos(sine/10))), 0.4)
  412. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+5*math.cos(sine/10))), 0.4)
  413. elseif animpose == "Jumping" then
  414. change = 0.5
  415. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4)
  416. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4)
  417. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2)
  418. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  419. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05)
  420. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-2*math.cos(sine/10))), 0.4)
  421. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4)
  422. elseif animpose == "Walking" then
  423. change = 0.075
  424. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55+0.05*math.cos(sine/10),0)*CFrame.Angles(math.rad(-16+45*math.cos(sine/1.1)),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  425. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55+0.05*math.cos(sine/10),0)*CFrame.Angles(math.rad(-16-45*math.cos(sine/1.1)),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  426. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-7.5),0,0), 0.4)
  427. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(10),0, math.rad(0)), 0.05)
  428. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-1+45*math.cos(sine/1.1)), 0, math.rad(0+2*math.cos(sine/5))), 0.4)
  429. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-45*math.cos(sine/1.1)), 0, math.rad(0-2*math.cos(sine/5))), 0.4)
  430. elseif animpose == "Running" then
  431. change = 0.5
  432. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2)
  433. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2)
  434. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4)
  435. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.05*math.cos(sine/1), 0) * CFrame.Angles(math.rad(-20),math.rad(-1), math.rad(0)), 0.2)
  436. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-1+65*math.cos(sine/1.1)), 0, math.rad(0+2*math.cos(sine/5))), 0.4)
  437. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-65*math.cos(sine/1.1)), 0, math.rad(0-2*math.cos(sine/5))), 0.4)
  438. end
  439. end
  440. end)
  441.  
  442. local MouseDown
  443.  
  444. debounce["blah"] = true
  445.  
  446. function Bubbles(velocity,cframe)
  447. local part = Instance.new("Part")
  448. part.Shape = "Ball"
  449. part.Size = Vector3.new(1,1,1)
  450. part.Anchored = false
  451. part.CanCollide = false
  452. part.TopSurface = Enum.SurfaceType.Smooth
  453. part.BottomSurface = Enum.SurfaceType.Smooth
  454. part.Parent = workspace
  455. part.CFrame = cframe and cframe or CFrame.new(chr.Torso.CFrame.p + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))) * CFrame.Angles(math.rad(math.random(-135,135)),math.rad(math.random(-135,135)),math.rad(math.random(-135,135)))
  456. spawn(function()
  457. for i = 1, 30 do
  458. part.Transparency = part.Transparency + 1/30
  459. wait()
  460. end
  461. end)
  462. Velocity(part,velocity or Vector3.new(0,50,0)+part.CFrame.lookVector*50)
  463. end
  464.  
  465. game:GetService("UserInputService").InputBegan:connect(function(key,chat)
  466. if chat or chr.Humanoid.Health == 0 then return end
  467. if key.UserInputType == Enum.UserInputType.Keyboard then
  468. if not debounce["blah"] then return
  469. elseif key.KeyCode == Enum.KeyCode.T and not debounce[key.KeyCode] then
  470. debounce[key.KeyCode] = true
  471. print("firing")
  472. actions.taunt()
  473. debounce[key.KeyCode] = false
  474. elseif key.KeyCode == Enum.KeyCode.Z and not debounce[key.KeyCode] then
  475. debounce[key.KeyCode] = true
  476. debounce["noatk"] = true
  477. debounce["Noidl"] = true
  478. Sound(1,"rbxassetid://831163387",5,chr.Torso)
  479. chr.Humanoid.WalkSpeed = 10
  480. change = 1
  481. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(0)), 0.35)
  482. for ii = 0,36*2 do
  483. spawn(function() Bubbles() end)
  484. print(ii,ii*10)
  485. local angle = ii*10
  486. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(90+2*math.cos(sine/1.1)),math.rad(-12),math.rad(-35)), 0.5)
  487. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(90-2*math.cos(sine/1.1)),math.rad(12),math.rad(35)), 0.5)
  488. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-7.5),0,0), 0.4)
  489. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(0+angle*4)), 1)
  490. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5+2*math.cos(sine/5))), 0.4)
  491. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5-2*math.cos(sine/5))), 0.4)
  492. wait()
  493. end
  494. Sound(1,"rbxassetid://831163643",5,chr.Torso)
  495. sine = 0
  496. change = 1
  497. kick = true
  498. for i = 1, 20 do
  499. print("kick")
  500. sine = sine + change
  501. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(0-i),math.rad(-12),math.rad(2*i)), 0.5)
  502. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(0-i),math.rad(12),math.rad(-2*i)), 0.5)
  503. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.5-0.25*math.cos(sine/4)) * CFrame.Angles(math.rad(-75-1*math.cos(sine/4)),0,0), 0.1)
  504. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(0)), 1)
  505. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(-5+2*math.cos(sine/5))), 0.4)
  506. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5+1.5*math.cos(sine/(4+(i/2))), -0.5) * CFrame.Angles(math.rad(0), 0, math.rad(5-2*math.cos(sine/5))), 0.4)
  507. rs:wait()
  508. end
  509. chr.Humanoid.WalkSpeed = speed
  510. kick = false
  511. change = 1
  512. debounce["Noidl"] = false
  513. debounce["noatk"] = false
  514. debounce[key.KeyCode] = false
  515. end
  516. elseif key.UserInputType == Enum.UserInputType.MouseButton1 and not debounce["lmb"] and not debounce["noatk"] then
  517. debounce["lmb"] = true
  518. debounce["Noidl"] = true
  519. mouse.Button1Up:connect(function()
  520. MouseDown = false
  521. oraloop:Stop()
  522. end)
  523. chr.Humanoid.WalkSpeed = speed/3
  524. MouseDown = true
  525. oraloop:Play()
  526. while MouseDown and wait() do
  527. if debounce["noatk"] then MouseDown = false else
  528. change = 10
  529. sine = sine + change
  530. spawn(function() Tracer(chr["Right Arm"]) end)
  531. spawn(function() Tracer(chr["Left Arm"]) end)
  532. for i = 1, 1 do
  533. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0+2*math.cos(sine/20))*CFrame.Angles(math.rad(90+2*math.cos(sine/1.1)),math.rad(-12),math.rad(-35+10*math.cos(sine/14))), 0.5)
  534. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0-7*math.cos(sine/20))*CFrame.Angles(math.rad(90-2*math.cos(sine/1.1)),math.rad(12),math.rad(35-10*math.cos(sine/14))), 0.5)
  535. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-7.5),0,0), 0.4)
  536. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(0),math.rad(-45), math.rad(0)), 0.35)
  537. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-5+2*math.cos(sine/5))), 0.4)
  538. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(5-2*math.cos(sine/5))), 0.4)
  539. end
  540. wait()
  541. for i = 1, 1 do
  542. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0-7*math.cos(sine/20))*CFrame.Angles(math.rad(90+2*math.cos(sine/1.1)),math.rad(-12),math.rad(-35+10*math.cos(sine/14))), 0.5)
  543. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0+2*math.cos(sine/20))*CFrame.Angles(math.rad(90-2*math.cos(sine/1.1)),math.rad(12),math.rad(35-10*math.cos(sine/14))), 0.5)
  544. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-7.5),0,0), 0.4)
  545. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(0),math.rad(45), math.rad(0)), 0.35)
  546. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-5+2*math.cos(sine/5))), 0.4)
  547. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(5-2*math.cos(sine/5))), 0.4)
  548. end
  549. end
  550. end
  551. change = 1
  552. orafinish:Play()
  553. if debounce["noatk"] then return else
  554. finisher = true
  555. for i = 1, 5 do
  556. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,2)*CFrame.Angles(math.rad(90+2*math.cos(sine/1.1)),math.rad(-12),math.rad(-35+10*math.cos(sine/14))), 0.5)
  557. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-45-2*math.cos(sine/1.1)),math.rad(12),math.rad(35-10*math.cos(sine/14))), 0.5)
  558. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-7.5),0,0), 0.4)
  559. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(0),math.rad(-60), math.rad(0)), 0.35)
  560. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-5+2*math.cos(sine/5))), 0.4)
  561. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(5-2*math.cos(sine/5))), 0.4)
  562. wait()
  563. end
  564. for i = 1, 20 do
  565. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,-2)*CFrame.Angles(math.rad(90+2*math.cos(sine/1.1)),math.rad(-12),math.rad(-35+10*math.cos(sine/14))), 0.5)
  566. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-45-2*math.cos(sine/1.1)),math.rad(12),math.rad(35-10*math.cos(sine/14))), 0.5)
  567. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-7.5),0,0), 0.4)
  568. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(0),math.rad(45), math.rad(0)), 0.35)
  569. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-5+2*math.cos(sine/5))), 0.4)
  570. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(5-2*math.cos(sine/5))), 0.4)
  571. wait()
  572. end
  573. chr.Humanoid.WalkSpeed = speed
  574. finisher = false
  575. debounce["Noidl"] = false
  576. wait(0.75)
  577. end
  578. debounce["lmb"] = false
  579. end
  580. end)
  581.  
  582. while wait() do
  583. chr.Torso.Anchored = false
  584. chr["Right Arm"].Anchored = false
  585. chr["Left Arm"].Anchored = false
  586. chr["Right Leg"].Anchored = false
  587. chr["Left Leg"].Anchored = false
  588. chr.HumanoidRootPart.Anchored = false
  589. end
  590. local s = Instance.new("Sound")
  591.  
  592. s.Name = "Sound"
  593. s.SoundId = "http://www.roblox.com/asset/?id=1345751992"
  594. s.Volume = 4
  595. s.Looped = true
  596. s.archivable = false
  597.  
  598. s.Parent = Workspace
  599.  
  600. wait(3)
  601.  
  602. s:play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement