Advertisement
memberhero

Skeleton Brawler Script

Mar 20th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.95 KB | None | 0 0
  1. --fireman23332333
  2. --Edited by basstracker1970
  3. song = Instance.new("Sound",game.Players.LocalPlayer.Character)
  4. song.SoundId = "rbxassetid://591143106"
  5. song.Looped = true
  6. song:Play()
  7. ---God Mode And ForceField Stuff
  8. game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
  9. ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  10. -------------------------------
  11. ---ANTI-LAG-V2
  12. mx = game.Debris
  13. mx2 = game.Debris.MaxItems
  14.  
  15. if (mx.MaxItems > 39999) then
  16. mx.MaxItems = mx2*.75
  17. end
  18. --------------
  19. function Create(ClassName)
  20. return function(Properties)
  21. local Obj = Instance.new(ClassName)
  22.  
  23. for i,v in pairs(Properties) do
  24. if type(i) == 'number' then
  25. v.Parent = Obj
  26. else
  27. Obj[i] = v
  28. end
  29. end
  30.  
  31. return Obj
  32. end
  33. end
  34.  
  35. function HandleCharacter(Player, Character)
  36. local FakeHead = Character:WaitForChild('Head'):clone()
  37.  
  38. FakeHead.Name = 'FakeHead'
  39. FakeHead.Parent = Character
  40. FakeHead.face:Destroy()
  41. Character.Head.Transparency = 1
  42.  
  43. Create'Weld'{
  44. Name = 'FakeHeadWeld';
  45. Parent = FakeHead;
  46. Part0 = Character.Head;
  47. Part1 = FakeHead;
  48. }
  49. Create'BillboardGui'{
  50. Name = 'Nametag';
  51. Parent = FakeHead;
  52. Size = UDim2.new(5, 0, 0.5, 0);
  53. StudsOffset = Vector3.new(0, 2, 0);
  54. -----
  55. Create'TextLabel'{
  56. Name = 'NameLabel';
  57. BackgroundTransparency = 1;
  58. Size = UDim2.new(1, 0, 1, 0);
  59. Font = 'SourceSans';
  60. Text = "Its Been A Long Time";
  61. TextColor3 = Color3.new(1, 1, 1);
  62. TextScaled = true;
  63. TextStrokeTransparency = 0.5;
  64.  
  65. Text = "Since I Had Been Fighting";
  66.  
  67. Text = "Now i Destroy you";
  68. Text = "Skeleton Brawler";
  69.  
  70.  
  71.  
  72. };
  73. }
  74.  
  75. FakeHead.BrickColor = Character.Head.BrickColor
  76.  
  77. Character.Head.Changed:connect(function()
  78. Character.Head.Transparency = 1
  79. FakeHead.BrickColor = Character.Head.BrickColor
  80. end)
  81. Character.Head.Mesh.Changed:connect(function()
  82. FakeHead:WaitForChild('Mesh').MeshId = Character.Head:WaitForChild('Mesh').MeshId
  83. end)
  84. end
  85.  
  86. function HandlePlayer(Player)
  87. if Player.Character then
  88. HandleCharacter(Player, Player.Character)
  89. end
  90. Player.CharacterAdded:connect(function(Character) HandleCharacter(Player, Character) end)
  91. end
  92.  
  93. game.Players.PlayerAdded:connect(HandlePlayer)
  94. for i,v in pairs(game.Players:GetPlayers()) do HandlePlayer(v) end
  95. local plr=game.Players.LocalPlayer;ch=plr.Character;
  96. local tor=ch.Torso;local head=ch.Head;local ra=ch['Right Arm'];local la=ch['Left Arm'];local rl=ch['Right Leg'];local ll=ch['Left Leg'];
  97. local rj=ch.HumanoidRootPart.RootJoint;local neck=tor.Neck;
  98. local rm=Instance.new("Weld",tor);rm.C1=CFrame.new(0,0.5,0);rm.C0=CFrame.new(1.5,0.5,0);rm.Part0=tor;rm.Part1=ra;
  99. local lm=Instance.new("Weld",tor);lm.C1=CFrame.new(0,0.5,0);lm.C0=CFrame.new(-1.5,0.5,0);lm.Part0=tor;lm.Part1=la;
  100. local rlm=Instance.new("Weld",tor);rlm.C1=CFrame.new(0,1,0);rlm.C0=CFrame.new(0.5,-1,0);rlm.Part0=tor;rlm.Part1=rl;
  101. local llm=Instance.new("Weld",tor);llm.C1=CFrame.new(0,1,0);llm.C0=CFrame.new(-0.5,-1,0);llm.Part0=tor;llm.Part1=ll;
  102. local hum=ch.Humanoid
  103. for i,v in pairs(head:GetChildren()) do if v.ClassName=="Sound" then v:Destroy() end end
  104. rj.C0=CFrame.new()
  105. rj.C1=CFrame.new()
  106. tor['Right Shoulder']:Destroy();tor['Left Shoulder']:Destroy();tor['Right Hip']:Destroy();tor['Left Hip']:Destroy();
  107. neck.C0=CFrame.new(0,1,0);neck.C1=CFrame.new(0,-0.5,0);
  108. rmC0=rm.C0;rmC1=rm.C1;lmC0=lm.C0;lmC1=lm.C1;nC0=neck.C0;nC1=neck.C1;rjC0=rj.C0;rjC1=rj.C1;rlmC0=rlm.C0;rlmC1=rlm.C1;llmC0=llm.C0;llmC1=llm.C1;
  109. local defWS=9.5
  110. local defJP=50
  111. hum.WalkSpeed=defWS
  112. ch:WaitForChild("Animate"):Destroy()
  113. hum:WaitForChild("Animator"):Destroy()
  114. local mouse=plr:GetMouse();local cam=workspace.CurrentCamera;
  115.  
  116. for i,v in pairs(ch:GetChildren()) do
  117. if v:IsA("Part") then
  118. v.CanCollide=false
  119. end
  120. end
  121.  
  122. local bodyColor=BrickColor.new("Really black")
  123.  
  124. local bc=ch:WaitForChild("Body Colors")
  125. bc.HeadColor=bodyColor;bc.LeftArmColor=bodyColor;bc.LeftLegColor=bodyColor;bc.RightArmColor=bodyColor;bc.RightLegColor=bodyColor;bc.TorsoColor=bodyColor;
  126. head:WaitForChild("face"):Destroy()
  127.  
  128. for i,v in pairs(head:GetChildren()) do if v.ClassName=="Sound" then v:Destroy() end end
  129.  
  130. function swait(num)
  131. if num==0 or num==nil then
  132. game:service'RunService'.RenderStepped:wait()
  133. else
  134. for i=0,num do
  135. game:service'RunService'.RenderStepped:wait()
  136. end
  137. end
  138. end
  139.  
  140. function doBrick(parent,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts)
  141. local p=Instance.new('Part',parent);p.BrickColor=colour;p.Material=material;p.Transparency=transparency;p.Anchored=a;p.CanCollide=cc;p.FormFactor="Custom";p.Size=size;p.BackSurface=bs;p.BottomSurface=bts;p.FrontSurface=fs;p.LeftSurface=ls;p.RightSurface=rs;p.TopSurface=ts;p.Position=pos;p.CFrame=p.CFrame*cf;
  142. return p
  143. end
  144.  
  145. function doMesh(parent,meshType,meshId,scale)
  146. local m=Instance.new('SpecialMesh',parent);m.MeshType=meshType;m.MeshId=meshId;m.Scale=scale
  147. return m
  148. end
  149.  
  150. local hm=Instance.new("Model",ch);hm.Name="HelmetModel"
  151.  
  152. local hat=doBrick(hm,Vector3.new(0,0,0),head.CFrame*CFrame.new(0,0.1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),Vector3.new(1,1,1),BrickColor.new("Cool yellow"),"SmoothPlastic",0,true,false,10,10,10,10,10,10)
  153. local hoodMesh=doMesh(hat,"FileMesh","http://www.roblox.com/asset/?id=6552202",Vector3.new(3,3,3))
  154.  
  155. local grabPart=Instance.new("Part",ch);grabPart.Anchored=false;grabPart.CanCollide=false;grabPart.Size=Vector3.new(1,1,1);grabPart.Transparency=1;grabPart.Name="GrabPart";
  156. --local gpw=Instance.new("Weld",ch);gpw.Part0=grabPart;gpw.Part1=ra;gpw.C1=CFrame.new(0,-1.25,0.6)
  157.  
  158. local mainGui=nil
  159.  
  160. function displayGrabOptions()
  161. local mainGui=Instance.new("ScreenGui",plr.PlayerGui)
  162. mainGui.Name="OptionsGui"
  163. local grabOption1=Instance.new("TextLabel",mainGui)
  164. grabOption1.BackgroundTransparency=0.25
  165. grabOption1.BackgroundColor3=Color3.new(2.55,1.50,0.50)
  166. grabOption1.BorderSizePixel=0
  167. grabOption1.Size=UDim2.new(0,125,0,40)
  168. grabOption1.Position=UDim2.new(0,-125+1,0.5,40)
  169. grabOption1.Text="F - Release"
  170. grabOption1.Font=Enum.Font.SourceSansLight
  171. grabOption1.FontSize=Enum.FontSize.Size24
  172. grabOption1.TextColor3=Color3.new(1,1,1)
  173. grabOption1.TextStrokeTransparency=0
  174.  
  175. grabOption1:TweenPosition(UDim2.new(0,0,0.5,40),"Out","Bounce",0.5,false,nil)
  176.  
  177. local grabOption2=Instance.new("TextLabel",mainGui)
  178. grabOption2.BackgroundTransparency=0.25
  179. grabOption2.BackgroundColor3=Color3.new(2.55,1.50,0.50)
  180. grabOption2.BorderSizePixel=0
  181. grabOption2.Size=UDim2.new(0,125,0,40)
  182. grabOption2.Position=UDim2.new(0,-125+1,0.5,(40*2)+1)
  183. grabOption2.Text="E - Soul Punch"
  184. grabOption2.Font=Enum.Font.SourceSansLight
  185. grabOption2.FontSize=Enum.FontSize.Size24
  186. grabOption2.TextColor3=Color3.new(1,1,1)
  187. grabOption2.TextStrokeTransparency=0
  188.  
  189. grabOption2:TweenPosition(UDim2.new(0,0,0.5,(40*2)+1),"Out","Bounce",0.6,false,nil)
  190. end
  191.  
  192. function hideGrabOptions()
  193. if plr.PlayerGui:findFirstChild("OptionsGui",true)~=nil then
  194. plr.PlayerGui.OptionsGui:Destroy()
  195. end
  196. end
  197.  
  198. for i,v in pairs(hm:GetChildren()) do
  199. if v:IsA("BasePart") then
  200. local w=Instance.new("Weld",hm)
  201. w.Part0=head
  202. w.Part1=v
  203. w.C0=head.CFrame:inverse()
  204. w.C1=v.CFrame:inverse()
  205. v.Anchored=false
  206. end
  207. end
  208.  
  209. function poseJointC0(joint,JB,cf,speed)
  210. joint.C0=joint.C0:lerp(JB*cf,speed)
  211. end
  212. function poseJointC1(joint,JB,cf,speed)
  213. joint.C1=joint.C1:lerp(JB*cf,speed)
  214. end
  215.  
  216. local RLattacking=false
  217. local grabbing=false
  218. local grabbingMode=false
  219. local grabbedCharacter=nil
  220. local grabWeld=nil
  221.  
  222. local dmgDebounce=false
  223.  
  224. local speed=1
  225.  
  226. --[[temp
  227.  
  228. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  229. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  230. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  231. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  232. poseJointC0(neck,nC0,CFrame.Angles(math.rad(13),math.rad(0),math.rad(0)),i*speed)
  233. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  234.  
  235. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  236. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  237. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  238. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  239. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  240. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  241.  
  242. swait()
  243. ]]
  244.  
  245. function sound(id,vol,pitch,parent)
  246. local s=Instance.new("Sound",parent)
  247. s.SoundId="http://www.roblox.com/asset/?id="..id..""
  248. s.Volume=vol
  249. s.Pitch=pitch
  250. game.Debris:AddItem(s,5)
  251. s:play()
  252. end
  253.  
  254. local EP=Instance.new("Model",ch);EP.Name="ExtraParts";
  255.  
  256. function magicBrick(pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts,meshType,meshId,scale,scaleAdd,loop,loopTransparency,repeatloop,repeatLoopWait,loopCFrame)
  257. local cw1=coroutine.wrap(function()
  258. for i=1,repeatloop do
  259. local x=doBrick(EP,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts)
  260. local z=doMesh(x,meshType,meshId,scale)
  261.  
  262. local cw2=coroutine.wrap(function()
  263. for i=1,loop do
  264. if loopTransparency then
  265. x.Transparency=i/loop
  266. z.Scale=z.Scale+scaleAdd
  267. x.CFrame=x.CFrame*loopCFrame
  268. wait()
  269. else
  270. z.Scale=z.Scale+scaleAdd
  271. x.CFrame=x.CFrame*loopCFrame
  272. end
  273. end
  274. x:Destroy()
  275. end)
  276. cw2()
  277. swait(repeatLoopWait)
  278. end
  279. end)
  280. cw1()
  281. end
  282.  
  283. local currentAnim=""
  284. local speed=0
  285. local doingMove=false
  286. local attacking=false
  287.  
  288. function anim(x)
  289. if not doingMove then
  290. if x=="jump" then
  291. if currentAnim==x then return end
  292. currentAnim=x
  293. speed=0.45
  294. print(x)
  295. for i=0,0.8,0.1*speed do
  296. if currentAnim~=x then break end
  297. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)),i*speed)
  298. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)),i*speed)
  299. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  300. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  301. poseJointC0(neck,nC0,CFrame.Angles(math.rad(8),math.rad(0),math.rad(0)),i*speed)
  302. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  303.  
  304. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  305. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  306. poseJointC1(rlm,rlmC1,CFrame.new(0.05,-0.35,0.35),i*speed)
  307. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  308. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  309. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  310. swait()
  311. end
  312. currentAnim=nil
  313. end
  314. if x=="descend" then
  315. if currentAnim==x then return end
  316. currentAnim=x
  317. speed=0.45
  318. print(x)
  319. for i=0,0.67,0.1*speed do
  320. if currentAnim~=x then break end
  321. if grabbingMode then
  322. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(87)),i*speed)
  323. end
  324. if not grabbingMode then
  325. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)),i*speed)
  326. end
  327. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0)),i*speed)
  328. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  329. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),i*speed)
  330. poseJointC0(neck,nC0,CFrame.Angles(math.rad(-24),math.rad(0),math.rad(0)),i*speed)
  331. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(24),math.rad(0),math.rad(0)),i*speed)
  332.  
  333. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  334. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  335. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  336. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  337. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  338. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  339. swait()
  340. end
  341. currentAnim=nil
  342. end
  343. if x=="walk" then
  344. if currentAnim==x then return end
  345. currentAnim=x
  346. speed=0.35
  347. print(x)
  348. while true do
  349. if currentAnim~=x then break end
  350. for i=0,0.8,0.1*speed do
  351. if currentAnim~=x then break end
  352. if grabbingMode then
  353. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(135),math.rad(0),math.rad(25)),i*speed)
  354. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),i*speed)
  355. end
  356. if not grabbingMode then
  357. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(-25)),i*speed)
  358. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(99),math.rad(0),math.rad(25)),i*speed)
  359. end
  360. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),i*speed)
  361. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(55),math.rad(0),math.rad(0)),i*speed)
  362. poseJointC0(neck,nC0,CFrame.Angles(math.rad(5),math.rad(12),math.rad(0)),i*speed)
  363. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-14),math.rad(-12),math.rad(-10)),i*speed)
  364.  
  365. if grabbingMode then
  366. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  367. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  368. end
  369. if not grabbingMode then
  370. poseJointC1(rm,rmC1,CFrame.new(0,0.45,0),i*speed)
  371. poseJointC1(lm,lmC1,CFrame.new(0,0.45,0),i*speed)
  372. end
  373. poseJointC1(rlm,rlmC1,CFrame.new(0.05,0,0),i*speed)
  374. poseJointC1(llm,llmC1,CFrame.new(-0.05,0,0),i*speed)
  375. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  376. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  377. swait()
  378. end
  379. for i=0,0.34,0.1*speed do
  380. if currentAnim~=x then break end
  381. if grabbingMode then
  382. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(135),math.rad(0),math.rad(25)),i*speed)
  383. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),i*speed)
  384. end
  385. if not grabbingMode then
  386. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(-25)),i*speed)
  387. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(99),math.rad(0),math.rad(25)),i*speed)
  388. end
  389. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),i*speed)
  390. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)),i*speed)
  391. poseJointC0(neck,nC0,CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),i*speed)
  392. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),i*speed)
  393.  
  394. if grabbingMode then
  395. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  396. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  397. end
  398. if not grabbingMode then
  399. poseJointC1(rm,rmC1,CFrame.new(0,0.45,0),i*speed)
  400. poseJointC1(lm,lmC1,CFrame.new(0,0.45,0),i*speed)
  401. end
  402. poseJointC1(rlm,rlmC1,CFrame.new(0.05,-0.75,0.7),i*speed)
  403. poseJointC1(llm,llmC1,CFrame.new(-0.05,0,0),i*speed)
  404. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  405. poseJointC1(rj,rjC1,CFrame.new(0,0.3,0),i*speed)
  406. swait()
  407. end
  408. for i=0,0.8,0.1*speed do
  409. if currentAnim~=x then break end
  410. if grabbingMode then
  411. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(135),math.rad(0),math.rad(25)),i*speed)
  412. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),i*speed)
  413. end
  414. if not grabbingMode then
  415. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(-25)),i*speed)
  416. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(99),math.rad(0),math.rad(25)),i*speed)
  417. end
  418. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(55),math.rad(0),math.rad(0)),i*speed)
  419. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),i*speed)
  420. poseJointC0(neck,nC0,CFrame.Angles(math.rad(5),math.rad(-12),math.rad(0)),i*speed)
  421. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-14),math.rad(12),math.rad(10)),i*speed)
  422.  
  423. if grabbingMode then
  424. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  425. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  426. end
  427. if not grabbingMode then
  428. poseJointC1(rm,rmC1,CFrame.new(0,0.45,0),i*speed)
  429. poseJointC1(lm,lmC1,CFrame.new(0,0.45,0),i*speed)
  430. end
  431. poseJointC1(rlm,rlmC1,CFrame.new(0.05,0,0),i*speed)
  432. poseJointC1(llm,llmC1,CFrame.new(-0.05,0,0),i*speed)
  433. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  434. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  435. swait()
  436. end
  437. for i=0,0.34,0.1*speed do
  438. if currentAnim~=x then break end
  439. if grabbingMode then
  440. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(135),math.rad(0),math.rad(25)),i*speed)
  441. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),i*speed)
  442. end
  443. if not grabbingMode then
  444. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(-25)),i*speed)
  445. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(99),math.rad(0),math.rad(25)),i*speed)
  446. end
  447. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)),i*speed)
  448. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),i*speed)
  449. poseJointC0(neck,nC0,CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),i*speed)
  450. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),i*speed)
  451.  
  452. if grabbingMode then
  453. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  454. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  455. end
  456. if not grabbingMode then
  457. poseJointC1(rm,rmC1,CFrame.new(0,0.45,0),i*speed)
  458. poseJointC1(lm,lmC1,CFrame.new(0,0.45,0),i*speed)
  459. end
  460. poseJointC1(rlm,rlmC1,CFrame.new(0.05,0,0),i*speed)
  461. poseJointC1(llm,llmC1,CFrame.new(-0.05,-0.75,0.7),i*speed)
  462. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  463. poseJointC1(rj,rjC1,CFrame.new(0,0.3,0),i*speed)
  464. swait()
  465. end
  466. end
  467. end
  468. if x=="idle" then
  469. if currentAnim==x then return end
  470. currentAnim=x
  471. speed=0.24
  472. print(x)
  473. for i=0,0.45,0.1*speed do
  474. if currentAnim~=x then break end
  475. if grabbingMode then
  476. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(145),math.rad(0),math.rad(45)),speed)
  477. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(12),math.rad(0),math.rad(-12)),speed)
  478. end
  479. if not grabbingMode then
  480. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(100),math.rad(0),math.rad(45)),speed)
  481. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(99),math.rad(0),math.rad(45)),speed)
  482. end
  483. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(12),math.rad(0),math.rad(12)),speed)
  484. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-23),math.rad(0),math.rad(-6)),speed)
  485. poseJointC0(neck,nC0,CFrame.Angles(math.rad(-4),math.rad(-45),math.rad(0)),speed)
  486. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-12),math.rad(45),math.rad(0)),speed)
  487.  
  488. poseJointC1(rm,rmC1,CFrame.new(0,0,0),speed)
  489. if grabbingMode then
  490. poseJointC1(lm,lmC1,CFrame.new(0,0,0),speed)
  491. end
  492. if not grabbingMode then
  493. poseJointC1(lm,lmC1,CFrame.new(0,0.75,0),speed)
  494. end
  495. poseJointC1(rlm,rlmC1,CFrame.new(0.05,-0.45,0.45),speed)
  496. poseJointC1(llm,llmC1,CFrame.new(-0.05,-0.45,0.35),speed)
  497. poseJointC1(neck,nC1,CFrame.new(0,0,0),speed)
  498. poseJointC1(rj,rjC1,CFrame.new(0,0.45,0),speed)
  499. swait()
  500. end
  501. while true do
  502. if currentAnim~=x then break end
  503. for i=0,0.75,0.1*speed do
  504. if currentAnim~=x then break end
  505. if grabbingMode then
  506. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(145),math.rad(0),math.rad(45)),i*speed)
  507. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(12),math.rad(0),math.rad(-12)),i*speed)
  508. end
  509. if not grabbingMode then
  510. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(112),math.rad(0),math.rad(45)),i*speed)
  511. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(45)),i*speed)
  512. end
  513. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(12),math.rad(0),math.rad(12)),i*speed)
  514. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-24),math.rad(0),math.rad(-6)),i*speed)
  515. poseJointC0(neck,nC0,CFrame.Angles(math.rad(-4),math.rad(-45),math.rad(0)),i*speed)
  516. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-12),math.rad(45),math.rad(0)),i*speed)
  517.  
  518. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  519. if grabbingMode then
  520. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  521. end
  522. if not grabbingMode then
  523. poseJointC1(lm,lmC1,CFrame.new(0,0.75,0),i*speed)
  524. end
  525. poseJointC1(rlm,rlmC1,CFrame.new(0.05,-0.45,0.45),i*speed)
  526. poseJointC1(llm,llmC1,CFrame.new(-0.05,-0.55,0.35),i*speed)
  527. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  528. poseJointC1(rj,rjC1,CFrame.new(0,0.55,0),i*speed)
  529. swait()
  530. end
  531. for i=0,0.75,0.1*speed do
  532. if currentAnim~=x then break end
  533. if grabbingMode then
  534. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(145),math.rad(0),math.rad(45)),i*speed)
  535. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(12),math.rad(0),math.rad(-12)),i*speed)
  536. end
  537. if not grabbingMode then
  538. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(100),math.rad(0),math.rad(45)),i*speed)
  539. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(99),math.rad(0),math.rad(45)),i*speed)
  540. end
  541. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(12),math.rad(0),math.rad(12)),i*speed)
  542. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-23),math.rad(0),math.rad(-6)),i*speed)
  543. poseJointC0(neck,nC0,CFrame.Angles(math.rad(-4),math.rad(-45),math.rad(0)),i*speed)
  544. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-12),math.rad(45),math.rad(0)),i*speed)
  545.  
  546. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  547. if grabbingMode then
  548. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  549. end
  550. if not grabbingMode then
  551. poseJointC1(lm,lmC1,CFrame.new(0,0.75,0),i*speed)
  552. end
  553. poseJointC1(rlm,rlmC1,CFrame.new(0.05,-0.45,0.45),i*speed)
  554. poseJointC1(llm,llmC1,CFrame.new(-0.05,-0.45,0.35),i*speed)
  555. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  556. poseJointC1(rj,rjC1,CFrame.new(0,0.45,0),i*speed)
  557. swait()
  558. end
  559. end
  560. end
  561. end
  562. if doingMove then
  563. if x=="spar1" then
  564. if currentAnim==x then return end
  565. currentAnim=x
  566. speed=0.75
  567. print(x)
  568. for i=0,0.5,0.1*speed do
  569. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(75),math.rad(0),math.rad(-45)),i*speed)
  570. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45)),i*speed)
  571. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(45)),i*speed)
  572. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-12)),i*speed)
  573. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),i*speed)
  574. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(90),math.rad(12)),i*speed)
  575.  
  576. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  577. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  578. poseJointC1(rlm,rlmC1,CFrame.new(0,-0.2,0),i*speed)
  579. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  580. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  581. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  582. swait()
  583. end
  584. attacking=true
  585. RLattacking=true
  586. sound(233856146,1,1,rl)
  587. for i=0,1,0.1*speed do
  588. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(80),math.rad(0),math.rad(-45)),i*speed)
  589. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45)),i*speed)
  590. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(106.5)),i*speed)
  591. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)),i*speed)
  592. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),i*speed)
  593. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(90),math.rad(45)),i*speed)
  594.  
  595. poseJointC1(rm,rmC1,CFrame.new(0,0.5,0),i*speed)
  596. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  597. poseJointC1(rlm,rlmC1,CFrame.new(0,0.2,0),i*speed)
  598. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  599. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  600. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  601. swait()
  602. end
  603. attacking=false
  604. RLattacking=false
  605. currentAnim=nil
  606. end
  607. if x=="spar2" then
  608. if currentAnim==x then return end
  609. currentAnim=x
  610. speed=0.75
  611. print(x)
  612. for i=0,0.5,0.1*speed do
  613. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(45),math.rad(0),math.rad(-45)),i*speed)
  614. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(45),math.rad(0),math.rad(45)),i*speed)
  615. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(45)),i*speed)
  616. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),i*speed)
  617. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),i*speed)
  618. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(5),math.rad(-25),math.rad(0)),i*speed)
  619.  
  620. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  621. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  622. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  623. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  624. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  625. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  626. swait()
  627. end
  628. attacking=true
  629. RLattacking=true
  630. sound(233856146,1,0.85,rl)
  631. for i=0,1,0.1*speed do
  632. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(45)),i*speed)
  633. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-45)),i*speed)
  634. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(0)),i*speed)
  635. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),i*speed)
  636. poseJointC0(neck,nC0,CFrame.Angles(math.rad(-23),math.rad(0),math.rad(0)),i*speed)
  637. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(23),math.rad(0),math.rad(0)),i*speed)
  638.  
  639. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  640. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  641. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  642. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  643. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  644. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  645. swait()
  646. end
  647. attacking=false
  648. RLattacking=false
  649. currentAnim=nil
  650. end
  651. if x=="grab" then
  652. if currentAnim==x then return end
  653. currentAnim=x
  654. speed=0.75
  655. print(x)
  656. for i=0,0.5,0.1*speed do
  657. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(45),math.rad(0),math.rad(5)),i*speed)
  658. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  659. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  660. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  661. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  662. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),i*speed)
  663.  
  664. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  665. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  666. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  667. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  668. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  669. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  670. swait()
  671. end
  672. attacking=true
  673. grabbing=true
  674. sound(233856146,1,0.95,rl)
  675. for i=0,1,0.1*speed do
  676. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(125),math.rad(0),math.rad(-25)),i*speed)
  677. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),i*speed)
  678. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  679. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  680. poseJointC0(neck,nC0,CFrame.Angles(math.rad(13),math.rad(-35),math.rad(0)),i*speed)
  681. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  682.  
  683. poseJointC1(rm,rmC1,CFrame.new(0,1,0),i*speed)
  684. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  685. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  686. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  687. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  688. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  689. swait()
  690. end
  691. attacking=false
  692. grabbing=false
  693. currentAnim=nil
  694. end
  695. if x=="release" then
  696. if currentAnim==x then return end
  697. currentAnim=x
  698. speed=0.75
  699. print(x)
  700. for i=0,0.5,0.1*speed do
  701. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(45),math.rad(0),math.rad(5)),i*speed)
  702. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  703. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  704. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  705. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  706. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),i*speed)
  707.  
  708. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  709. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  710. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  711. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  712. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  713. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  714. swait()
  715. end
  716. sound(233856146,1,0.95,rl)
  717. grabWeld:Destroy()
  718. local bv=Instance.new("BodyVelocity",grabbedCharacter:WaitForChild("Torso"))
  719. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  720. bv.velocity=head.CFrame.lookVector*50+Vector3.new(0,15,0)
  721. game.Debris:AddItem(bv,0.05)
  722. grabbedCharacter.Humanoid.WalkSpeed=16
  723. grabbedCharacter.Humanoid.JumpPower=50
  724. for i=0,1,0.1*speed do
  725. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(125),math.rad(0),math.rad(-25)),i*speed)
  726. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),i*speed)
  727. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  728. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  729. poseJointC0(neck,nC0,CFrame.Angles(math.rad(13),math.rad(-35),math.rad(0)),i*speed)
  730. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  731.  
  732. poseJointC1(rm,rmC1,CFrame.new(0,1,0),i*speed)
  733. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  734. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  735. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  736. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  737. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  738. swait()
  739. end
  740. currentAnim=nil
  741. end
  742. if x=="grabPose" then
  743. if currentAnim==x then return end
  744. currentAnim=x
  745. speed=0.75
  746. print(x)
  747. for i=0,1,0.1*speed do
  748. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(125),math.rad(0),math.rad(-25)),i*speed)
  749. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),i*speed)
  750. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  751. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  752. poseJointC0(neck,nC0,CFrame.Angles(math.rad(13),math.rad(-35),math.rad(0)),i*speed)
  753. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  754.  
  755. poseJointC1(rm,rmC1,CFrame.new(0,1,0),i*speed)
  756. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  757. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  758. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  759. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  760. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  761. swait()
  762. end
  763. end
  764. if x=="airAttack" then
  765. if currentAnim==x then return end
  766. currentAnim=x
  767. speed=0.75
  768. print(x)
  769. for i=0,0.5,0.1*speed do
  770. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(45),math.rad(0),math.rad(5)),i*speed)
  771. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  772. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  773. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  774. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  775. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),i*speed)
  776.  
  777. poseJointC1(rm,rmC1,CFrame.new(0,0,0),i*speed)
  778. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  779. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  780. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  781. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  782. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  783. swait()
  784. end
  785. sound(506001681,1,0.95,rl)
  786. grabWeld:Destroy()
  787. local bv=Instance.new("BodyVelocity",grabbedCharacter:WaitForChild("Torso"))
  788. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  789. bv.velocity=head.CFrame.lookVector*10+Vector3.new(0,30,0)
  790. game.Debris:AddItem(bv,0.05)
  791. local bf=Instance.new("BodyForce",grabbedCharacter:WaitForChild("Torso"))
  792. bf.force=Vector3.new(0,750,0)*grabbedCharacter:WaitForChild("Torso"):GetMass()
  793. game.Debris:AddItem(bf,2.5)
  794. grabbedCharacter.Humanoid.WalkSpeed=16
  795. grabbedCharacter.Humanoid.JumpPower=50
  796. for i=0,1,0.1*speed do
  797. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(150),math.rad(0),math.rad(-25)),i*speed)
  798. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),i*speed)
  799. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  800. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  801. poseJointC0(neck,nC0,CFrame.Angles(math.rad(17.5),math.rad(-35),math.rad(0)),i*speed)
  802. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),i*speed)
  803.  
  804. poseJointC1(rm,rmC1,CFrame.new(0,1,0),i*speed)
  805. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  806. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),i*speed)
  807. poseJointC1(llm,llmC1,CFrame.new(0,0,0),i*speed)
  808. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  809. poseJointC1(rj,rjC1,CFrame.new(0,0,0),i*speed)
  810. swait()
  811. end
  812. speed=0.2
  813. hum.WalkSpeed=0
  814. hum.JumpPower=0
  815. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.new(0,0,0),Vector3.new(1,1,1),BrickColor.new("Deep orange"),"Neon",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=6552202",Vector3.new(1,1,1),Vector3.new(10,10,10),5,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
  816. coroutine.resume(coroutine.create(function()
  817. for i=1,100 do
  818. magicBrick(Vector3.new(0,0,0),ra.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))*CFrame.new(-5/2,-5/2,-5/2),Vector3.new(1,1,1),BrickColor.new("Deep orange"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.2,-0.2,-0.2),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  819. magicBrick(Vector3.new(0,0,0),ra.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))*CFrame.new(-5/2,-5/2,-5/2),Vector3.new(1,1,1),BrickColor.new("Really black"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.2,-0.2,-0.2),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  820. swait(.1)
  821. end
  822. end))
  823. for i,v in pairs(grabbedCharacter:GetChildren()) do
  824. if v:IsA("Part") then
  825. v.CanCollide=false
  826. end
  827. if v.ClassName=="Hat" then
  828. for i,v in pairs(v:GetChildren()) do
  829. if v:IsA("BasePart") then
  830. v.CanCollide=false
  831. end
  832. end
  833. end
  834. end
  835. sound(260430079,1,0.87,head)
  836. for i=0,1.25,0.1*speed do
  837. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(90),math.rad(0),math.rad(12)),i*speed)
  838. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),i*speed)
  839. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),i*speed)
  840. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-23.5),math.rad(0),math.rad(0)),i*speed)
  841. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(85),math.rad(0)),i*speed)
  842. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(0),math.rad(-85),math.rad(0)),i*speed)
  843.  
  844. poseJointC1(rm,rmC1,CFrame.new(0,-0.65,0),i*speed)
  845. poseJointC1(lm,lmC1,CFrame.new(0,0,0),i*speed)
  846. poseJointC1(rlm,rlmC1,CFrame.new(0,-0.45,0.3),i*speed)
  847. poseJointC1(llm,llmC1,CFrame.new(0,-0.45,0.3),i*speed)
  848. poseJointC1(neck,nC1,CFrame.new(0,0,0),i*speed)
  849. poseJointC1(rj,rjC1,CFrame.new(0,0.45,0),i*speed)
  850. swait()
  851. end
  852. local bv=Instance.new("BodyVelocity",tor)
  853. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  854. bv.velocity=head.CFrame.lookVector*55+Vector3.new(0,60,0)
  855. game.Debris:AddItem(bv,0.1)
  856. for i=0,0.25,0.1*speed do
  857. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(110),math.rad(0),math.rad(24)),speed)
  858. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-24)),speed)
  859. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  860. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-23.5),math.rad(0),math.rad(0)),speed)
  861. poseJointC0(neck,nC0,CFrame.Angles(math.rad(-12),math.rad(75),math.rad(0)),speed)
  862. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-75),math.rad(-75),math.rad(0)),speed)
  863.  
  864. poseJointC1(rm,rmC1,CFrame.new(0,-0.45,0),speed)
  865. poseJointC1(lm,lmC1,CFrame.new(0,0,0),speed)
  866. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),speed)
  867. poseJointC1(llm,llmC1,CFrame.new(0,0,0),speed)
  868. poseJointC1(neck,nC1,CFrame.new(0,0,0),speed)
  869. poseJointC1(rj,rjC1,CFrame.new(0,0,0),speed)
  870. swait()
  871. end
  872. local didHit=false
  873. coroutine.resume(coroutine.create(function()
  874. if (grabbedCharacter:WaitForChild("Torso").Position-tor.Position).magnitude<=10 then
  875. if not dmgDebounce then
  876. dmgDebounce=true
  877. sound(227194094,1,0.8,ra)
  878. sound(260430079,2.5,0.9,head)
  879. coroutine.resume(coroutine.create(function()
  880. for i=1,3 do
  881. magicBrick(Vector3.new(0,0,0),head.CFrame*CFrame.Angles(math.rad(24),0,0)*CFrame.new(0,0,-8+i*2),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"SmoothPlastic",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(3,3,3),Vector3.new(2+i,2+i,0.5),6,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
  882. end
  883. end))
  884. sound(206082327,2.5,1,grabbedCharacter:WaitForChild("Torso"))
  885. grabbedCharacter.Humanoid:TakeDamage(grabbedCharacter.Humanoid.MaxHealth/5)
  886. grabbedCharacter.Humanoid.PlatformStand=false
  887. local bv=Instance.new("BodyVelocity",grabbedCharacter:WaitForChild("Torso"))
  888. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  889. bv.velocity=head.CFrame.lookVector*100+Vector3.new(0,0,0)
  890. game.Debris:AddItem(bv,0.05)
  891. didHit=true
  892. wait(0.5)
  893. dmgDebounce=false
  894. end
  895. end
  896. end))
  897. for i=0,0.25,0.1*speed do
  898. poseJointC0(rm,rmC0,CFrame.Angles(math.rad(120),math.rad(0),math.rad(-24)),speed)
  899. poseJointC0(lm,lmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-24)),speed)
  900. poseJointC0(rlm,rlmC0,CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  901. poseJointC0(llm,llmC0,CFrame.Angles(math.rad(-23.5),math.rad(0),math.rad(0)),speed)
  902. poseJointC0(neck,nC0,CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  903. poseJointC0(rj,rjC0,CFrame.Angles(math.rad(-35),math.rad(45),math.rad(0)),speed)
  904.  
  905. poseJointC1(rm,rmC1,CFrame.new(0,0.35,0),speed)
  906. poseJointC1(lm,lmC1,CFrame.new(0,0,0),speed)
  907. poseJointC1(rlm,rlmC1,CFrame.new(0,0,0),speed)
  908. poseJointC1(llm,llmC1,CFrame.new(0,0,0),speed)
  909. poseJointC1(neck,nC1,CFrame.new(0,0,0),speed)
  910. poseJointC1(rj,rjC1,CFrame.new(0,0,0),speed)
  911. swait()
  912. end
  913. currentAnim=nil
  914. end
  915. end
  916. end
  917.  
  918. function spar1()
  919. if not doingMove then
  920. doingMove=true
  921. anim("spar1")
  922. doingMove=false
  923. end
  924. end
  925.  
  926. function spar2()
  927. if not doingMove then
  928. doingMove=true
  929. anim("spar2")
  930. doingMove=false
  931. end
  932. end
  933.  
  934. function grab()
  935. if not doingMove then
  936. doingMove=true
  937. hum.WalkSpeed=0
  938. anim("grab")
  939. doingMove=false
  940. end
  941. end
  942.  
  943. function release()
  944. if not doingMove then
  945. doingMove=true
  946. anim("release")
  947. doingMove=false
  948. end
  949. end
  950.  
  951. function airAttack()
  952. if not doingMove then
  953. doingMove=true
  954. anim("airAttack")
  955. doingMove=false
  956. end
  957. end
  958.  
  959. local currentSparAttack=1
  960.  
  961. mouse.Button1Down:connect(function()
  962. if grabbingMode then return end
  963. if currentSparAttack==1 then
  964. currentSparAttack=2
  965. spar1()
  966. elseif currentSparAttack==2 then
  967. currentSparAttack=1
  968. spar2()
  969. end
  970. end)
  971.  
  972. mouse.KeyDown:connect(function(k)
  973. if k=="f" then
  974. if not grabbingMode then
  975. grab()
  976. elseif grabbingMode then
  977. grabbingMode=false
  978. release()
  979. hideGrabOptions()
  980. end
  981. end
  982. if k=="e" then
  983. if grabbingMode then
  984. grabbingMode=false
  985. airAttack()
  986. hideGrabOptions()
  987. end
  988. end
  989. if k=="v" then
  990. sound(221920694,1,0.87,workspace)
  991. coroutine.resume(coroutine.create(function()
  992. for i=1,50 do
  993. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,50),math.random(1,50),math.random(1,50))*CFrame.new(-50/2,-50/2,-50/2),Vector3.new(1,1,1),BrickColor.new("Deep orange"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3.5,3.5,3.5),Vector3.new(5,5,5),16,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  994. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,50),math.random(1,50),math.random(1,50))*CFrame.new(-50/2,-50/2,-50/2),Vector3.new(1,1,1),BrickColor.new("Really black"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3.5,3.5,3.5),Vector3.new(1,1,1),35,true,1,0,CFrame.new(0,2,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  995. swait(.1)
  996. end
  997. end))
  998. end
  999. end)
  1000.  
  1001. game:GetService("RunService").RenderStepped:connect(function()
  1002. if grabbingMode then
  1003. hum.WalkSpeed=defWS/1.1
  1004. hum.JumpPower=0
  1005. end
  1006. if not grabbingMode then
  1007. hum.WalkSpeed=defWS
  1008. hum.JumpPower=defJP
  1009. end
  1010. if attacking then
  1011. if RLattacking then
  1012. for i,v in pairs(workspace:GetChildren()) do
  1013. if v:findFirstChild("Humanoid",true)~=nil and v~=ch then
  1014. local vTorso=v:WaitForChild("Torso");
  1015. if (vTorso.Position-rl.Position).magnitude<=2.5 then
  1016. if not dmgDebounce then
  1017. dmgDebounce=true
  1018. sound(694048922,5,1,vTorso)
  1019. v.Humanoid:TakeDamage(7.5)
  1020. local bv=Instance.new("BodyVelocity",v:WaitForChild("Torso"))
  1021. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1022. bv.velocity=head.CFrame.lookVector*25+Vector3.new(0,10,0)
  1023. game.Debris:AddItem(bv,0.05)
  1024. wait(0.5)
  1025. dmgDebounce=false
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031. if grabbing then
  1032. for i,v in pairs(workspace:GetChildren()) do
  1033. if v:findFirstChild("Humanoid",true)~=nil and v~=ch then
  1034. local vTorso=v:WaitForChild("Torso");
  1035. if (vTorso.Position-ra.Position).magnitude<=3 then
  1036. if not dmgDebounce then
  1037. dmgDebounce=true
  1038. sound(200632821,5,1,vTorso)
  1039. v.Humanoid:TakeDamage(2)
  1040.  
  1041. grabbingMode=true
  1042. grabbedCharacter=vTorso.Parent
  1043. grabbedCharacter.Humanoid.PlatformStand=false
  1044. grabbedCharacter.Humanoid.WalkSpeed=0
  1045. grabbedCharacter.Humanoid.JumpPower=0
  1046. for i,v in pairs(grabbedCharacter:GetChildren()) do
  1047. if v:IsA("Part") then
  1048. v.CanCollide=false
  1049. end
  1050. if v.ClassName=="Hat" then
  1051. for i,v in pairs(v:GetChildren()) do
  1052. if v:IsA("BasePart") then
  1053. v.CanCollide=false
  1054. end
  1055. end
  1056. end
  1057. end
  1058. grabWeld=Instance.new("Weld",grabPart)
  1059. grabWeld.Part0=vTorso
  1060. grabWeld.Part1=grabPart
  1061. grabWeld.C0=CFrame.Angles(math.rad(90),0,0)
  1062.  
  1063. displayGrabOptions()
  1064.  
  1065. wait(0.5)
  1066. dmgDebounce=false
  1067. end
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073. if hum.Jump and not grabbingMode then
  1074. anim("jump")
  1075. swait(1/4)
  1076. hum.Jump=false
  1077. end
  1078. if Vector3.new(0,tor.Velocity.y,0).magnitude>=10 and currentAnim~="jump" and currentAnim~="land" and hum:GetState()==Enum.HumanoidStateType.Freefall and not hum.Jump then
  1079. anim("descend")
  1080. end
  1081. if Vector3.new(tor.Velocity.x,0,tor.Velocity.z).magnitude<5 and currentAnim~="land" and currentAnim~="jump" and currentAnim~="descend" and hum:GetState()~=Enum.HumanoidStateType.Jumping and hum:GetState()~=Enum.HumanoidStateType.Freefall then
  1082. anim("idle")
  1083. elseif Vector3.new(tor.Velocity.x,0,tor.Velocity.z).magnitude>=5 and currentAnim~="land" and currentAnim~="jump" and currentAnim~="descend" and hum:GetState()~=Enum.HumanoidStateType.Jumping and hum:GetState()~=Enum.HumanoidStateType.Freefall then
  1084. anim("walk")
  1085. end
  1086. if grabbingMode then
  1087. grabbedCharacter.Humanoid.PlatformStand=false
  1088. anim("grabPose")
  1089. end
  1090. grabPart.CFrame=ra:GetRenderCFrame()*CFrame.new(0,-1.25,-0.6)*CFrame.Angles(math.rad(-90),0,0)
  1091. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement