Advertisement
JRKPastesBins

Untitled

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