Offsetchain

Big DADDY

Jun 1st, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.42 KB | None | 0 0
  1. -------------
  2. --Big Daddy--
  3. ----------------------------------------------------------------
  4. --By CKbackup (Sugarie Saffron) --
  5. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  6. --Discord: Sugarie Saffron#4705 --
  7. ----------------------------------------------------------------
  8.  
  9. wait(.1)
  10. local Player = game:service'Players'.LocalPlayer
  11. local chara = Player.Character
  12. local Mouse = Player:GetMouse()
  13. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  14. local LeftArm = chara["Left Arm"]
  15. local RightArm = chara["Right Arm"]
  16. local LeftLeg = chara["Left Leg"]
  17. local RightLeg = chara["Right Leg"]
  18. local Head = chara.Head
  19. local Torso = chara.Torso
  20. local RootPart = chara.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local attack = false
  23. local Anim = 'Idle'
  24. local attacktype = 1
  25. local delays = false
  26. local play = true
  27. local targetted = nil
  28. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  29. local velocity = RootPart.Velocity.y
  30. local sine = 0
  31. local change = 1
  32. local doe = 0
  33. local Create = LoadLibrary("RbxUtility").Create
  34. Humanoid.WalkSpeed = 16
  35. debby = game:GetService("Debris")
  36.  
  37. Humanoid.MaxHealth = 800
  38. Humanoid.Health = 800
  39.  
  40. Humanoid.Animator.Parent = nil
  41. chara.Animate.Parent = nil
  42.  
  43.  
  44. local newMotor = function(part0, part1, c0, c1)
  45. local w = Create('Motor'){
  46. Parent = part0,
  47. Part0 = part0,
  48. Part1 = part1,
  49. C0 = c0,
  50. C1 = c1,
  51. }
  52. return w
  53. end
  54.  
  55. function clerp(a, b, t)
  56. return a:lerp(b, t)
  57. end
  58.  
  59. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  60. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  61.  
  62. LeftArm.Size = LeftArm.Size * 1.3
  63. RightArm.Size = RightArm.Size * 1.3
  64. LeftLeg.Size = LeftLeg.Size * 1.3
  65. RightLeg.Size = RightLeg.Size * 1.3
  66. Torso.Size = Torso.Size * 1.3
  67. Head.Size = Head.Size * 1.3
  68. RootPart.Size = RootPart.Size * 1.3
  69.  
  70. local RW = newMotor(Torso, RightArm, CFrame.new(1.95, 0, 0), CFrame.new(0, 0, 0))
  71. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.95, 0, 0), CFrame.new(0, 0, 0))
  72. local Neck = newMotor(Torso, Head, CFrame.new(0,1.95,0), CFrame.new())
  73. local RH = newMotor(Torso, RightLeg, CFrame.new(.65, -2.6, 0), CFrame.new(0, 0, 0))
  74. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.65, -2.6, 0), CFrame.new(0, 0, 0))
  75. local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-1.3,0), CFrame.new(0,0,0))
  76.  
  77. local rarmc1 = RW.C1
  78. local larmc1 = LW.C1
  79. local rlegc1 = RH.C1
  80. local llegc1 = LH.C1
  81.  
  82. local resetc1 = false
  83.  
  84. function PlayAnimationFromTable(table, speed, bool)
  85. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  86. Neck.C0 = clerp(Neck.C0, table[2], speed)
  87. RW.C0 = clerp(RW.C0, table[3], speed)
  88. LW.C0 = clerp(LW.C0, table[4], speed)
  89. RH.C0 = clerp(RH.C0, table[5], speed)
  90. LH.C0 = clerp(LH.C0, table[6], speed)
  91. if bool == true then
  92. if resetc1 == false then
  93. resetc1 = true
  94. RootJoint.C1 = RootJoint.C1
  95. Neck.C1 = Neck.C1
  96. RW.C1 = rarmc1
  97. LW.C1 = larmc1
  98. RH.C1 = rlegc1
  99. LH.C1 = llegc1
  100. end
  101. end
  102. end
  103.  
  104. function so(id,par,pit,vol)
  105. local sou = Instance.new("Sound", par or workspace)
  106. if par == chara then
  107. sou.Parent = chara.Torso
  108. end
  109. sou.Volume = vol
  110. sou.Pitch = pit or 1
  111. sou.SoundId = "rbxassetid://" .. id
  112. sou.PlayOnRemove = true
  113. sou:Destroy()
  114. end
  115.  
  116. --This is just for builds--
  117. New = function(Object, Parent, Name, Data)
  118. local Object = Instance.new(Object)
  119. for Index, Value in pairs(Data or {}) do
  120. Object[Index] = Value
  121. end
  122. Object.Parent = Parent
  123. Object.Name = Name
  124. return Object
  125. end
  126.  
  127. for i,v in pairs(chara:children'') do
  128. if v:IsA("CharacterMesh") or v:IsA("Clothing") or v:IsA("Accoutrement") or v:IsA("BodyColors") then v:Destroy() end
  129. end
  130.  
  131. local sh = Instance.new("Shirt",chara)
  132. local pn = Instance.new("Pants",chara)
  133. sh.ShirtTemplate = "rbxassetid://17799754"
  134. pn.PantsTemplate = "rbxassetid://21172424"
  135. if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end
  136.  
  137. skincol = {"Bright yellow","Cool yellow","Pastel yellow","Pastel brown","Br. yellowish orange","White","Bright violet","Medium green","Medium stone grey","Dark stone grey"}
  138.  
  139. FHead = New("Part",chara,"FHead",{BrickColor = BrickColor.new(skincol[math.random(1,#skincol)]),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.5999999, 1.29999995, 1.29999995),CFrame = CFrame.new(18.8000259, 5.85002184, -11.199934, -1, 0, 0, 0, 0.999997139, -9.36714151e-10, 0, -9.36711486e-10, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  140. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  141. Decal = New("Decal",FHead,"Decal",{Texture = "http://www.roblox.com/asset/?id=46078492",})
  142. Weld = New("ManualWeld",FHead,"Weld",{Part0 = FHead,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),})
  143.  
  144. Head:ClearAllChildren()
  145. Instance.new("BlockMesh",Head).Scale = Vector3.new(0,0,0)
  146.  
  147. local hedcol = FHead.BrickColor
  148. local bcols = Instance.new("BodyColors",chara)
  149. bcols.Name = "NeoCols"
  150. bcols.HeadColor = hedcol
  151. bcols.LeftArmColor = hedcol
  152. bcols.RightArmColor = hedcol
  153. bcols.TorsoColor = hedcol
  154. bcols.LeftLegColor = hedcol
  155. bcols.RightLegColor = hedcol
  156.  
  157. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  158. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  159. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  160. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  161. return TEff
  162. end
  163.  
  164. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  165. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  166. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  167. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  168.  
  169.  
  170. function rayCast(Position, Direction, Range, Ignore)
  171. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  172. end
  173.  
  174. function FindNearestTorso(Position, Distance, SinglePlayer)
  175. if SinglePlayer then
  176. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  177. end
  178. local List = {}
  179. for i, v in pairs(workspace:GetDescendants()) do
  180. if v:IsA("Model") then
  181. if v:findFirstChild("Head") then
  182. if v ~= chara then
  183. if (v.Head.Position - Position).magnitude <= Distance then
  184. table.insert(List, v)
  185. end
  186. end
  187. end
  188. end
  189. end
  190. return List
  191. end
  192.  
  193. ArtificialHB = Instance.new("BindableEvent", script)
  194. ArtificialHB.Name = "Heartbeat"
  195. script:waitForChild("Heartbeat")
  196. frame = 0.03333333333333
  197. tf = 0
  198. allowframeloss = false
  199. tossremainder = false
  200. lastframe = tick()
  201. script.Heartbeat:Fire()
  202. game:GetService("RunService").Heartbeat:connect(function(s, p)
  203. tf = tf + s
  204. if tf >= frame then
  205. if allowframeloss then
  206. script.Heartbeat:Fire()
  207. lastframe = tick()
  208. else
  209. for i = 1, math.floor(tf / frame) do
  210. script.Heartbeat:Fire()
  211. end
  212. lastframe = tick()
  213. end
  214. if tossremainder then
  215. tf = 0
  216. else
  217. tf = tf - frame * math.floor(tf / frame)
  218. end
  219. end
  220. end)
  221. function swait(num)
  222. if num == 0 or num == nil then
  223. ArtificialHB.Event:wait()
  224. else
  225. for i = 0, num*30 do
  226. ArtificialHB.Event:wait()
  227. end
  228. end
  229. end
  230.  
  231. EffectModel = Create("Model"){
  232. Parent = chara,
  233. Name = "Effects",
  234. }
  235.  
  236. --Effect Functions--
  237. Effects = {
  238.  
  239. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  240. local p = Instance.new("Part",EffectModel)
  241. p.BrickColor = BrickColor.new(colour)
  242. p.Size = partsize
  243. p.Anchored = true
  244. p.CanCollide = false
  245. p.Material = matr
  246. p.CFrame = cf
  247. if inverse == true then
  248. p.Transparency = 1
  249. else
  250. p.Transparency = 0
  251. end
  252. local m = Instance.new("BlockMesh",p)
  253. m.Scale = meshstart
  254. coroutine.wrap(function()
  255. for i=0,1,factor do
  256. swait()
  257. if inverse == true then
  258. p.Transparency = 1-i
  259. else
  260. p.Transparency = i
  261. end
  262. m.Scale = m.Scale + meshadd
  263. if spin == true then
  264. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  265. end
  266. end
  267. p:Destroy()
  268. end)()
  269. return p
  270. end,
  271.  
  272. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  273. local p = Instance.new("Part",EffectModel)
  274. p.BrickColor = BrickColor.new(colour)
  275. p.Size = partsize
  276. p.Anchored = true
  277. p.CanCollide = false
  278. p.Material = matr
  279. p.CFrame = cf
  280. if inverse == true then
  281. p.Transparency = 1
  282. else
  283. p.Transparency = 0
  284. end
  285. local m = Instance.new("SpecialMesh",p)
  286. m.MeshType = "Sphere"
  287. m.Scale = meshstart
  288. coroutine.wrap(function()
  289. for i=0,1,factor do
  290. swait()
  291. if inverse == true then
  292. p.Transparency = 1-i
  293. else
  294. p.Transparency = i
  295. end
  296. m.Scale = m.Scale + meshadd
  297. end
  298. p:Destroy()
  299. end)()
  300. return p
  301. end,
  302.  
  303. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  304. local p = Instance.new("Part",EffectModel)
  305. p.BrickColor = BrickColor.new(colour)
  306. p.Size = partsize
  307. p.Anchored = true
  308. p.CanCollide = false
  309. p.Material = matr
  310. p.CFrame = cf
  311. if inverse == true then
  312. p.Transparency = 1
  313. else
  314. p.Transparency = 0
  315. end
  316. local m = Instance.new("CylinderMesh",p)
  317. m.Scale = meshstart
  318. coroutine.wrap(function()
  319. for i=0,1,factor do
  320. swait()
  321. if inverse == true then
  322. p.Transparency = 1-i
  323. else
  324. p.Transparency = i
  325. end
  326. m.Scale = m.Scale + meshadd
  327. end
  328. p:Destroy()
  329. end)()
  330. return p
  331. end,
  332.  
  333. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  334. local p = Instance.new("Part",EffectModel)
  335. p.BrickColor = BrickColor.new(colour)
  336. p.Size = Vector3.new()
  337. p.Anchored = true
  338. p.CanCollide = false
  339. p.CFrame = cf
  340. if inverse == true then
  341. p.Transparency = 1
  342. else
  343. p.Transparency = 0
  344. end
  345. local m = Instance.new("SpecialMesh",p)
  346. m.MeshId = "rbxassetid://20329976"
  347. m.Scale = meshstart
  348. coroutine.wrap(function()
  349. for i=0,1,factor do
  350. swait()
  351. if inverse == true then
  352. p.Transparency = 1-i
  353. else
  354. p.Transparency = i
  355. end
  356. m.Scale = m.Scale + meshadd
  357. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  358. end
  359. p:Destroy()
  360. end)()
  361. return p
  362. end,
  363.  
  364. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  365. local p = Instance.new("Part",EffectModel)
  366. p.BrickColor = BrickColor.new(colour)
  367. p.Size = Vector3.new()
  368. p.Anchored = true
  369. p.CanCollide = false
  370. p.CFrame = cf
  371. if inverse == true then
  372. p.Transparency = 1
  373. else
  374. p.Transparency = 0
  375. end
  376. local m = Instance.new("SpecialMesh",p)
  377. m.MeshId = "rbxassetid://3270017"
  378. m.Scale = meshstart
  379. coroutine.wrap(function()
  380. for i=0,1,factor do
  381. swait()
  382. if inverse == true then
  383. p.Transparency = 1-i
  384. else
  385. p.Transparency = i
  386. end
  387. m.Scale = m.Scale + meshadd
  388. end
  389. p:Destroy()
  390. end)()
  391. return p
  392. end,
  393.  
  394. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  395. local p = Instance.new("Part",EffectModel)
  396. p.BrickColor = BrickColor.new(colour)
  397. p.Size = Vector3.new()
  398. p.Anchored = true
  399. p.CanCollide = false
  400. p.CFrame = cf
  401. if inverse == true then
  402. p.Transparency = 1
  403. else
  404. p.Transparency = 0
  405. end
  406. local m = Instance.new("SpecialMesh",p)
  407. m.MeshId = meshid
  408. m.TextureId = textid
  409. m.Scale = meshstart
  410. coroutine.wrap(function()
  411. for i=0,1,factor do
  412. swait()
  413. if inverse == true then
  414. p.Transparency = 1-i
  415. else
  416. p.Transparency = i
  417. end
  418. m.Scale = m.Scale + meshadd
  419. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  420. end
  421. p:Destroy()
  422. end)()
  423. return p
  424. end,
  425.  
  426. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  427. local p = Instance.new("Part",EffectModel)
  428. p.BrickColor = BrickColor.new(colour)
  429. p.Size = partsize
  430. p.Anchored = true
  431. p.CanCollide = false
  432. p.Material = matr
  433. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  434. if inverse == true then
  435. p.Transparency = 1
  436. else
  437. p.Transparency = 0
  438. end
  439. local m = Instance.new("SpecialMesh",p)
  440. m.MeshType = "Sphere"
  441. m.Scale = meshstart
  442. coroutine.wrap(function()
  443. for i=0,1,factor do
  444. swait()
  445. if inverse == true then
  446. p.Transparency = 1-i
  447. else
  448. p.Transparency = i
  449. end
  450. m.Scale = m.Scale + meshadd
  451. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  452. end
  453. p:Destroy()
  454. end)()
  455. return p
  456. end,
  457.  
  458. }
  459.  
  460. function GetDudesTorso(c)
  461. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  462. if torsy ~= nil then
  463. return torsy
  464. end
  465. end
  466.  
  467. function BodyVel(part,faws)
  468. local bodyvel = Instance.new("BodyVelocity",part)
  469. local pep = 10000000
  470. bodyvel.P = pep
  471. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  472. bodyvel.Velocity = faws
  473. debby:AddItem(bodyvel,.2)
  474. end
  475.  
  476. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  477. if dude and dude ~= chara then
  478. if dude:FindFirstChild("HITO") then return end
  479. local debounce = Instance.new("BoolValue",dude)
  480. debounce.Name = "HITO"
  481. debby:AddItem(debounce,toim)
  482. local hum = dude:FindFirstChildOfClass("Humanoid")
  483. local dam = dmg+math.random(-env,env)
  484. local teksu = "-"..dam
  485. if hum then
  486. local finhel = hum.Health - dam
  487. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  488. Instance.new("BoolValue",dude).Name = "DEATHED"
  489. end
  490. hum.Health = hum.Health - dam
  491. end
  492. coroutine.wrap(function()
  493. local naeeym2 = Instance.new("BillboardGui",dude)
  494. naeeym2.Size = UDim2.new(0,100,0,40)
  495. naeeym2.StudsOffset = Vector3.new(0,3,0)
  496. naeeym2.Adornee = dude:FindFirstChild("Head")
  497. naeeym2.Name = "TalkingBillBoard"
  498. local tecks2 = Instance.new("TextLabel",naeeym2)
  499. tecks2.BackgroundTransparency = 1
  500. tecks2.BorderSizePixel = 0
  501. tecks2.Text = teksu
  502. tecks2.Font = "Fantasy"
  503. tecks2.TextSize = 24
  504. tecks2.TextStrokeTransparency = 0
  505. tecks2.TextColor3 = Color3.new(1,1,1)
  506. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  507. tecks2.Size = UDim2.new(1,0,0.5,0)
  508. swait(.2)
  509. for i = 0,1,.05 do
  510. swait()
  511. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  512. tecks2.TextStrokeTransparency = i
  513. tecks2.TextTransparency = i
  514. end
  515. naeeym2:Destroy()
  516. end)()
  517. local torsy = GetDudesTorso(dude)
  518. if torsy then
  519. for i=1,dam/5 do
  520. local blp = Instance.new("Part",EffectModel)
  521. blp.Size = Vector3.new(.3,.3,.3)
  522. blp.BrickColor = BrickColor.new("Crimson")
  523. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  524. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  525. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  526. --local blm = Instance.new("SpecialMesh",blp)
  527. --blm.MeshType = "Sphere"
  528. coroutine.wrap(function()
  529. swait(.2)
  530. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  531. for i=0,1,.1 do
  532. swait()
  533. blp.Transparency = i
  534. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  535. end
  536. blp:Destroy()
  537. end)()
  538. end
  539. if efftyp == "Blunt" then
  540. puncheff(torsy)
  541. elseif efftyp == "Sharp" then
  542. slasheff(torsy)
  543. elseif efftyp == "Shot" then
  544. so(144884872,torsy,.9,1)
  545. end
  546. if faws ~= 0 then
  547. BodyVel(torsy,faws)
  548. end
  549. if trip == true then
  550. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  551. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  552. end
  553. end
  554. end
  555. end
  556.  
  557. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  558. for _, c in pairs(workspace:GetDescendants()) do
  559. local hum = c:FindFirstChildOfClass("Humanoid")
  560. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  561. local head = GetDudesTorso(c)
  562. if head ~= nil then
  563. local targ = head.Position - par.Position
  564. local mag = targ.magnitude
  565. if magni >= mag and c ~= chara then
  566. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  567. end
  568. end
  569. end
  570. end
  571. end
  572.  
  573. function CamShake(par,magni,env,dur)
  574. coroutine.wrap(function()
  575. for i=0,dur*60 do
  576. swait()
  577. Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  578. end
  579. Humanoid.CameraOffset = Vector3.new(0,0,0)
  580. end)()
  581. end
  582.  
  583. function puncheff(par)
  584. if par.Parent:FindFirstChild("DebounceHit")==nil then
  585. so(386946017,par,math.random(6,8)/10,1)
  586. local bla = Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(1,1,1),"Neon","White",false,.1)
  587. CamShake(bla,30,.5,.5)
  588. end
  589. end
  590.  
  591. function slasheff(par)
  592. if par.Parent:FindFirstChild("DebounceHit")==nil then
  593. local cho = math.random(1,3)
  594. if cho == 1 then
  595. so(444667824,par,1,1)
  596. elseif cho == 2 then
  597. so(444667844,par,1,1)
  598. elseif cho == 3 then
  599. so(444667859,par,1,1)
  600. end
  601. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  602. Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1)
  603. end
  604. end
  605.  
  606. function attackone()
  607. attack = true
  608. Humanoid.WalkSpeed = 10
  609. for i=0,2,.1 do
  610. swait()
  611. PlayAnimationFromTable({
  612. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  613. CFrame.new(-0.0638873279, 2.01559806, -0.402032375, 0.492402941, -0.214610398, 0.84349376, -0.173647985, 0.925416708, 0.336823881, -0.852869213, -0.312324047, 0.418411195),
  614. CFrame.new(1.10928118, 0.356215954, -1.26063514, 0.766042948, 0.642789483, 0, 0, 0, -1, -0.642789423, 0.766042948, 0),
  615. CFrame.new(-1.95000088, -9.79751348e-07, 8.32974911e-06, 0.766044021, 0.633022547, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.49011612e-07, 0.173648953, 0.984807789),
  616. CFrame.new(0.650009155, -2.5999999, -1.52587891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  617. CFrame.new(-0.650007129, -2.5999999, 1.07288361e-05, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  618. }, .3, false)
  619. end
  620. RATr.Enabled = true
  621. so(487907203,Head,1,3)
  622. so(200632136,RightArm,.6,1)
  623. Humanoid.WalkSpeed = 0
  624. BodyVel(RootPart,RootPart.CFrame.lookVector*70)
  625. for i=0,1,.1 do
  626. swait()
  627. PlayAnimationFromTable({
  628. CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688),
  629. CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795),
  630. CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785),
  631. CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491),
  632. CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297),
  633. CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1),
  634. }, .3, false)
  635. MagnitudeDmg(RightArm,2.5,40,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  636. end
  637. swait(.5)
  638. Humanoid.WalkSpeed = 16
  639. RATr.Enabled = false
  640. attack = false
  641. end
  642.  
  643. function dashattack()
  644. attack = true
  645. Humanoid.WalkSpeed = 2
  646. so(487911937,Head,1,3)
  647. for i=0,2,.1 do
  648. swait()
  649. PlayAnimationFromTable({
  650. CFrame.new(0, -0.260801345, 0.37769106, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  651. CFrame.new(0, 1.88156867, 0.187936544, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438),
  652. CFrame.new(2.54999161, 0.600001335, 9.71555778e-07, 0, -1, 0, 1, 0, 2.98023224e-08, 2.98023224e-08, 0, 1),
  653. CFrame.new(-2.54999542, 0.599999964, 3.99351336e-07, 0, 1, 0, -1.00000012, 0, 9.83476639e-07, 9.23871994e-07, 0, 1.00000012),
  654. CFrame.new(0.649994314, -2.32730556, 0.445138514, 0.939692736, 0, -0.342019886, 0.116977625, 0.939692736, 0.321393639, 0.321393639, -0.342019886, 0.883022428),
  655. CFrame.new(-0.649998546, -2.32730579, 0.445138097, 0.939692736, 0, 0.342019886, -0.116977625, 0.939692736, 0.321393639, -0.321393639, -0.342019886, 0.883022428),
  656. }, .4, false)
  657. end
  658. RATr.Enabled = true
  659. Humanoid.WalkSpeed = 0
  660. local bodyvel = Instance.new("BodyVelocity",RootPart)
  661. local pep = 10000000
  662. bodyvel.P = pep
  663. bodyvel.MaxForce = Vector3.new(pep,0,pep)
  664. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  665. local dasu = 0
  666. local par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara)
  667. repeat
  668. dasu = dasu + 1
  669. par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara)
  670. so(10730819,Torso,1,2)
  671. CamShake(Torso,60,.4,.1)
  672. swait()
  673. Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05)
  674. PlayAnimationFromTable({
  675. CFrame.new(-0.11852926, -0.0870857984, -0.16250591, 0.499998987, 0.433013916, -0.75, 0, 0.866024852, 0.500001073, 0.866025984, -0.25000003, 0.433011562),
  676. CFrame.new(1.67643725e-06, 1.94997621, -1.7765941e-06, 0.866025209, -8.34465027e-07, 0.500000358, 7.30156898e-07, 1.00000012, 3.57627869e-07, -0.500000417, 6.70552254e-08, 0.866025209),
  677. CFrame.new(2.30981135, 0.0232107639, -1.46663569e-05, 0.499999255, -0.866025925, 3.06963921e-06, 0.866025925, 0.499999285, -2.25007534e-06, 4.17232513e-07, 3.78489494e-06, 1),
  678. CFrame.new(-0.942220747, 0.533102334, -1.07246113, 0.173649132, -0.63302058, 0.754407704, 0.98480767, 0.11162056, -0.1330221, -1.62422657e-06, 0.76604557, 0.642786443),
  679. CFrame.new(0.650001526, -2.59999871, -7.62939544e-06, 1, 0, 2.98023224e-08, 0, 1.00000012, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1.00000012),
  680. CFrame.new(-0.957818449, -2.31074858, -0.794715047, 0.939692378, 1.1920929e-07, 0.342020839, 0.116977721, 0.939692855, -0.321393222, -0.321394473, 0.342019558, 0.883022189),
  681. }, .4, false)
  682. MagnitudeDmg(Torso,6,30,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  683. until par ~= nil or dasu >= 100
  684. bodyvel:Destroy()
  685. Humanoid.WalkSpeed = 16
  686. RATr.Enabled = false
  687. attack = false
  688. end
  689.  
  690. function thesurou()
  691. attack = true
  692. Humanoid.WalkSpeed = 0
  693. local grab = nil
  694. local torsy = nil
  695. local hum = nil
  696. for i, v in pairs(FindNearestTorso(Torso.Position, 6)) do
  697. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  698. hum = v:FindFirstChildOfClass("Humanoid")
  699. torsy = GetDudesTorso(v)
  700. grab = v
  701. end
  702. end
  703. so(200632136,RootPart,.8,1)
  704. for i = 0,1,.1 do
  705. swait()
  706. PlayAnimationFromTable({
  707. CFrame.new(0, -0.160800725, -0.377691686, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  708. CFrame.new(0, 2.01372528, -0.214328468, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  709. CFrame.new(1.30359828, 0.346287906, -1.12627494, 0.866025269, 0.500000358, -4.18942193e-07, -0.0868241489, 0.150382817, -0.984807909, -0.492404312, 0.852868497, 0.173647434),
  710. CFrame.new(-1.30359876, 0.346286833, -1.12628198, 0.866025269, -0.500000358, 4.18942193e-07, 0.0868241489, 0.150382817, -0.984807909, 0.492404312, 0.852868497, 0.173647434),
  711. CFrame.new(0.65000087, -2.4212749, -0.479339659, 0.984807849, 0, -0.173647985, -0.0593910702, 0.939692736, -0.33682391, 0.163175747, 0.342019886, 0.925416768),
  712. CFrame.new(-0.649993539, -2.42127419, -0.479341805, 0.984807849, 0, 0.173647985, 0.0593910702, 0.939692736, -0.33682391, -0.163175747, 0.342019886, 0.925416768),
  713. }, .3, false)
  714. end
  715. if grab ~= nil and torsy ~= nil then
  716. so(487911937,Head,1,3)
  717. so(240429615,torsy,1,1)
  718. for i = 0,1,.1 do
  719. swait()
  720. PlayAnimationFromTable({
  721. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  722. CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648),
  723. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  724. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  725. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  726. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  727. }, .3, false)
  728. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  729. hum.PlatformStand = true
  730. torsy.Velocity = Vector3.new()
  731. end
  732. for a=1,3 do
  733. for i = 0,1,.1 do
  734. swait()
  735. PlayAnimationFromTable({
  736. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  737. CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648),
  738. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  739. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  740. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  741. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  742. }, .3, false)
  743. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  744. hum.PlatformStand = true
  745. torsy.Velocity = Vector3.new()
  746. end
  747. so(200632136,RootPart,.9,1)
  748. for i = 0,1,.2 do
  749. swait()
  750. PlayAnimationFromTable({
  751. CFrame.new(-0.102054864, -0.932198167, 9.983778e-07, 0, 0.766044974, -0.64278698, 0, 0.64278698, 0.766044974, 1, 0, 0),
  752. CFrame.new(0, 1.94997787, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  753. CFrame.new(1.70003557, 0.647316098, -1.51024413, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831),
  754. CFrame.new(-1.95000505, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  755. CFrame.new(0.650000989, -0.993868172, -1.34321105, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698),
  756. CFrame.new(-0.650000989, -2.59999466, 7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  757. }, .4, false)
  758. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  759. hum.PlatformStand = true
  760. torsy.Velocity = Vector3.new()
  761. end
  762. puncheff(torsy)
  763. for i = 0,1,.1 do
  764. swait()
  765. PlayAnimationFromTable({
  766. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  767. CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648),
  768. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  769. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  770. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  771. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  772. }, .3, false)
  773. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  774. hum.PlatformStand = true
  775. torsy.Velocity = Vector3.new()
  776. end
  777. so(200632136,RootPart,.9,1)
  778. for i = 0,1,.2 do
  779. swait()
  780. PlayAnimationFromTable({
  781. CFrame.new(0.102049023, -0.932193279, 0, 0, -0.766044974, 0.64278698, 0, 0.64278698, 0.766044974, -1, 0, 0),
  782. CFrame.new(0, 1.94997406, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  783. CFrame.new(1.70003128, 0.647328019, -1.51025343, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831),
  784. CFrame.new(-1.95000458, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  785. CFrame.new(0.650002003, -0.993867934, -1.34321058, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698),
  786. CFrame.new(-0.650001049, -2.60001373, 1.14440918e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  787. }, .4, false)
  788. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  789. hum.PlatformStand = true
  790. torsy.Velocity = Vector3.new()
  791. end
  792. puncheff(torsy)
  793. end
  794. so(200632136,RootPart,.9,1)
  795. for i = 0,1,.1 do
  796. swait()
  797. PlayAnimationFromTable({
  798. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  799. CFrame.new(0.0492400974, 1.93260896, -0.0852866173, 0.492402941, 0.0868238136, 0.866025984, -0.173647985, 0.984807849, 0, -0.852869213, -0.150383666, 0.499998987),
  800. CFrame.new(2.25130796, 1.15621161, -0.521879852, 0.866025984, -0.43301183, 0.249999613, 0, -0.500000238, -0.866025388, 0.499998987, 0.750000477, -0.433013201),
  801. CFrame.new(-1.95000482, 3.33413482e-07, 2.38418579e-07, 0.76604408, 0.633022606, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.78813934e-07, 0.173648968, 0.98480773),
  802. CFrame.new(0.650005341, -2.5999999, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  803. CFrame.new(-0.650006175, -2.5999999, 2.44379044e-06, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  804. }, .4, false)
  805. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  806. hum.PlatformStand = true
  807. torsy.Velocity = Vector3.new()
  808. end
  809. local pato = Instance.new("Part",torsy)
  810. pato.CFrame = torsy.CFrame
  811. pato.Size = Vector3.new(4.1,6.1,1.1)
  812. pato.Transparency = 1
  813. pato.CanCollide = false
  814. pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  815. local werudo = Instance.new("Weld",pato)
  816. werudo.Part0 = pato
  817. werudo.Part1 = torsy
  818. torsy.Velocity = RootPart.CFrame.lookVector*150+Vector3.new(0,30,0)
  819. torsy.RotVelocity = Vector3.new(10,10,10)
  820. pato.Touched:connect(function(hit)
  821. if hit:IsDescendantOf(chara)==false then
  822. pato:Destroy()
  823. Dmg(grab,70,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3)
  824. so(260430079,torsy,1,5)
  825. MagnitudeDmg(torsy,6,40,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  826. end
  827. end)
  828. so(200632136,RootPart,.8,1)
  829. for i = 0,2,.1 do
  830. swait()
  831. PlayAnimationFromTable({
  832. CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688),
  833. CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795),
  834. CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785),
  835. CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491),
  836. CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297),
  837. CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1),
  838. }, .3, false)
  839. end
  840. end
  841. attack = false
  842. Humanoid.WalkSpeed = 8
  843. end
  844.  
  845. Mouse.Button1Down:connect(function()
  846. if attack == false then
  847. attackone()
  848. end
  849. end)
  850.  
  851. local mus = Instance.new("Sound",Head)
  852. mus.Name = "mus"
  853. mus.SoundId = "rbxassetid://318340174"
  854. mus.Looped = true
  855. mus.Volume = 1
  856. mus:Play()
  857.  
  858. local sprintt = 0
  859.  
  860. Mouse.KeyDown:connect(function(k)
  861. k = k:lower()
  862. if k=='m' then
  863. if mus.IsPlaying == true then
  864. mus:Stop()
  865. elseif mus.IsPaused == true then
  866. mus:Play()
  867. end
  868. end
  869. if attack == false then
  870. if k == 'z' then
  871. thesurou()
  872. elseif k == 'x' then
  873. dashattack()
  874. end
  875. end
  876. end)
  877.  
  878. prevhp = 800
  879. Humanoid.HealthChanged:connect(function(hp)
  880. if hp < prevhp then
  881. local cho = math.random(1,5)
  882. local s = Instance.new("Sound",Head)
  883. if cho == 1 then
  884. so(480392869,Head,1,3)
  885. elseif cho == 2 then
  886. so(480392949,Head,1,3)
  887. elseif cho == 3 then
  888. so(480394663,Head,1,3)
  889. elseif cho == 4 then
  890. so(480394802,Head,1,3)
  891. elseif cho == 5 then
  892. so(480394542,Head,1,3)
  893. end
  894. end
  895. prevhp = hp
  896. end)
  897.  
  898. local soundIds = {142539074, 487912030, 487911937}
  899. coroutine.wrap(function()
  900. while wait(math.random(25,30)/10) do
  901. if Humanoid.Health > 1 and attack == false then
  902. so(soundIds[math.random(1,3)],Head,1,3)
  903. end
  904. end
  905. end)()
  906.  
  907. Humanoid.Died:connect(function()
  908. mus:Stop()
  909. so(487907155,Head,1,3)
  910. swait(5)
  911. for i = 1,10 do
  912. swait()
  913. for i,v in pairs(chara:GetDescendants()) do
  914. if v:IsA("BasePart") then
  915. v.Transparency = v.Transparency + .1
  916. end
  917. end
  918. end
  919. chara:Destroy()
  920. end)
  921.  
  922. coroutine.wrap(function()
  923. while 1 do
  924. swait()
  925. if doe <= 360 then
  926. doe = doe + 2
  927. else
  928. doe = 0
  929. end
  930. end
  931. end)()
  932.  
  933. while true do
  934. swait()
  935. while true do
  936. swait()
  937. if Head:FindFirstChild("mus")==nil then
  938. local mus = Instance.new("Sound",Head)
  939. mus.Name = "mus"
  940. mus.SoundId = "rbxassetid://318340174"
  941. mus.Looped = true
  942. mus.Volume = 1
  943. mus:Play()
  944. end
  945. local ss = Humanoid:GetState()
  946. if ss == (Enum.HumanoidStateType.FallingDown or ss == Enum.HumanoidStateType.PlatformStanding) then
  947. Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  948. end
  949. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  950. velocity = RootPart.Velocity.y
  951. sine = sine + change
  952. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 5.3, chara)
  953. if RootPart.Velocity.y > 1 and hit == nil then
  954. Anim = "Jump"
  955. if attack == false then
  956. PlayAnimationFromTable({
  957. CFrame.new(0, 0.0740167201, -0.180228189, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  958. CFrame.new(0, 2.03109002, -0.115844816, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  959. CFrame.new(1.47152913, -0.278083742, 0.397592455, 0.939692855, 0.342019439, -3.31528156e-08, -0.321393043, 0.883022368, 0.34202078, 0.116977774, -0.321394503, 0.939692497),
  960. CFrame.new(-1.47150564, -0.27808097, 0.397592992, 0.939692855, -0.342019439, 3.31528156e-08, 0.321393043, 0.883022368, 0.34202078, -0.116977774, -0.321394503, 0.939692497),
  961. CFrame.new(0.650001526, -1.19999599, -0.600000799, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  962. CFrame.new(-0.649993896, -2.59999466, 5.54323037e-07, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  963. }, .3, false)
  964. end
  965. elseif RootPart.Velocity.y < -1 and hit == nil then
  966. Anim = "Fall"
  967. if attack == false then
  968. PlayAnimationFromTable({
  969. CFrame.new(0, -0.133714333, 0.15832366, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  970. CFrame.new(0, 2.05995607, -0.632082939, 1, 0, 0, 0, 0.766044796, 0.642787218, 0, -0.642787218, 0.766044855),
  971. CFrame.new(2.25642705, 0.257112086, -3.82667531e-06, 0.766044319, -0.642787933, -2.9919768e-08, 0.642787993, 0.766044319, 3.87430191e-07, -1.93715096e-07, -2.83122063e-07, 1),
  972. CFrame.new(-2.25643301, 0.257116973, 9.41694736e-07, 0.766044319, 0.642787933, 2.9919768e-08, -0.642787993, 0.766044319, 3.87430191e-07, 1.93715096e-07, -2.83122063e-07, 1),
  973. CFrame.new(0.649993896, -1.3999939, -0.600004256, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  974. CFrame.new(-0.650001526, -2.59999371, -3.89218303e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  975. }, .3, false)
  976. end
  977. elseif Torsovelocity < 1 and hit ~= nil then
  978. Anim = "Idle"
  979. if attack == false then
  980. change = 1
  981. PlayAnimationFromTable({
  982. CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.05 * math.cos((sine)/5), 0),
  983. CFrame.new(0.0984803587, 1.91524398, -0.170572892, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617),
  984. CFrame.new(1.98214447, 0.0342020541, -0.0883011818, 0.939692676, -0.116977856, -0.321394205, 0, 0.939692736, -0.342019945, 0.342020601, 0.321393609, 0.883022249),
  985. CFrame.new(-1.51237798, -0.128823012, -0.775815547, 0.766044199, -0.642788053, -3.87430191e-07, 0.413175076, 0.492402881, -0.76604563, 0.492405087, 0.586824656, 0.642786384),
  986. CFrame.new(0.649999857, -2.5999999, -8.64267349e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388) * CFrame.new(0,-.05 * math.cos((sine)/5), 0),
  987. CFrame.new(-0.64999789, -2.5999999, -9.53674544e-07, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.05 * math.cos((sine)/5), 0),
  988. }, .3, false)
  989. end
  990. elseif Torsovelocity > 2 and hit ~= nil then
  991. Anim = "Walk"
  992. if attack == false then
  993. Humanoid.WalkSpeed = 16
  994. Humanoid.JumpPower = 80
  995. PlayAnimationFromTable({
  996. CFrame.new(0, 0.0098747462, -0.187130988, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.Angles(0, math.rad(0 + 10 * math.cos((sine) / 5)), 0),
  997. CFrame.new(0, 2.01372552, -0.214327857, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849),
  998. CFrame.new(1.94397354, -0.115067676, -0.230779886, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  999. CFrame.new(-1.95000458, -0.0637510419, -0.214326635, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1000. CFrame.new(0.649997711, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0+ .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  1001. CFrame.new(-0.650001526, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0- .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  1002. }, .3, false)
  1003. end
  1004. end
  1005. end
  1006. end
Add Comment
Please, Sign In to add comment