Advertisement
SKOONKBURG

Untitled

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