Advertisement
DoggoClan

Nightmare

Jun 2nd, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.90 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "SciFi"
  17. text.TextStrokeColor3 = Color3.new(1,0,0)
  18. text.TextColor3 = Color3.new(1,0,0)
  19. text.Text = "Nightmare"
  20.  
  21.  
  22.  
  23. -------------
  24. --Nightmare--
  25. ----------------------------------------------------------------
  26. --By ZAKD211006 (DonutDoggo) -- --
  27. ----------------------------------------------------------------
  28.  
  29. wait(.1)
  30. local Player = game:service'Players'.LocalPlayer
  31. local chara = Player.Character
  32. local Mouse = Player:GetMouse()
  33. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  34. local LeftArm = chara["Left Arm"]
  35. local RightArm = chara["Right Arm"]
  36. local LeftLeg = chara["Left Leg"]
  37. local RightLeg = chara["Right Leg"]
  38. local Head = chara.Head
  39. local Torso = chara.Torso
  40. local RootPart = chara.HumanoidRootPart
  41. local RootJoint = RootPart.RootJoint
  42. local attack = false
  43. local Anim = 'Idle'
  44. local attacktype = 1
  45. local delays = false
  46. local play = true
  47. local targetted = nil
  48. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  49. local velocity = RootPart.Velocity.y
  50. local sine = 0
  51. local change = 1
  52. local doe = 0
  53. local Create = LoadLibrary("RbxUtility").Create
  54. Humanoid.WalkSpeed = 16
  55. debby = game:GetService("Debris")
  56.  
  57. Humanoid.MaxHealth = 800
  58. Humanoid.Health = 800
  59.  
  60. Humanoid.Animator.Parent = nil
  61. chara.Animate.Parent = nil
  62.  
  63.  
  64. local newMotor = function(part0, part1, c0, c1)
  65. local w = Create('Motor'){
  66. Parent = part0,
  67. Part0 = part0,
  68. Part1 = part1,
  69. C0 = c0,
  70. C1 = c1,
  71. }
  72. return w
  73. end
  74.  
  75. function clerp(a, b, t)
  76. return a:lerp(b, t)
  77. end
  78.  
  79. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  80. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  81.  
  82. LeftArm.Size = LeftArm.Size * 1.3
  83. RightArm.Size = RightArm.Size * 1.3
  84. LeftLeg.Size = LeftLeg.Size * 1.3
  85. RightLeg.Size = RightLeg.Size * 1.3
  86. Torso.Size = Torso.Size * 1.3
  87. Head.Size = Head.Size * 1.3
  88. RootPart.Size = RootPart.Size * 1.3
  89.  
  90. local RW = newMotor(Torso, RightArm, CFrame.new(1.95, 0, 0), CFrame.new(0, 0, 0))
  91. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.95, 0, 0), CFrame.new(0, 0, 0))
  92. local Neck = newMotor(Torso, Head, CFrame.new(0,1.95,0), CFrame.new())
  93. local RH = newMotor(Torso, RightLeg, CFrame.new(.65, -2.6, 0), CFrame.new(0, 0, 0))
  94. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.65, -2.6, 0), CFrame.new(0, 0, 0))
  95. local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-1.3,0), CFrame.new(0,0,0))
  96.  
  97. local rarmc1 = RW.C1
  98. local larmc1 = LW.C1
  99. local rlegc1 = RH.C1
  100. local llegc1 = LH.C1
  101.  
  102. local resetc1 = false
  103.  
  104. function PlayAnimationFromTable(table, speed, bool)
  105. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  106. Neck.C0 = clerp(Neck.C0, table[2], speed)
  107. RW.C0 = clerp(RW.C0, table[3], speed)
  108. LW.C0 = clerp(LW.C0, table[4], speed)
  109. RH.C0 = clerp(RH.C0, table[5], speed)
  110. LH.C0 = clerp(LH.C0, table[6], speed)
  111. if bool == true then
  112. if resetc1 == false then
  113. resetc1 = true
  114. RootJoint.C1 = RootJoint.C1
  115. Neck.C1 = Neck.C1
  116. RW.C1 = rarmc1
  117. LW.C1 = larmc1
  118. RH.C1 = rlegc1
  119. LH.C1 = llegc1
  120. end
  121. end
  122. end
  123.  
  124. function so(id,par,pit,vol)
  125. local sou = Instance.new("Sound", par or workspace)
  126. if par == chara then
  127. sou.Parent = chara.Torso
  128. end
  129. sou.Volume = vol
  130. sou.Pitch = pit or 1
  131. sou.SoundId = "rbxassetid://" .. id
  132. sou.PlayOnRemove = true
  133. sou:Destroy()
  134. end
  135.  
  136. --This is just for builds--
  137. New = function(Object, Parent, Name, Data)
  138. local Object = Instance.new(Object)
  139. for Index, Value in pairs(Data or {}) do
  140. Object[Index] = Value
  141. end
  142. Object.Parent = Parent
  143. Object.Name = Name
  144. return Object
  145. end
  146.  
  147. local mus = Instance.new("Sound",Head)
  148. mus.Name = "mus"
  149. mus.SoundId = "rbxassetid://563062677"
  150. mus.Looped = true
  151. mus.Volume = 1
  152. mus:Play()
  153.  
  154. for i,v in pairs(chara:children'') do
  155. if v:IsA("CharacterMesh") or v:IsA("Clothing") or v:IsA("Accoutrement") or v:IsA("BodyColors") then v:Destroy() end
  156. end
  157.  
  158. local sh = Instance.new("Shirt",chara)
  159. local pn = Instance.new("Pants",chara)
  160. sh.ShirtTemplate = ""
  161. pn.PantsTemplate = ""
  162. if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end
  163.  
  164. skincol = {"Really black"}
  165.  
  166. 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,})
  167. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  168. Decal = New("Decal",FHead,"Decal",{Texture = "rbxassetid://127959433",})
  169. 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),})
  170.  
  171. Head:ClearAllChildren()
  172. Instance.new("BlockMesh",Head).Scale = Vector3.new(0,0,0)
  173.  
  174. local hedcol = FHead.BrickColor
  175. local bcols = Instance.new("BodyColors",chara)
  176. bcols.Name = "NeoCols"
  177. bcols.HeadColor = hedcol
  178. bcols.LeftArmColor = hedcol
  179. bcols.RightArmColor = hedcol
  180. bcols.TorsoColor = hedcol
  181. bcols.LeftLegColor = hedcol
  182. bcols.RightLegColor = hedcol
  183.  
  184. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  185. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  186. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  187. 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})
  188. return TEff
  189. end
  190.  
  191. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  192. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  193. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  194. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  195.  
  196.  
  197. function rayCast(Position, Direction, Range, Ignore)
  198. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  199. end
  200.  
  201. function FindNearestTorso(Position, Distance, SinglePlayer)
  202. if SinglePlayer then
  203. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  204. end
  205. local List = {}
  206. for i, v in pairs(workspace:GetDescendants()) do
  207. if v:IsA("Model") then
  208. if v:findFirstChild("Head") then
  209. if v ~= chara then
  210. if (v.Head.Position - Position).magnitude <= Distance then
  211. table.insert(List, v)
  212. end
  213. end
  214. end
  215. end
  216. end
  217. return List
  218. end
  219.  
  220. ArtificialHB = Instance.new("BindableEvent", script)
  221. ArtificialHB.Name = "Heartbeat"
  222. script:waitForChild("Heartbeat")
  223. frame = 0.03333333333333
  224. tf = 0
  225. allowframeloss = false
  226. tossremainder = false
  227. lastframe = tick()
  228. script.Heartbeat:Fire()
  229. game:GetService("RunService").Heartbeat:connect(function(s, p)
  230. tf = tf + s
  231. if tf >= frame then
  232. if allowframeloss then
  233. script.Heartbeat:Fire()
  234. lastframe = tick()
  235. else
  236. for i = 1, math.floor(tf / frame) do
  237. script.Heartbeat:Fire()
  238. end
  239. lastframe = tick()
  240. end
  241. if tossremainder then
  242. tf = 0
  243. else
  244. tf = tf - frame * math.floor(tf / frame)
  245. end
  246. end
  247. end)
  248. function swait(num)
  249. if num == 0 or num == nil then
  250. ArtificialHB.Event:wait()
  251. else
  252. for i = 0, num*30 do
  253. ArtificialHB.Event:wait()
  254. end
  255. end
  256. end
  257.  
  258. EffectModel = Create("Model"){
  259. Parent = chara,
  260. Name = "Effects",
  261. }
  262.  
  263. --Effect Functions--
  264. Effects = {
  265.  
  266. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  267. local p = Instance.new("Part",EffectModel)
  268. p.BrickColor = BrickColor.new(colour)
  269. p.Size = partsize
  270. p.Anchored = true
  271. p.CanCollide = false
  272. p.Material = matr
  273. p.CFrame = cf
  274. if inverse == true then
  275. p.Transparency = 1
  276. else
  277. p.Transparency = 0
  278. end
  279. local m = Instance.new("BlockMesh",p)
  280. m.Scale = meshstart
  281. coroutine.wrap(function()
  282. for i=0,1,factor do
  283. swait()
  284. if inverse == true then
  285. p.Transparency = 1-i
  286. else
  287. p.Transparency = i
  288. end
  289. m.Scale = m.Scale + meshadd
  290. if spin == true then
  291. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  292. end
  293. end
  294. p:Destroy()
  295. end)()
  296. return p
  297. end,
  298.  
  299. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  300. local p = Instance.new("Part",EffectModel)
  301. p.BrickColor = BrickColor.new(colour)
  302. p.Size = partsize
  303. p.Anchored = true
  304. p.CanCollide = false
  305. p.Material = matr
  306. p.CFrame = cf
  307. if inverse == true then
  308. p.Transparency = 1
  309. else
  310. p.Transparency = 0
  311. end
  312. local m = Instance.new("SpecialMesh",p)
  313. m.MeshType = "Sphere"
  314. m.Scale = meshstart
  315. coroutine.wrap(function()
  316. for i=0,1,factor do
  317. swait()
  318. if inverse == true then
  319. p.Transparency = 1-i
  320. else
  321. p.Transparency = i
  322. end
  323. m.Scale = m.Scale + meshadd
  324. end
  325. p:Destroy()
  326. end)()
  327. return p
  328. end,
  329.  
  330. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  331. local p = Instance.new("Part",EffectModel)
  332. p.BrickColor = BrickColor.new(colour)
  333. p.Size = partsize
  334. p.Anchored = true
  335. p.CanCollide = false
  336. p.Material = matr
  337. p.CFrame = cf
  338. if inverse == true then
  339. p.Transparency = 1
  340. else
  341. p.Transparency = 0
  342. end
  343. local m = Instance.new("CylinderMesh",p)
  344. m.Scale = meshstart
  345. coroutine.wrap(function()
  346. for i=0,1,factor do
  347. swait()
  348. if inverse == true then
  349. p.Transparency = 1-i
  350. else
  351. p.Transparency = i
  352. end
  353. m.Scale = m.Scale + meshadd
  354. end
  355. p:Destroy()
  356. end)()
  357. return p
  358. end,
  359.  
  360. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  361. local p = Instance.new("Part",EffectModel)
  362. p.BrickColor = BrickColor.new(colour)
  363. p.Size = Vector3.new()
  364. p.Anchored = true
  365. p.CanCollide = false
  366. p.CFrame = cf
  367. if inverse == true then
  368. p.Transparency = 1
  369. else
  370. p.Transparency = 0
  371. end
  372. local m = Instance.new("SpecialMesh",p)
  373. m.MeshId = "rbxassetid://20329976"
  374. m.Scale = meshstart
  375. coroutine.wrap(function()
  376. for i=0,1,factor do
  377. swait()
  378. if inverse == true then
  379. p.Transparency = 1-i
  380. else
  381. p.Transparency = i
  382. end
  383. m.Scale = m.Scale + meshadd
  384. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  385. end
  386. p:Destroy()
  387. end)()
  388. return p
  389. end,
  390.  
  391. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  392. local p = Instance.new("Part",EffectModel)
  393. p.BrickColor = BrickColor.new(colour)
  394. p.Size = Vector3.new()
  395. p.Anchored = true
  396. p.CanCollide = false
  397. p.CFrame = cf
  398. if inverse == true then
  399. p.Transparency = 1
  400. else
  401. p.Transparency = 0
  402. end
  403. local m = Instance.new("SpecialMesh",p)
  404. m.MeshId = "rbxassetid://3270017"
  405. m.Scale = meshstart
  406. coroutine.wrap(function()
  407. for i=0,1,factor do
  408. swait()
  409. if inverse == true then
  410. p.Transparency = 1-i
  411. else
  412. p.Transparency = i
  413. end
  414. m.Scale = m.Scale + meshadd
  415. end
  416. p:Destroy()
  417. end)()
  418. return p
  419. end,
  420.  
  421. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  422. local p = Instance.new("Part",EffectModel)
  423. p.BrickColor = BrickColor.new(colour)
  424. p.Size = Vector3.new()
  425. p.Anchored = true
  426. p.CanCollide = false
  427. p.CFrame = cf
  428. if inverse == true then
  429. p.Transparency = 1
  430. else
  431. p.Transparency = 0
  432. end
  433. local m = Instance.new("SpecialMesh",p)
  434. m.MeshId = meshid
  435. m.TextureId = textid
  436. m.Scale = meshstart
  437. coroutine.wrap(function()
  438. for i=0,1,factor do
  439. swait()
  440. if inverse == true then
  441. p.Transparency = 1-i
  442. else
  443. p.Transparency = i
  444. end
  445. m.Scale = m.Scale + meshadd
  446. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  447. end
  448. p:Destroy()
  449. end)()
  450. return p
  451. end,
  452.  
  453. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  454. local p = Instance.new("Part",EffectModel)
  455. p.BrickColor = BrickColor.new(colour)
  456. p.Size = partsize
  457. p.Anchored = true
  458. p.CanCollide = false
  459. p.Material = matr
  460. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  461. if inverse == true then
  462. p.Transparency = 1
  463. else
  464. p.Transparency = 0
  465. end
  466. local m = Instance.new("SpecialMesh",p)
  467. m.MeshType = "Sphere"
  468. m.Scale = meshstart
  469. coroutine.wrap(function()
  470. for i=0,1,factor do
  471. swait()
  472. if inverse == true then
  473. p.Transparency = 1-i
  474. else
  475. p.Transparency = i
  476. end
  477. m.Scale = m.Scale + meshadd
  478. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  479. end
  480. p:Destroy()
  481. end)()
  482. return p
  483. end,
  484.  
  485. }
  486.  
  487. function GetDudesTorso(c)
  488. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  489. if torsy ~= nil then
  490. return torsy
  491. end
  492. end
  493.  
  494. function BodyVel(part,faws)
  495. local bodyvel = Instance.new("BodyVelocity",part)
  496. local pep = 10000000
  497. bodyvel.P = pep
  498. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  499. bodyvel.Velocity = faws
  500. debby:AddItem(bodyvel,.2)
  501. end
  502.  
  503. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  504. if dude and dude ~= chara then
  505. if dude:FindFirstChild("HITO") then return end
  506. local debounce = Instance.new("BoolValue",dude)
  507. debounce.Name = "HITO"
  508. debby:AddItem(debounce,toim)
  509. local hum = dude:FindFirstChildOfClass("Humanoid")
  510. local dam = dmg+math.random(-env,env)
  511. local teksu = "-"..dam
  512. if hum then
  513. local finhel = hum.Health - dam
  514. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  515. Instance.new("BoolValue",dude).Name = "DEATHED"
  516. end
  517. hum.Health = hum.Health - dam
  518. end
  519. coroutine.wrap(function()
  520. local naeeym2 = Instance.new("BillboardGui",dude)
  521. naeeym2.Size = UDim2.new(0,100,0,40)
  522. naeeym2.StudsOffset = Vector3.new(0,3,0)
  523. naeeym2.Adornee = dude:FindFirstChild("Head")
  524. naeeym2.Name = "TalkingBillBoard"
  525. local tecks2 = Instance.new("TextLabel",naeeym2)
  526. tecks2.BackgroundTransparency = 1
  527. tecks2.BorderSizePixel = 0
  528. tecks2.Text = teksu
  529. tecks2.Font = "Fantasy"
  530. tecks2.TextSize = 24
  531. tecks2.TextStrokeTransparency = 0
  532. tecks2.TextColor3 = Color3.new(1,1,1)
  533. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  534. tecks2.Size = UDim2.new(1,0,0.5,0)
  535. swait(.2)
  536. for i = 0,1,.05 do
  537. swait()
  538. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  539. tecks2.TextStrokeTransparency = i
  540. tecks2.TextTransparency = i
  541. end
  542. naeeym2:Destroy()
  543. end)()
  544. local torsy = GetDudesTorso(dude)
  545. if torsy then
  546. for i=1,dam/5 do
  547. local blp = Instance.new("Part",EffectModel)
  548. blp.Size = Vector3.new(.3,.3,.3)
  549. blp.BrickColor = BrickColor.new("Crimson")
  550. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  551. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  552. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  553. --local blm = Instance.new("SpecialMesh",blp)
  554. --blm.MeshType = "Sphere"
  555. coroutine.wrap(function()
  556. swait(.2)
  557. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  558. for i=0,1,.1 do
  559. swait()
  560. blp.Transparency = i
  561. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  562. end
  563. blp:Destroy()
  564. end)()
  565. end
  566. if efftyp == "Blunt" then
  567. puncheff(torsy)
  568. elseif efftyp == "Sharp" then
  569. slasheff(torsy)
  570. elseif efftyp == "Shot" then
  571. so(144884872,torsy,.9,1)
  572. end
  573. if faws ~= 0 then
  574. BodyVel(torsy,faws)
  575. end
  576. if trip == true then
  577. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  578. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  579. end
  580. end
  581. end
  582. end
  583.  
  584. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  585. for _, c in pairs(workspace:GetDescendants()) do
  586. local hum = c:FindFirstChildOfClass("Humanoid")
  587. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  588. local head = GetDudesTorso(c)
  589. if head ~= nil then
  590. local targ = head.Position - par.Position
  591. local mag = targ.magnitude
  592. if magni >= mag and c ~= chara then
  593. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  594. end
  595. end
  596. end
  597. end
  598. end
  599.  
  600. function CamShake(par,magni,env,dur)
  601. coroutine.wrap(function()
  602. for i=0,dur*60 do
  603. swait()
  604. 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)
  605. end
  606. Humanoid.CameraOffset = Vector3.new(0,0,0)
  607. end)()
  608. end
  609.  
  610. function puncheff(par)
  611. if par.Parent:FindFirstChild("DebounceHit")==nil then
  612. so(386946017,par,math.random(6,8)/10,1)
  613. 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)
  614. CamShake(bla,30,.5,.5)
  615. end
  616. end
  617.  
  618. function slasheff(par)
  619. if par.Parent:FindFirstChild("DebounceHit")==nil then
  620. local cho = math.random(1,3)
  621. if cho == 1 then
  622. so(444667824,par,1,1)
  623. elseif cho == 2 then
  624. so(444667844,par,1,1)
  625. elseif cho == 3 then
  626. so(444667859,par,1,1)
  627. end
  628. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  629. 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)
  630. end
  631. end
  632.  
  633. function smasheff(pos,projsiz,projnum,grousiz,grono,grospr,projfor)
  634. local hit,hitpos = rayCast(pos,Vector3.new(0,-1,0),4,chara)
  635. if hit ~= nil then
  636. for i = 1, projnum do
  637. local p = Instance.new("Part",EffectModel)
  638. p.BrickColor = hit.BrickColor
  639. p.Material = hit.Material
  640. p.Size = Vector3.new(projsiz,projsiz,projsiz)
  641. p.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  642. p.CanCollide = false
  643. p.Velocity = projfor
  644. CreateTrailObj(p,Color3.new(1,1,1),Color3.new(1,1,1),0,0).Enabled = true
  645. coroutine.resume(coroutine.create(function()
  646. swait(.2)
  647. p.CanCollide = true
  648. swait(3)
  649. for i = 0,1,.01 do
  650. swait()
  651. p.Transparency = i
  652. end
  653. p:Destroy()
  654. end))
  655. end
  656. for i = 1, grono do
  657. local size = math.random(4,6)
  658. local gtrace = Instance.new("Part",EffectModel)
  659. gtrace.BrickColor = hit.BrickColor
  660. gtrace.Material = hit.Material
  661. gtrace.Size = Vector3.new(grousiz,grousiz,grousiz)
  662. gtrace.Anchored = true
  663. gtrace.CanCollide = false
  664. gtrace.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  665. coroutine.wrap(function()
  666. swait(3)
  667. for i = 0,1,.01 do
  668. swait()
  669. gtrace.Transparency = i
  670. end
  671. gtrace:Destroy()
  672. end)()
  673. end
  674. end
  675. end
  676.  
  677. function attackone()
  678. attack = true
  679. Humanoid.WalkSpeed = 10
  680. for i=0,2,.1 do
  681. swait()
  682. PlayAnimationFromTable({
  683. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  684. 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),
  685. CFrame.new(1.10928118, 0.356215954, -1.26063514, 0.766042948, 0.642789483, 0, 0, 0, -1, -0.642789423, 0.766042948, 0),
  686. 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),
  687. CFrame.new(0.650009155, -2.5999999, -1.52587891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  688. CFrame.new(-0.650007129, -2.5999999, 1.07288361e-05, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  689. }, .3, false)
  690. end
  691. RATr.Enabled = true
  692. so(1249690399,Head,1,3)
  693. so(1489705211,RightArm,.6,1)
  694. Humanoid.WalkSpeed = 0
  695. BodyVel(RootPart,RootPart.CFrame.lookVector*70)
  696. for i=0,1,.1 do
  697. swait()
  698. PlayAnimationFromTable({
  699. 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),
  700. 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),
  701. 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),
  702. 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),
  703. 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),
  704. CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1),
  705. }, .3, false)
  706. MagnitudeDmg(RightArm,2.5,40,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  707. end
  708. swait(.5)
  709. Humanoid.WalkSpeed = 16
  710. RATr.Enabled = false
  711. attack = false
  712. end
  713.  
  714. function dashattack()
  715. attack = true
  716. Humanoid.WalkSpeed = 2
  717. so(1249690399,Head,1,3)
  718. for i=0,2,.1 do
  719. swait()
  720. PlayAnimationFromTable({
  721. CFrame.new(0, -0.260801345, 0.37769106, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  722. CFrame.new(0, 1.88156867, 0.187936544, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438),
  723. CFrame.new(2.54999161, 0.600001335, 9.71555778e-07, 0, -1, 0, 1, 0, 2.98023224e-08, 2.98023224e-08, 0, 1),
  724. CFrame.new(-2.54999542, 0.599999964, 3.99351336e-07, 0, 1, 0, -1.00000012, 0, 9.83476639e-07, 9.23871994e-07, 0, 1.00000012),
  725. 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),
  726. 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),
  727. }, .4, false)
  728. end
  729. RATr.Enabled = true
  730. Humanoid.WalkSpeed = 0
  731. local bodyvel = Instance.new("BodyVelocity",RootPart)
  732. local pep = 10000000
  733. bodyvel.P = pep
  734. bodyvel.MaxForce = Vector3.new(pep,0,pep)
  735. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  736. local dasu = 0
  737. local par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara)
  738. repeat
  739. dasu = dasu + 1
  740. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  741. par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara)
  742. so(10730819,Torso,1,2)
  743. CamShake(Torso,60,.4,.1)
  744. smasheff(Torso.Position,math.random(10,20)/10,math.random(2,3),math.random(10,20)/10,math.random(2,3),2,(RootPart.CFrame.lookVector*-math.random(30,50))+Vector3.new(math.random(-5,5),math.random(50,70),math.random(-5,5)))
  745. swait()
  746. Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05)
  747. PlayAnimationFromTable({
  748. 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),
  749. 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),
  750. 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),
  751. 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),
  752. 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),
  753. 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),
  754. }, .4, false)
  755. MagnitudeDmg(Torso,6,30,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  756. until par ~= nil or dasu >= 100
  757. bodyvel:Destroy()
  758. Humanoid.WalkSpeed = 16
  759. RATr.Enabled = false
  760. attack = false
  761. end
  762.  
  763. function thesurou()
  764. attack = true
  765. Humanoid.WalkSpeed = 0
  766. local grab = nil
  767. local torsy = nil
  768. local hum = nil
  769. for i, v in pairs(FindNearestTorso(Torso.Position, 6)) do
  770. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  771. hum = v:FindFirstChildOfClass("Humanoid")
  772. torsy = GetDudesTorso(v)
  773. grab = v
  774. end
  775. end
  776. so(200632136,RootPart,.8,1)
  777. for i = 0,1,.1 do
  778. swait()
  779. PlayAnimationFromTable({
  780. CFrame.new(0, -0.160800725, -0.377691686, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  781. CFrame.new(0, 2.01372528, -0.214328468, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  782. 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),
  783. 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),
  784. 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),
  785. 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),
  786. }, .3, false)
  787. end
  788. if grab ~= nil and torsy ~= nil then
  789. so(1249690399,Head,1,3)
  790. so(240429615,torsy,1,1)
  791. for i = 0,1,.1 do
  792. swait()
  793. PlayAnimationFromTable({
  794. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  795. 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),
  796. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  797. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  798. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  799. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  800. }, .3, false)
  801. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  802. hum.PlatformStand = true
  803. torsy.Velocity = Vector3.new()
  804. end
  805. for a=1,3 do
  806. for i = 0,1,.1 do
  807. swait()
  808. PlayAnimationFromTable({
  809. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  810. 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),
  811. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  812. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  813. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  814. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  815. }, .3, false)
  816. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  817. hum.PlatformStand = true
  818. torsy.Velocity = Vector3.new()
  819. end
  820. so(200632136,RootPart,.9,1)
  821. for i = 0,1,.2 do
  822. swait()
  823. PlayAnimationFromTable({
  824. CFrame.new(-0.102054864, -0.932198167, 9.983778e-07, 0, 0.766044974, -0.64278698, 0, 0.64278698, 0.766044974, 1, 0, 0),
  825. CFrame.new(0, 1.94997787, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  826. 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),
  827. CFrame.new(-1.95000505, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  828. CFrame.new(0.650000989, -0.993868172, -1.34321105, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698),
  829. CFrame.new(-0.650000989, -2.59999466, 7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  830. }, .4, false)
  831. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  832. hum.PlatformStand = true
  833. torsy.Velocity = Vector3.new()
  834. end
  835. puncheff(torsy)
  836. smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30)))
  837. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05)
  838. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05)
  839. for i = 0,1,.1 do
  840. swait()
  841. PlayAnimationFromTable({
  842. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  843. 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),
  844. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  845. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  846. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  847. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  848. }, .3, false)
  849. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  850. hum.PlatformStand = true
  851. torsy.Velocity = Vector3.new()
  852. end
  853. so(200632136,RootPart,.9,1)
  854. for i = 0,1,.2 do
  855. swait()
  856. PlayAnimationFromTable({
  857. CFrame.new(0.102049023, -0.932193279, 0, 0, -0.766044974, 0.64278698, 0, 0.64278698, 0.766044974, -1, 0, 0),
  858. CFrame.new(0, 1.94997406, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  859. 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),
  860. CFrame.new(-1.95000458, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  861. CFrame.new(0.650002003, -0.993867934, -1.34321058, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698),
  862. CFrame.new(-0.650001049, -2.60001373, 1.14440918e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  863. }, .4, false)
  864. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  865. hum.PlatformStand = true
  866. torsy.Velocity = Vector3.new()
  867. end
  868. puncheff(torsy)
  869. smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30)))
  870. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05)
  871. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05)
  872. end
  873. so(200632136,RootPart,.9,1)
  874. for i = 0,1,.1 do
  875. swait()
  876. PlayAnimationFromTable({
  877. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  878. 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),
  879. 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),
  880. 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),
  881. CFrame.new(0.650005341, -2.5999999, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  882. CFrame.new(-0.650006175, -2.5999999, 2.44379044e-06, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  883. }, .4, false)
  884. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  885. hum.PlatformStand = true
  886. torsy.Velocity = Vector3.new()
  887. end
  888. local pato = Instance.new("Part",torsy)
  889. pato.CFrame = torsy.CFrame
  890. pato.Size = Vector3.new(4.1,6.1,1.1)
  891. pato.Transparency = 1
  892. pato.CanCollide = false
  893. pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  894. local werudo = Instance.new("Weld",pato)
  895. werudo.Part0 = pato
  896. werudo.Part1 = torsy
  897. torsy.Velocity = RootPart.CFrame.lookVector*150+Vector3.new(0,30,0)
  898. torsy.RotVelocity = Vector3.new(10,10,10)
  899. pato.Touched:connect(function(hit)
  900. if hit:IsDescendantOf(chara)==false then
  901. pato:Destroy()
  902. Dmg(grab,70,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3)
  903. so(260430079,torsy,1,5)
  904. MagnitudeDmg(torsy,6,40,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  905. smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30)))
  906. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05)
  907. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05)
  908. end
  909. end)
  910. so(200632136,RootPart,.8,1)
  911. for i = 0,2,.1 do
  912. swait()
  913. PlayAnimationFromTable({
  914. 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),
  915. 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),
  916. 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),
  917. 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),
  918. 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),
  919. CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1),
  920. }, .3, false)
  921. end
  922. end
  923. attack = false
  924. Humanoid.WalkSpeed = 8
  925. end
  926.  
  927. function taunt()
  928. attack = true
  929. Humanoid.WalkSpeed = 0
  930. mus.Pitch = 0
  931. local snd = Instance.new("Sound",Head)
  932. snd.Volume = 3
  933. snd.SoundId = "rbxassetid://1320508461"
  934. snd:Play()
  935. so(1474367957,Head,1,3)
  936. for i = 0,1,.01 do
  937. swait()
  938. PlayAnimationFromTable({
  939. CFrame.new(-7.70094994e-06, 0.0393988565, 0.149780393, 0.999998927, -8.29677447e-08, -4.7053436e-07, 0, 0.984807849, -0.173647985, -6.85358827e-06, 0.173648238, 0.984809279),
  940. CFrame.new(6.96081361e-06, 1.94950724, -0.513472855, 1, -6.94597475e-07, 3.9392653e-06, -6.94597475e-07, 0.939692855, 0.342019767, -3.93926348e-06, -0.342019796, 0.939692736),
  941. CFrame.new(1.69018638, 1.65000451, 0.300107032, 0.866022527, 0.500005007, 5.95726306e-06, 0.500005066, -0.866022527, -1.13099813e-05, -4.91738319e-07, 1.27702951e-05, -1.00000012),
  942. CFrame.new(-1.69020617, 1.6499958, 0.299897015, 0.866027176, -0.49999702, 6.79078403e-06, -0.499997079, -0.866027117, 1.20401382e-05, -1.34110451e-07, -1.38133764e-05, -1.00000012),
  943. CFrame.new(0.650000513, -2.62530255, 0.310812205, 0.939692974, 0, -0.342019439, 0.0593909882, 0.984807849, 0.163175792, 0.336823434, -0.173647985, 0.925417006),
  944. CFrame.new(-0.649998724, -2.62530136, 0.310818315, 0.939692497, 0, 0.34202072, -0.0593912043, 0.984807849, 0.163175717, -0.336824685, -0.173647985, 0.925416589),
  945. }, .1, false)
  946. end
  947. so(487907316,Head,1,3)
  948. for i = 0,1,.01 do
  949. swait()
  950. PlayAnimationFromTable({
  951. CFrame.new(1.55392627e-05, -0.118780732, -0.583496988, 0.999998569, 2.40357622e-07, -4.16312105e-07, 0, 0.866025388, 0.500000238, -9.29446469e-06, -0.500001192, 0.866027057),
  952. CFrame.new(1.61478602e-05, 1.9034369, 0.0406528115, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057),
  953. CFrame.new(1.35360622, -0.201802224, -0.616510034, 0.866021276, 0.500007153, -5.6077406e-06, -0.433019817, 0.74999243, -0.500005424, -0.250002086, 0.433017761, 0.866022408),
  954. CFrame.new(-1.35358262, -0.201804206, -0.616507173, 0.866028905, -0.49999395, -4.74162516e-06, 0.433007032, 0.750007033, -0.499994606, 0.249997824, 0.433007747, 0.866028666),
  955. CFrame.new(0.649987519, -2.44053602, -0.735289276, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057),
  956. CFrame.new(-0.650013626, -2.44054365, -0.735276401, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057),
  957. }, .1, false)
  958. end
  959. so(1474367957,Head,.9,3)
  960. for i = 0,1,.01 do
  961. swait()
  962. PlayAnimationFromTable({
  963. CFrame.new(0, -0.599999666, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  964. CFrame.new(3.60608101e-06, 1.94996309, -3.51667404e-06, 0.469848812, 0.342020154, 0.813796282, -0.171001956, 0.939692676, -0.296202868, -0.866025746, 9.79501692e-06, 0.499999583),
  965. CFrame.new(1.61960268, 1.77223492, -2.74498088e-05, 0.866025388, 0.500000238, 1.34671045e-05, 0.500000238, -0.866025388, -9.50000867e-06, 6.91284913e-06, 1.49608022e-05, -1),
  966. CFrame.new(-2.50045633, 0.909400702, 7.89161845e-07, -1.0784097e-06, 0.984807849, -0.173647985, 0, -0.173647985, -0.984807849, -1, -1.06202424e-06, 1.8726405e-07),
  967. CFrame.new(1.36961031, -2.04641271, 4.32031811e-06, 0.866025388, -0.500000238, -7.40492396e-06, 0.500000238, 0.866025388, 1.30000126e-05, -8.71550583e-08, -1.49608022e-05, 1),
  968. CFrame.new(-0.649993896, -1.99999642, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  969. }, .1, false)
  970. end
  971. so(1474367957,Head,.9,3)
  972. for i = 0,1,.01 do
  973. swait()
  974. PlayAnimationFromTable({
  975. CFrame.new(0, -0.699999571, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  976. CFrame.new(4.35113907e-06, 1.9499656, -2.47359276e-06, 0.499997169, -0.296198249, -0.813799441, 0, 0.939692855, -0.342019647, 0.866027057, 0.171008855, 0.469843775),
  977. CFrame.new(2.56986904, 0.91509676, 1.86699071e-05, -3.99215896e-05, -0.984806359, 0.173656061, 0, -0.173656061, -0.984806359, 1, -3.93150331e-05, 6.93262609e-06),
  978. CFrame.new(-1.76206148, 1.33159709, 1.23434656e-05, 0.939692736, -0.342019886, 5.52932834e-05, -0.342019916, -0.939692736, -9.23453536e-06, 5.51170961e-05, -1.02337781e-05, -1),
  979. CFrame.new(0.650001526, -1.89999652, -0.599994659, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  980. CFrame.new(-1.4295907, -1.91907001, -1.105927e-05, 0.866025388, 0.500000238, -1.4333129e-05, -0.500000238, 0.866025388, -9.00000668e-06, 7.91284765e-06, 1.49608022e-05, 1),
  981. }, .1, false)
  982. end
  983. snd:Destroy()
  984. mus.Pitch = 1
  985. Humanoid.WalkSpeed = 16
  986. attack = false
  987. end
  988.  
  989. Mouse.Button1Down:connect(function()
  990. if attack == false then
  991. attackone()
  992. end
  993. end)
  994.  
  995. local sprintt = 0
  996.  
  997. Mouse.KeyDown:connect(function(k)
  998. k = k:lower()
  999. if k=='m' then
  1000. if mus.IsPlaying == true then
  1001. mus:Stop()
  1002. elseif mus.IsPaused == true then
  1003. mus:Play()
  1004. end
  1005. end
  1006. if attack == false then
  1007. if k == 'z' then
  1008. thesurou()
  1009. elseif k == 'x' then
  1010. dashattack()
  1011. elseif k == 'g' then
  1012. taunt()
  1013. end
  1014. end
  1015. end)
  1016.  
  1017. prevhp = 800
  1018. Humanoid.HealthChanged:connect(function(hp)
  1019. if hp < prevhp then
  1020. local cho = math.random(1,5)
  1021. local s = Instance.new("Sound",Head)
  1022. if cho == 1 then
  1023. so(480392869,Head,1,3)
  1024. elseif cho == 2 then
  1025. so(480392949,Head,1,3)
  1026. elseif cho == 3 then
  1027. so(480394663,Head,1,3)
  1028. elseif cho == 4 then
  1029. so(480394802,Head,1,3)
  1030. elseif cho == 5 then
  1031. so(480394542,Head,1,3)
  1032. end
  1033. end
  1034. prevhp = hp
  1035. end)
  1036.  
  1037. local soundIds = {1249690399,1249690399,1249690399}
  1038. coroutine.wrap(function()
  1039. while wait(math.random(25,30)/10) do
  1040. if Humanoid.Health > 1 and attack == false then
  1041. so(soundIds[math.random(1,3)],Head,1,3)
  1042. end
  1043. end
  1044. end)()
  1045.  
  1046. Humanoid.Died:connect(function()
  1047. mus:Stop()
  1048. so(487907155,Head,1,3)
  1049. swait(5)
  1050. for i = 1,10 do
  1051. swait()
  1052. for i,v in pairs(chara:GetDescendants()) do
  1053. if v:IsA("BasePart") then
  1054. v.Transparency = v.Transparency + .1
  1055. end
  1056. end
  1057. end
  1058. chara:Destroy()
  1059. end)
  1060.  
  1061. coroutine.wrap(function()
  1062. while 1 do
  1063. swait()
  1064. if doe <= 360 then
  1065. doe = doe + 2
  1066. else
  1067. doe = 0
  1068. end
  1069. end
  1070. end)()
  1071.  
  1072. while true do
  1073. swait()
  1074. while true do
  1075. swait()
  1076. if Head:FindFirstChild("mus")==nil then
  1077. mus = Instance.new("Sound",Head)
  1078. mus.Name = "mus"
  1079. mus.SoundId = "rbxassetid://563062677"
  1080. mus.Looped = true
  1081. mus.Volume = 1
  1082. mus:Play()
  1083. end
  1084. local ss = Humanoid:GetState()
  1085. if ss == (Enum.HumanoidStateType.FallingDown or ss == Enum.HumanoidStateType.PlatformStanding) then
  1086. Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  1087. end
  1088. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1089. velocity = RootPart.Velocity.y
  1090. sine = sine + change
  1091. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 5.3, chara)
  1092. if RootPart.Velocity.y > 1 and hit == nil then
  1093. Anim = "Jump"
  1094. if attack == false then
  1095. PlayAnimationFromTable({
  1096. CFrame.new(0, 0.0740167201, -0.180228189, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1097. CFrame.new(0, 2.03109002, -0.115844816, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  1098. 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),
  1099. 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),
  1100. CFrame.new(0.650001526, -1.19999599, -0.600000799, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1101. CFrame.new(-0.649993896, -2.59999466, 5.54323037e-07, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1102. }, .3, false)
  1103. end
  1104. elseif RootPart.Velocity.y < -1 and hit == nil then
  1105. Anim = "Fall"
  1106. if attack == false then
  1107. PlayAnimationFromTable({
  1108. CFrame.new(0, -0.133714333, 0.15832366, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  1109. CFrame.new(0, 2.05995607, -0.632082939, 1, 0, 0, 0, 0.766044796, 0.642787218, 0, -0.642787218, 0.766044855),
  1110. 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),
  1111. 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),
  1112. CFrame.new(0.649993896, -1.3999939, -0.600004256, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1113. CFrame.new(-0.650001526, -2.59999371, -3.89218303e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1114. }, .3, false)
  1115. end
  1116. elseif Torsovelocity < 1 and hit ~= nil then
  1117. Anim = "Idle"
  1118. if attack == false then
  1119. change = 1
  1120. PlayAnimationFromTable({
  1121. 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),
  1122. 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),
  1123. 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),
  1124. 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),
  1125. 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),
  1126. 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),
  1127. }, .3, false)
  1128. end
  1129. elseif Torsovelocity > 2 and hit ~= nil then
  1130. Anim = "Walk"
  1131. if attack == false then
  1132. Humanoid.WalkSpeed = 16
  1133. Humanoid.JumpPower = 80
  1134. PlayAnimationFromTable({
  1135. 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),
  1136. CFrame.new(0, 2.01372552, -0.214327857, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849),
  1137. CFrame.new(1.94397354, -0.115067676, -0.230779886, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1138. CFrame.new(-1.95000458, -0.0637510419, -0.214326635, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1139. 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),
  1140. 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),
  1141. }, .3, false)
  1142. end
  1143. end
  1144. end
  1145. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement