SpiritualDonut

Untitled

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