Im_Meme

Big dude

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