Advertisement
RIDHOCRaIWIW

oof oof oof oofoo

Jun 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.07 KB | None | 0 0
  1. ---
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local ASD = BrickColor.new("Maroon")
  12. local hum = char.Humanoid
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15. local DD = false
  16. local FA = false
  17. local deb = false
  18. local shot = 0
  19. local l = game:GetService("Lighting")
  20. local rs = game:GetService("RunService").RenderStepped
  21. local stanceToggle = "Normal"
  22. math.randomseed(os.time())
  23. hum.WalkSpeed = 7
  24. char.Health:Destroy()
  25. hum.MaxHealth = 5000000
  26. wait(0.1)
  27. hum.Health = 5000000
  28. z = Instance.new("Sound", char.Torso)
  29. z.SoundId = "rbxassetid://1713855118"
  30. z.Looped = true
  31. z.Pitch = 1
  32. z.Volume = 1
  33. ----------------------------------------------------
  34. local SM = Instance.new("Smoke",torso)
  35. SM.Size = 15
  36. local S = Instance.new("Part",char)
  37. S.Size = Vector3.new(1,1,1)
  38. S.Material = "Neon"
  39. S.BrickColor = BrickColor.new("Deep orange")
  40. S.Transparency = 0
  41. S.Anchored = true
  42. S.CFrame = torso.CFrame*CFrame.new(0,0,0)
  43. local Ring = Instance.new("Part",S)
  44. Ring.Size = Vector3.new(1,1,1)
  45. Ring.BrickColor = BrickColor.new("Deep orange")
  46. Ring.Anchored = true
  47. Ring.CanCollide = false
  48. Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
  49. local Ring2 = Instance.new("SpecialMesh",Ring)
  50. Ring2.MeshId = "rbxassetid://3270017"
  51. Ring2.Scale = Vector3.new(0.1,0.1,0.1)
  52. local S2 = Instance.new("SpecialMesh",S)
  53. S2.MeshType = "Sphere"
  54. S2.Scale = Vector3.new(1,1,1)
  55. v = Instance.new("Sound")
  56. v.SoundId = "rbxassetid://821439273"
  57. v.Parent = char.Torso
  58. v.Looped = false
  59. v.Pitch = 1
  60. v.Volume = 1
  61. wait(.01)
  62. v:Play()
  63. local partasdeff = Instance.new("ParticleEmitter",S)
  64. partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
  65. partasdeff.LightEmission = .1
  66. partasdeff.Size = NumberSequence.new(0.2)
  67. partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
  68. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  69. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  70. partasdeff.Transparency = bbb
  71. partasdeff.Size = aaa
  72. partasdeff.ZOffset = .9
  73. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  74. partasdeff.LockedToPart = false
  75. partasdeff.EmissionDirection = "Top"
  76. partasdeff.Lifetime = NumberRange.new(1, 2)
  77. partasdeff.Rate = 1000
  78. partasdeff.Rotation = NumberRange.new(-100, 100)
  79. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  80. partasdeff.Speed = NumberRange.new(10)
  81. partasdeff.VelocitySpread = 300
  82. partasdeff.Enabled = true
  83. for i = 1,100 do
  84. Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
  85. Ring.Transparency = Ring.Transparency + 0.01
  86. S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
  87. S.Transparency = S.Transparency + 0.01
  88. game:GetService("RunService").RenderStepped:wait()
  89. end
  90. S:remove()
  91. wait(1)
  92. SM:remove()
  93. char.Shirt:remove()
  94. char.Pants:remove()
  95. v = Instance.new("Sound")
  96. v.SoundId = "rbxassetid://181384451"
  97. v.Parent = torso
  98. v.Looped = false
  99. v.Pitch = 0.8
  100. v.Volume = 1
  101. wait(.01)
  102. v:Play()
  103. z:Play()
  104.  
  105. ----------------------------------------------------
  106. Debounces = {
  107. on = false;
  108. ks = false;
  109. CanAttack = true;
  110. CanJoke = true;
  111. NoIdl = false;
  112. Slashing = false;
  113. Slashed = false;
  114. Grabbing = false;
  115. Grabbed = false;
  116. }
  117. local Touche = {char.Name, }
  118. ----------------------------------------------------
  119. function lerp(a, b, t) -- Linear interpolation
  120. return a + (b - a)*t
  121. end
  122.  
  123. function slerp(a, b, t) --Spherical interpolation
  124. dot = a:Dot(b)
  125. if dot > 0.99999 or dot < -0.99999 then
  126. return t <= 0.5 and a or b
  127. else
  128. r = math.acos(dot)
  129. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  130. end
  131. end
  132.  
  133. function matrixInterpolate(a, b, t)
  134. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  135. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  136. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  137. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  138. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  139. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  140. local t = v1:Dot(v2)
  141. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  142. return CFrame.new()
  143. end
  144. return CFrame.new(
  145. v0.x, v0.y, v0.z,
  146. v1.x, v1.y, v1.z,
  147. v2.x, v2.y, v2.z,
  148. v3.x, v3.y, v3.z)
  149. end
  150. ----------------------------------------------------
  151. function genWeld(a,b)
  152. local w = Instance.new("Weld",a)
  153. w.Part0 = a
  154. w.Part1 = b
  155. return w
  156. end
  157. function weld(a, b)
  158. local weld = Instance.new("Weld")
  159. weld.Name = "W"
  160. weld.Part0 = a
  161. weld.Part1 = b
  162. weld.C0 = a.CFrame:inverse() * b.CFrame
  163. weld.Parent = a
  164. return weld;
  165. end
  166. ----------------------------------------------------
  167. function Lerp(c1,c2,al)
  168. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  169. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  170. for i,v in pairs(com1) do
  171. com1[i] = v+(com2[i]-v)*al
  172. end
  173. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  174. end
  175. ----------------------------------------------------
  176. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  177. local wld = Instance.new("Weld", wp1)
  178. wld.Part0 = wp0
  179. wld.Part1 = wp1
  180. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  181. end
  182. ----------------------------------------------------
  183. for i,v in pairs(char:children()) do
  184. if v:IsA("Hat") then
  185. v:Destroy()
  186. end
  187. end
  188. for i,v in pairs(hed:children()) do
  189. if v:IsA("Sound") then
  190. v:Destroy()
  191. end
  192. end
  193. ----------------------------------------------------
  194. function HasntTouched(plrname)
  195. local ret = true
  196. for _, v in pairs(Touche) do
  197. if v == plrname then
  198. ret = false
  199. end
  200. end
  201. return ret
  202. end
  203. ----------------------------------------------------
  204. larm.Size = larm.Size * 5
  205. rarm.Size = rarm.Size * 5
  206. lleg.Size = lleg.Size * 5
  207. rleg.Size = rleg.Size * 5
  208. torso.Size = torso.Size * 5
  209. hed.Size = hed.Size * 5
  210. root.Size = root.Size * 5
  211. ----------------------------------------------------
  212. newWeld(torso, larm, -1.5, 0.5, 0)
  213. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  214. newWeld(torso, rarm, 1.5, 0.5, 0)
  215. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  216. newWeld(torso, hed, 0, 1.5, 0)
  217. newWeld(torso, lleg, -0.5, -1, 0)
  218. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  219. newWeld(torso, rleg, 0.5, -1, 0)
  220. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  221. newWeld(root, torso, 0, -1, 0)
  222. torso.Weld.C1 = CFrame.new(0, -1, 0)
  223. ----------------------------------------------------
  224.  
  225. ----------------------------------------------------
  226. -----Armored titan parts nibs
  227.  
  228. ----------------------------------------------------
  229.  
  230.  
  231. ----------------------------------------------------
  232.  
  233. ----------------------------------------------------
  234.  
  235. ----------------------------------------/------------
  236. ----------------------------------------------------
  237.  
  238. -----------------------------------------------------------
  239.  
  240. ----------------------------------------------------
  241.  
  242. ---------------------------------------------------
  243.  
  244. -----------------------------------------------------
  245.  
  246. -----------------------------------------------------
  247.  
  248. function weld5(part0, part1, c0, c1)
  249. weeld=Instance.new("Weld", part0)
  250. weeld.Part0=part0
  251. weeld.Part1=part1
  252. weeld.C0=c0
  253. weeld.C1=c1
  254. return weeld
  255. end
  256. ----------------------------------------------------
  257. function newRay(start,face,range,wat)
  258. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  259. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  260. return rey,hit,pos
  261. end
  262. ----------------------------------------------------
  263. mod5 = Instance.new("Model",char)
  264.  
  265. function FindNearestTorso(Position,Distance,SinglePlayer)
  266. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  267. local List = {}
  268. for i,v in pairs(workspace:GetChildren())do
  269. if v:IsA("Model")then
  270. if v:findFirstChild("Torso")then
  271. if v ~= char then
  272. if(v.Torso.Position -Position).magnitude <= Distance then
  273. table.insert(List,v)
  274. end
  275. end
  276. end
  277. end
  278. end
  279. return List
  280. end
  281.  
  282. function Landing()
  283. part=Instance.new('Part',mod5)
  284. part.Anchored=true
  285. part.CanCollide=false
  286. part.FormFactor='Custom'
  287. part.Size=Vector3.new(.2,.2,.2)
  288. part.CFrame=root.CFrame*CFrame.new(0,-2,0)
  289. part.Transparency=.7
  290. part.BrickColor=BrickColor.new('Really black')
  291. mesh=Instance.new('SpecialMesh',part)
  292. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  293. mesh.Scale=Vector3.new(10,5,10)
  294.  
  295. for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
  296. if v:FindFirstChild('Humanoid') then
  297. v.Humanoid:TakeDamage(math.random(20,30))
  298. v.Humanoid.PlatformStand = true
  299. v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
  300. end
  301. end
  302.  
  303. coroutine.resume(coroutine.create(function()
  304. for i=0,3.8,0.05 do
  305. wait()
  306. part.CFrame=part.CFrame
  307. part.Transparency=i
  308. mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
  309. end
  310. part.Parent = nil
  311. end))
  312. end
  313. ----------------------------------------------------
  314. mod4 = Instance.new("Model",char)
  315.  
  316. ptez = {0.7, 0.8, 0.9, 1}
  317.  
  318. function FindNearestTorso(Position,Distance,SinglePlayer)
  319. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  320. local List = {}
  321. for i,v in pairs(workspace:GetChildren())do
  322. if v:IsA("Model")then
  323. if v:findFirstChild("Torso")then
  324. if v ~= char then
  325. if(v.Torso.Position -Position).magnitude <= Distance then
  326. table.insert(List,v)
  327. end
  328. end
  329. end
  330. end
  331. end
  332. return List
  333. end
  334.  
  335. ----------------------------------------------------
  336.  
  337. local acos = math.acos
  338. local sqrt = math.sqrt
  339. local Vec3 = Vector3.new
  340. local fromAxisAngle = CFrame.fromAxisAngle
  341.  
  342. local function toAxisAngle(CFr)
  343. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  344. local Angle = math.acos((R00+R11+R22-1)/2)
  345. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  346. A = A == 0 and 0.00001 or A
  347. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  348. B = B == 0 and 0.00001 or B
  349. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  350. C = C == 0 and 0.00001 or C
  351. local x = (R21-R12)/sqrt(A)
  352. local y = (R02-R20)/sqrt(B)
  353. local z = (R10-R01)/sqrt(C)
  354. return Vec3(x,y,z),Angle
  355. end
  356.  
  357. function ApplyTrig(Num,Func)
  358. local Min,Max = Func(0),Func(1)
  359. local i = Func(Num)
  360. return (i-Min)/(Max-Min)
  361. --[[if Func == "sin" then
  362. return (math.sin((1-Num)*math.pi)+1)/2
  363. elseif Func == "cos" then
  364. return (math.cos((1-Num)*math.pi)+1)/2
  365. end]]
  366. end
  367.  
  368. function LerpCFrame(CFrame1,CFrame2,Num)
  369. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  370. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  371. end
  372. mouse.KeyDown:connect(function(key)
  373. if key == "b" then
  374. if Debounces.CanAttack == true then
  375. Debounces.CanAttack = false
  376. Debounces.on = true
  377. Debounces.NoIdl = true
  378. for i = 1,20 do
  379. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(9,4,1) * CFrame.Angles(0.3,-0.5,1.55),.3)
  380. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-9,4,1) * CFrame.Angles(0.3,0.5,-1.55),.3)
  381. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0.4,0,0),.3)
  382. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.3,0,0),.3)
  383. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,1) *CFrame.Angles(-0.3,0,-0.1),.3)
  384. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,1) * CFrame.Angles(-0.3,0,0.1),.3)
  385. if Debounces.on == false then break end
  386. wait()
  387. end
  388. v = Instance.new("Sound")
  389. v.SoundId = "rbxassetid://181384451"
  390. v.Parent = torso
  391. v.Looped = false
  392. v.Pitch = 0.8
  393. v.Volume = math.huge
  394. wait(.01)
  395. v:Play()
  396. coroutine.resume(coroutine.create(function()
  397. for i = 1,80 do
  398. local H = Instance.new("Part",torso)
  399. H.Size = Vector3.new(1,1,1)
  400. H.BrickColor = BrickColor.new("White")
  401. H.CanCollide = false
  402. H.Anchored = true
  403. H.CFrame = torso.CFrame*CFrame.new(0,-13,0)*CFrame.Angles(1.3,0,0)
  404. local H2 = Instance.new("SpecialMesh",H)
  405. H2.MeshId = "rbxassetid://3270017"
  406. coroutine.resume(coroutine.create(function()
  407. for i = 1,200 do
  408. H2.Scale = H2.Scale + Vector3.new(5,5,5)
  409. H.Transparency = H.Transparency + 0.05
  410. wait(0.05)
  411. end
  412. H:remove()
  413. end))
  414. wait(0.005)
  415. end
  416. if Debounces.CanAttack == false then
  417. Debounces.CanAttack = true
  418. Debounces.on = false
  419. Debounces.NoIdl = false
  420. end
  421. end))
  422. end
  423. end
  424. end)
  425. mouse.KeyDown:connect(function(key)
  426. if key == "z" then
  427. if Debounces.CanAttack == true then
  428. Debounces.CanAttack = false
  429. Debounces.on = true
  430. Debounces.NoIdl = true
  431. for i = 1,20 do
  432. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  433. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,-3) * CFrame.Angles(1.55,0,0),.3)
  434. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  435. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -6, 0) * CFrame.Angles(-1.5,0,0),.3)
  436. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -7.6,-2) *CFrame.Angles(1.55,0,0),.3)
  437. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,-2) * CFrame.Angles(1.55,0,0),.3)
  438. if Debounces.on == false then break end
  439. wait()
  440. end
  441. local Rock = Instance.new("Part",char)
  442. Rock.Size = Vector3.new(1,1,1)
  443. local Rock22 = Instance.new("SpecialMesh",Rock)
  444. Rock22.MeshId = "rbxassetid://433651599"
  445. Rock22.Scale = Vector3.new(0.5,0.5,0.5)
  446. local Rock2 = Instance.new("Weld",Rock)
  447. Rock2.Part0 = hed
  448. Rock2.Part1 = Rock
  449. Rock2.C0 = CFrame.new(0,40,0)*CFrame.Angles(0,-1.55,0)
  450. local PPA = Instance.new("Part",Rock)
  451. PPA.Size = Vector3.new(30,30,30)
  452. PPA.CanCollide = false
  453. local PPA2 = Instance.new("Weld",PPA)
  454. PPA2.Part0 = Rock
  455. PPA2.Part1 = PPA
  456. PPA2.C0 = CFrame.new(0,0,0)
  457. PPA.Touched:connect(function(hit)
  458. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  459. if not FA then FA = true
  460. hit.Parent.Humanoid.PlatformStand = true
  461. hit.Parent.Humanoid:TakeDamage(30)
  462. local Fly = Instance.new("BodyVelocity",hit.Parent.Torso)
  463. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  464. Fly.velocity = mouse.hit.lookVector*560
  465. wait(0.1)
  466. Fly:remove()
  467. wait(3)
  468. FA = false
  469. end
  470. end
  471. end)
  472. wait(0.5)
  473. for i = 1,20 do
  474. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  475. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,5.5,0) * CFrame.Angles(3.1,0,0),.3)
  476. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  477. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0,0,0),.3)
  478. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  479. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,0) * CFrame.Angles(0,0,0),.3)
  480. if Debounces.on == false then break end
  481. wait()
  482. end
  483. Rock2:remove()
  484. local Fly = Instance.new("BodyVelocity",Rock)
  485. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  486. Fly.velocity = mouse.hit.lookVector*200
  487. for i = 1,20 do
  488. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  489. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1.5,-1) * CFrame.Angles(1.55,0,0),.3)
  490. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.3,0,0),.3)
  491. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.3,0,0),.3)
  492. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8,0) *CFrame.Angles(0,0,0),.3)
  493. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8,-2) * CFrame.Angles(0.5,0,0),.3)
  494. if Debounces.on == false then break end
  495. wait()
  496. end
  497. if Debounces.CanAttack == false then
  498. Debounces.CanAttack = true
  499. Debounces.on = false
  500. Debounces.NoIdl = false
  501. end
  502. wait(2)
  503. Fly:remove()
  504. local SFXZ = Instance.new("Sound",Rock)
  505. SFXZ.SoundId = "rbxassetid://134854740"
  506. SFXZ.Volume = math.huge
  507. SFXZ.Pitch = 1
  508. SFXZ.Looped = false
  509. wait(0.01)
  510. SFXZ:Play()
  511. wait(3)
  512. Rock:remove()
  513. end
  514. end
  515. end)
  516. mouse.KeyDown:connect(function(key)
  517. if key == "e" then
  518. if Debounces.CanAttack == true then
  519. Debounces.CanAttack = false
  520. Debounces.on = true
  521. Debounces.NoIdl = true
  522. for i = 1,20 do
  523. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
  524. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  525. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  526. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  527. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  528. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  529. if Debounces.on == false then break end
  530. wait()
  531. end
  532. local HitBox = Instance.new("Part",char)
  533. HitBox.Size = Vector3.new(5,5,5)
  534. HitBox.CanCollide = false
  535. HitBox.Transparency = math.huge
  536. local HitBox2 = Instance.new("Weld",HitBox)
  537. HitBox2.Part0 = rarm
  538. HitBox2.Part1 = HitBox
  539. HitBox2.C0 = CFrame.new(0,-4.5,0)
  540. HitBox.Touched:connect(function(hit)
  541. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  542. if not DD then DD = true
  543. HitBox:remove()
  544. hit.Parent.Humanoid.PlatformStand = true
  545. local We = Instance.new("Weld",hit.Parent.Torso)
  546. We.Part0 = rarm
  547. We.Part1 = hit.Parent.Torso
  548. We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
  549. wait(1)
  550. for i = 1,20 do
  551. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
  552. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
  553. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
  554. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  555. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  556. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  557. if Debounces.on == false then break end
  558. wait()
  559. end
  560. hit.Parent.Humanoid:TakeDamage(20)
  561. for i = 1,20 do
  562. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
  563. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
  564. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  565. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  566. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  567. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  568. if Debounces.on == false then break end
  569. wait()
  570. end
  571. for i = 1,20 do
  572. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
  573. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
  574. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
  575. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
  576. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
  577. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
  578. if Debounces.on == false then break end
  579. wait()
  580. end
  581. local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
  582. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
  583. partasdeff.LightEmission = .1
  584. partasdeff.Size = NumberSequence.new(0.2)
  585. partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
  586. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  587. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  588. partasdeff.Transparency = bbb
  589. partasdeff.Size = aaa
  590. partasdeff.ZOffset = .9
  591. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  592. partasdeff.LockedToPart = false
  593. partasdeff.EmissionDirection = "Top"
  594. partasdeff.Lifetime = NumberRange.new(1, 2)
  595. partasdeff.Rate = 1000
  596. partasdeff.Rotation = NumberRange.new(-100, 100)
  597. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  598. partasdeff.Speed = NumberRange.new(10)
  599. partasdeff.VelocitySpread = 300
  600. partasdeff.Enabled = true
  601. wait(1.5)
  602. hit.Parent:BreakJoints()
  603. We:remove()
  604. partasdeff.Enabled = false
  605. if Debounces.CanAttack == false then
  606. Debounces.CanAttack = true
  607. Debounces.on = false
  608. Debounces.NoIdl = false
  609. end
  610. wait(3)
  611. DD = false
  612. end
  613. end
  614. end)
  615. wait(5)
  616. if Debounces.CanAttack == false then
  617. Debounces.CanAttack = true
  618. Debounces.on = false
  619. Debounces.NoIdl = false
  620. end
  621. end
  622. end
  623. end)
  624. mouse.KeyDown:connect(function(key)
  625. if key == "r" then
  626. if Debounces.CanAttack == true then
  627. Debounces.CanAttack = false
  628. Debounces.on = true
  629. Debounces.NoIdl = true
  630. for i = 1,20 do
  631. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  632. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  633. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  634. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
  635. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
  636. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
  637. if Debounces.on == false then break end
  638. wait()
  639. end
  640. local HitBox = Instance.new("Part",char)
  641. HitBox.Size = Vector3.new(5,5,5)
  642. HitBox.CanCollide = false
  643. HitBox.Transparency = math.huge
  644. local HitBox2 = Instance.new("Weld",HitBox)
  645. HitBox2.Part0 = rleg
  646. HitBox2.Part1 = HitBox
  647. HitBox2.C0 = CFrame.new(0,-1.1,0)
  648. local SFXZ = Instance.new("Sound",torso)
  649. SFXZ.SoundId = "rbxassetid://169259383"
  650. SFXZ.Volume = math.huge
  651. SFXZ.Pitch = 0.5
  652. SFXZ.Looped = false
  653. wait(0.01)
  654. SFXZ:Play()
  655. HitBox.Touched:connect(function(hit)
  656. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
  657. local SFXZ = Instance.new("Sound",torso)
  658. SFXZ.SoundId = "rbxassetid://743886825"
  659. SFXZ.Volume = 1
  660. SFXZ.Pitch = 0.5
  661. SFXZ.Looped = false
  662. SFXZ:Play()
  663. HitBox:remove()
  664. hit.Parent.Humanoid:TakeDamage(44)
  665. hit.Parent.Humanoid.PlatformStand = true
  666. local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
  667. Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  668. Fl.velocity = rleg.CFrame.lookVector*350
  669. wait(0.1)
  670. Fl:remove()
  671. end
  672. end)
  673. for i = 1,20 do
  674. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
  675. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
  676. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
  677. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
  678. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
  679. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
  680. if Debounces.on == false then break end
  681. wait()
  682. end
  683. if Debounces.CanAttack == false then
  684. Debounces.CanAttack = true
  685. Debounces.on = false
  686. Debounces.NoIdl = false
  687. HitBox:remove()
  688. end
  689. end
  690. end
  691. end)
  692. ----------------------------------------------------
  693. mouse.KeyDown:connect(function(key)
  694. if string.byte(key) == 48 then
  695. char.Humanoid.WalkSpeed = 34
  696. end
  697. end)
  698. mouse.KeyUp:connect(function(key)
  699. if string.byte(key) == 48 then
  700. char.Humanoid.WalkSpeed = 5
  701. end
  702. end)
  703. ----------------------------------------------------
  704. local animpose = "Idle"
  705. local lastanimpose = "Idle"
  706. local sine = 0
  707. local change = 1
  708. local val = 0
  709. local ffing = false
  710. ----------------------------------------------------
  711. local x = Instance.new("Sound", char.Torso)
  712. x.SoundId = "http://www.roblox.com/asset/?id=273962540"
  713. x.Looped = true
  714. x.Volume = 1
  715. x.Pitch = 1
  716. local footsteps = false
  717. -------------------------------
  718. game:GetService("RunService").RenderStepped:connect(function()
  719. --[[if char.Humanoid.Jump == true then
  720. jump = true
  721. else
  722. jump = false
  723. end]]
  724. char.Humanoid.FreeFalling:connect(function(f)
  725. if f then
  726. ffing = true
  727. else
  728. ffing = false
  729. end
  730. end)
  731. sine = sine + change
  732. if jumpn == true then
  733. animpose = "Jumping"
  734. elseif ffing == true then
  735. animpose = "Freefalling"
  736. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  737. animpose = "Idle"
  738. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  739. animpose = "Walking"
  740. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  741. animpose = "Running"
  742. end
  743. if animpose ~= lastanimpose then
  744. sine = 0
  745. if Debounces.NoIdl == false then
  746. if animpose == "Idle" then
  747. for i = 1, 2 do
  748. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
  749. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  750. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
  751. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  752. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
  753. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
  754. end
  755. elseif animpose == "Walking" then
  756. for i = 1, 2 do
  757. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
  758. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
  759. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
  760. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
  761. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  762. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
  763. end
  764. elseif animpose == "Running" then
  765. for i = 1, 2 do
  766. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
  767. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
  768. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  769. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  770. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
  771. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
  772. end
  773. wait()
  774. end
  775. else
  776. end
  777. end
  778. lastanimpose = animpose
  779. if Debounces.NoIdl == false then
  780. if animpose == "Idle" then
  781. if stanceToggle == "Normal" then
  782. change = 0.5
  783. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,0.3),.2)
  784. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.new(0,0-.3*math.sin(tick()*1),0)*CFrame.Angles(0,0,0)*CFrame.Angles(0,0,-0.3),.2)
  785. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(0-.1*math.sin(tick()*1),0,0)*CFrame.Angles(-0.3,0,0), 0.2)
  786. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
  787. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  788. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  789. elseif stanceToggle == "Sitting" then
  790. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
  791. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
  792. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
  793. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
  794. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
  795. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
  796. end
  797. elseif animpose == "Walking" then
  798. if stanceToggle == "Normal" then
  799. change = 1
  800. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,0.8,0)*CFrame.Angles(0-.2*math.sin(tick()*2.5),0,0.2),.3)
  801. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,0.8,0)*CFrame.Angles(0+.2*math.sin(tick()*2.5),0,-0.2),.3)
  802. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
  803. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-1.8,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
  804. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  805. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  806. end
  807. elseif animpose == "Running" then
  808. change = 1
  809. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.7,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
  810. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.7,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
  811. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
  812. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
  813. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.80*math.cos(sine/6)/2.4, -.15 + math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + -math.sin(sine/6)/1.7, 0, 0), .4)
  814. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.80*math.cos(sine/6)/2.4, -.15 + -math.sin(sine/6)/1.5) * CFrame.Angles(math.rad(-10) + math.sin(sine/6)/1.7, 0, 0), .4)
  815. end
  816. end
  817. if animpose == "Walking" then
  818. if footsteps == false then
  819. x:Play()
  820. footsteps = true
  821. end
  822. x.Pitch = 1.1
  823. elseif animpose == "Idle" then
  824. x:Stop()
  825. footsteps = false
  826. elseif animpose == "Running" then
  827. x.Pitch = 1.2
  828. if footsteps == false then
  829. x:Play()
  830. footsteps = true
  831. end
  832. end
  833. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement