Advertisement
Guest User

eren titan script 1

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