Advertisement
Thefrozen106

Heavy Ball Script

Jun 15th, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.81 KB | None | 0 0
  1. --lolololololol
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local chr = plr.Character
  5. local maus = plr:GetMouse()
  6. local PGui=plr.PlayerGui
  7. local lleg = chr["Left Leg"]
  8. local rleg = chr["Right Leg"]
  9. local larm = chr["Left Arm"]
  10. local rarm = chr["Right Arm"]
  11. local hed = chr.Head
  12. local rutprt = chr.HumanoidRootPart
  13. local torso = chr.Torso
  14. local otheranims=false
  15. local armmovement=false
  16. local hitdb=false
  17. local toss=false
  18. local jamp=false
  19. chr.Animate.Disabled=true
  20. chr.Humanoid.WalkSpeed=10
  21. local running=false
  22. local tempignore={}
  23.  
  24. local weit=Instance.new('Part',hed)
  25. weit.Shape='Ball'
  26. weit.BrickColor=BrickColor.new('Black')
  27. weit.Material='Neon'
  28. weit.Size=Vector3.new(3,3,3)
  29. weit.CanCollide=true
  30. weit.Name='Weight'
  31. weit.Friction=1
  32. weit.Elasticity=0
  33.  
  34.  
  35.  
  36. local at1=Instance.new("Attachment",torso)
  37. local at2=Instance.new("Attachment",weit)
  38. local const=Instance.new("RopeConstraint",chr)
  39. const.Attachment0=at2
  40. const.Attachment1=at1
  41. const.Visible=true
  42. const.Restitution=0
  43. const.Length=100
  44.  
  45. local pseudohead=hed:Clone()
  46. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  47. pseudohead.Name='PseudoHead'
  48. pseudohead.Parent=chr.Head
  49. local pseudoweld=Instance.new('Weld',torso)
  50. pseudoweld.Part0=hed
  51. pseudoweld.Name='PseudoHedWld'
  52. pseudoweld.Part1=pseudohead
  53. hed.Transparency=1
  54.  
  55. --[[coroutine.resume(coroutine.create(function()
  56. local rate=.05
  57. local Hats={}
  58. for i,x in pairs(chr:GetChildren()) do if x:IsA("Hat") then table.insert(Hats,x) x.Handle.Mesh.TextureId="http://www.roblox.com/asset?id=25701026"
  59. end
  60. end
  61. local lam=Instance.new("SpecialMesh",larm)
  62. lam.MeshId="http://www.roblox.com/asset?id=12221505"
  63. lam.TextureId="http://www.roblox.com/asset?id=25701026"
  64. local ram=Instance.new("SpecialMesh",rarm)
  65. ram.MeshId="http://www.roblox.com/asset?id=12221505"
  66. ram.TextureId="http://www.roblox.com/asset?id=25701026"
  67. local rlm=Instance.new("SpecialMesh",rleg)
  68. rlm.MeshId="http://www.roblox.com/asset?id=12221626"
  69. rlm.TextureId="http://www.roblox.com/asset?id=25701026"
  70. local llm=Instance.new("SpecialMesh",lleg)
  71. llm.MeshId="http://www.roblox.com/asset?id=12221626"
  72. llm.TextureId="http://www.roblox.com/asset?id=25701026"
  73. local trm=Instance.new("SpecialMesh",torso)
  74. trm.MeshId="http://www.roblox.com/asset?id=12221758"
  75. trm.TextureId="http://www.roblox.com/asset?id=25701026"
  76. local hem=Instance.new("SpecialMesh",hed)
  77. hem.MeshId="rbxasset://fonts/head.mesh"
  78. hem.TextureId="http://www.roblox.com/asset?id=25701026"
  79. local hem2=Instance.new("SpecialMesh",pseudohead)
  80. hem2.MeshId="rbxasset://fonts/head.mesh"
  81. hem2.TextureId="http://www.roblox.com/asset?id=25701026"
  82. local weitmesh=Instance.new("SpecialMesh",weit)
  83. weitmesh.MeshId="http://www.roblox.com/asset/?id=1527559"
  84. weitmesh.TextureId="http://www.roblox.com/asset?id=25701026"
  85. local asd=Instance.new('PointLight',torso)
  86. asd.Brightness=123
  87. asd.Range=12
  88. asd.Shadows=true
  89.  
  90. while wait'0' do
  91. for a=0,1,rate do
  92. lam.VertexColor=Vector3.new(a,0,-a+1)
  93. ram.VertexColor=Vector3.new(a,0,-a+1)
  94. rlm.VertexColor=Vector3.new(a,0,-a+1)
  95. llm.VertexColor=Vector3.new(a,0,-a+1)
  96. trm.VertexColor=Vector3.new(a,0,-a+1)
  97. hem.VertexColor=Vector3.new(a,0,-a+1)
  98. hem2.VertexColor=Vector3.new(a,0,-a+1)
  99. weitmesh.VertexColor=Vector3.new(a,0,-a+1)
  100. asd.Color=Color3.new(a,0,-a+1)
  101. coroutine.wrap(function()
  102. for x=1,#Hats do
  103. Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1)
  104. end
  105. end)()
  106. wait''
  107. end
  108. for a=0,1,rate do
  109. lam.VertexColor=Vector3.new(-a+1,a,0)
  110. ram.VertexColor=Vector3.new(-a+1,a,0)
  111. rlm.VertexColor=Vector3.new(-a+1,a,0)
  112. llm.VertexColor=Vector3.new(-a+1,a,0)
  113. trm.VertexColor=Vector3.new(-a+1,a,0)
  114. hem.VertexColor=Vector3.new(-a+1,a,0)
  115. hem2.VertexColor=Vector3.new(-a+1,a,0)
  116. weitmesh.VertexColor=Vector3.new(-a+1,a,0)
  117. asd.Color=Color3.new(-a+1,a,0)
  118. coroutine.wrap(function()
  119. for x=1,#Hats do
  120. Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0)
  121. end
  122. end)()
  123. wait''
  124. end
  125. for a=0,1,rate do
  126. lam.VertexColor=Vector3.new(0,-a+1,a)
  127. ram.VertexColor=Vector3.new(0,-a+1,a)
  128. rlm.VertexColor=Vector3.new(0,-a+1,a)
  129. llm.VertexColor=Vector3.new(0,-a+1,a)
  130. trm.VertexColor=Vector3.new(0,-a+1,a)
  131. hem.VertexColor=Vector3.new(0,-a+1,a)
  132. hem2.VertexColor=Vector3.new(0,-a+1,a)
  133. weitmesh.VertexColor=Vector3.new(0,-a+1,a)
  134. asd.Color=Color3.new(0,-a+1,a)
  135. coroutine.wrap(function()
  136. for x=1,#Hats do
  137. Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a)
  138. end
  139. end)()
  140. wait''
  141. end
  142. end
  143. end))]]
  144.  
  145.  
  146. function Lerp(a, b, i)
  147. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  148. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  149. local calx = com1[1] + (com2[1] - com1[1]) * i
  150. local caly = com1[2] + (com2[2] - com1[2]) * i
  151. local calz = com1[3] + (com2[3] - com1[3]) * i
  152. local cala = com1[4] + (com2[4] - com1[4]) * i
  153. local calb = com1[5] + (com2[5] - com1[5]) * i
  154. local calc = com1[6] + (com2[6] - com1[6]) * i
  155. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  156. end
  157.  
  158. function TwnSingleNumber(s,f,m)
  159. local wot=s+(f-s)*m
  160. return wot
  161. end
  162.  
  163. function TwnVector3(q,w,e)
  164. local begin={q.x,q.y,q.z}
  165. local ending={w.x,w.y,w.z}
  166. local bgx=begin[1]+(ending[1]-begin[1])*e
  167. local bgy=begin[2]+(ending[2]-begin[2])*e
  168. local bgz=begin[3]+(ending[3]-begin[3])*e
  169. return Vector3.new(bgx,bgy,bgz)
  170. end
  171.  
  172. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  173. wld = Instance.new("Weld", wp1)
  174. wld.Part0 = wp0
  175. wld.Part1 = wp1
  176. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  177. end
  178.  
  179. newWeld(law, torso, larm, -1.5, 0.5, 0)
  180. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  181. newWeld(llw, torso, lleg, -.5, -2, 0)
  182. newWeld(rlw, torso, rleg, .5, -2, 0)
  183. newWeld(hw, torso, hed, 0, 1.5, 0)
  184. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  185. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  186. rleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
  187. lleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
  188.  
  189. local anim = "Idling"
  190. local lastanim = "Idling"
  191. local val = 0
  192. local syne = 0
  193. local num = 0
  194. local runtime = 0
  195.  
  196.  
  197. maus.KeyUp:connect(function(kei)
  198. if string.byte(kei)==48 and not otheranims then
  199. running=false
  200. chr.Humanoid.WalkSpeed=10
  201. end
  202. end)
  203.  
  204. maus.KeyDown:connect(function(kei)
  205. if string.byte(kei)==48 and not otheranims then
  206. running=true
  207. chr.Humanoid.WalkSpeed=18
  208. end
  209.  
  210. chr.Humanoid.Changed:connect(function(ch)
  211. if ch=='Jump' and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand then
  212. local rei=Ray.new(torso.CFrame.p,((torso.CFrame*CFrame.new(0,-1,0)).p-torso.CFrame.p).unit*10)
  213. local t,p=Workspace:FindPartOnRay(rei,chr)
  214. if t then
  215. chr.Humanoid.Jump=false
  216. end
  217. end
  218. end)
  219.  
  220. if kei==' ' and not chr.Humanoid.Jump and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand and not jamp then
  221. local rei=Ray.new(torso.CFrame.p,((rutprt.CFrame*CFrame.new(0,-1,0)).p-rutprt.CFrame.p).unit*3)
  222. local t,p=Workspace:FindPartOnRay(rei,chr)
  223. if t then
  224. chr.Humanoid.PlatformStand=true
  225. jamp=true
  226. coroutine.wrap(function()
  227. repeat wait()
  228. chr.Torso.Velocity=Vector3.new(0,35,0)
  229. until not chr.Humanoid.PlatformStand
  230. end)()
  231. wait(.1)
  232. chr.Humanoid.PlatformStand=false
  233. jamp=false
  234. end
  235. end
  236. end)
  237.  
  238.  
  239.  
  240. local grunt=Instance.new('Sound',hed)
  241. grunt.Name='Grunt'
  242. grunt.Volume=1
  243. grunt.Pitch=.9
  244. grunt.Looped=false
  245. grunt.SoundId="http://www.roblox.com/asset?id=143384769"
  246.  
  247.  
  248.  
  249. local hut=Instance.new('Sound',weit)
  250. hut.Name='Hit'
  251. hut.Volume=1
  252. hut.Looped=false
  253. hut.Pitch=1
  254. hut.SoundId="http://www.roblox.com/asset?id=146163534"
  255. local wtl=Instance.new('PointLight',weit)
  256. wtl.Shadows=true
  257. wtl.Brightness=123
  258. wtl.Range=12
  259. wtl.Color=weit.BrickColor.Color
  260. wtl.Name='WeightLight'
  261. local wgui=Instance.new('SurfaceGui',weit)
  262. wgui.Face='Front'
  263. wgui.Adornee=weit
  264. wgui.CanvasSize=Vector2.new(100,100)
  265. wgui.Name='WeightGui'
  266. local tb=Instance.new('TextLabel',wgui)
  267. tb.Size=UDim2.new(1,0,1,0)
  268. tb.Text=[[LAWL'D]]
  269. tb.TextColor3=Color3.new(1,1,1)
  270. tb.BackgroundTransparency=1
  271. local wtw=Instance.new('Weld',torso)
  272. wtw.Name='WeightWeld'
  273. wtw.Part0=torso
  274. wtw.Part1=weit
  275. wtw.C0=CFrame.new(0,.5,-1.8)*CFrame.Angles(math.rad(-20),0,0)
  276. weit.Touched:connect(function(hit)
  277. if hit and hit.CanCollide and hit.Parent and hit.Parent~=chr and hit.Parent.Parent~=chr and otheranims then
  278. hum=hit.Parent:findFirstChild('Humanoid') and hit.Parent:findFirstChild('Torso') and hit.Parent.ClassName=='Model'
  279. if hum and not hitdb then
  280. local ex=Instance.new('Explosion',workspace)
  281. ex.DestroyJointRadiusPercent=0
  282. ex.BlastPressure=222222
  283. ex.BlastRadius=18
  284. hitdb=true
  285. ex.Position=hit.Parent.Torso.Position
  286. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(101*(hit.Parent.Humanoid.MaxHealth/100))
  287. table.insert(tempignore,hit.Parent)
  288. hut:Play()
  289. toss=false
  290. hit.Parent.Humanoid.PlatformStand=true
  291. coroutine.wrap(function()
  292. repeat wait()
  293. hit.Parent.Torso.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*100
  294. weit.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-10+Vector3.new(0,20,0)
  295. until not hit.Parent.Humanoid.PlatformStand
  296. end)()
  297. wait(.2)
  298. hit.Parent.Humanoid.PlatformStand=false
  299. end
  300. end
  301. end)
  302. maus.Button1Down:connect(function()
  303. if not otheranims then
  304. chr.Humanoid.WalkSpeed=0
  305. otheranims=true
  306. anim='PreThrow'
  307. hitdb=false
  308. coroutine.resume(coroutine.create(function()
  309. for fgh,hgf in pairs(tempignore) do
  310. table.remove(tempignore,hgf)
  311. end
  312. end))
  313. wait(.3)
  314. grunt:Play()
  315. wait(.2)
  316. anim='Throw'
  317. const.Parent=nil
  318. wtw.Parent=nil
  319. wtw.Part0=nil
  320. toss=true
  321. weit.CFrame=rutprt.CFrame*CFrame.new(0,3,-3)
  322. wait()
  323. weit.Velocity=((rutprt.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-200+Vector3.new(0,12,0)
  324. wait(.25)
  325. const.Parent=chr
  326. anim='Rest'
  327. wait(1)
  328. wtw.Parent=torso
  329. wtw.Part0=torso
  330. otheranims=false
  331. chr.Humanoid.WalkSpeed=10
  332. toss=false
  333. end
  334. end)
  335.  
  336. -----------------------------------------------------------------------------
  337.  
  338. game:service'RunService'.RenderStepped:connect(function()
  339. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  340. syne=syne+.95
  341. if running and not otheranims then chr.Humanoid.WalkSpeed=18
  342. elseif not running and not otheranims then chr.Humanoid.WalkSpeed=10
  343. end
  344. if not otheranims then
  345. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  346. anim="Idling"
  347.  
  348. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  349. anim="Walking"
  350.  
  351. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  352. anim="Sprinting"
  353.  
  354. elseif torso.Velocity.y>1 then
  355. anim='Jumping'
  356.  
  357. elseif (torso.Velocity.y < -1) then
  358. anim='Falling'
  359. end
  360. end
  361.  
  362. if anim=="Idling" then if not armmovement then
  363. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  364. end
  365. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.7)*CFrame.Angles(math.rad(-20),0,0),.25)
  366. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  367. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(-2.5)),.05)
  368. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(2.5)),.05)
  369. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,math.cos(syne/30)/25),.05)
  370. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(125),math.rad(180),0),.05)
  371. end
  372. if anim=="Walking" then if not armmovement then
  373. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  374. end
  375. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
  376. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  377. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/10))-1.3,(math.cos(syne/10))+.475)*CFrame.Angles((math.cos(syne/10))*-1,0,math.rad(-2.5)),.05)
  378. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/10))*-1-1.3,(math.cos(syne/10))*-1+.475)*CFrame.Angles((math.cos(syne/10)),0,math.rad(2.5)),.05)
  379. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/10)/10*-1,math.cos(syne/10)/20),.05)
  380. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/10)/10+math.rad(180),0),.05)
  381. end
  382.  
  383. if anim=="Sprinting" then if not armmovement then
  384. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  385. end
  386. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
  387. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  388. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/7))-1.3,(math.cos(syne/7))+.475)*CFrame.Angles((math.cos(syne/7))*-1,0,math.rad(-2.5)),.05)
  389. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/7))*-1-1.3,(math.cos(syne/7))*-1+.475)*CFrame.Angles((math.cos(syne/7)),0,math.rad(2.5)),.05)
  390. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/7)/7*-1,math.cos(syne/7)/20),.05)
  391. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/7)/7+math.rad(180),0),.05)
  392. end
  393.  
  394. if anim=="Jumping" then if not armmovement then
  395. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15)
  396. end
  397. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15)
  398. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,1)*CFrame.Angles(0,0,math.rad(-2.5)),.05)
  399. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,1)*CFrame.Angles(0,0,math.rad(2.5)),.05)
  400. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  401. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/50)/20,.5)*CFrame.Angles(math.rad(75),math.rad(180),math.rad(0)),.05)
  402. end
  403.  
  404. if anim=="Falling" then if not armmovement then
  405. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.cos(syne/10)/5+math.rad(120),0,math.rad(22.5)),.15)
  406. end
  407. wtw.C0=Lerp(wtw.C0,CFrame.new(0,1.25,-2.25)*CFrame.Angles(math.cos(syne/20)/20,math.cos(syne/10)/30,0),.25)
  408. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles((math.cos(syne/10)/5)*-1+math.rad(120),0,math.rad(-22.5)),.15)
  409. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5+math.rad(33),0,math.rad(-15)),.05)
  410. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5*-1+math.rad(33),0,math.rad(15)),.05)
  411. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,0),.05)
  412. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,1)*CFrame.Angles(math.rad(125),math.rad(180),math.rad(0)),.05)
  413. end
  414.  
  415. if anim=="PreThrow" then
  416. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.5,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
  417. wtw.C0=Lerp(wtw.C0,CFrame.new(0,1,-2)*CFrame.Angles(math.rad(-10),0,0),.1)
  418. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
  419. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(-2.5)),.1)
  420. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(2.5)),.1)
  421. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(40),0,0),.1)
  422. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(132.5),math.rad(180),0),.1)
  423. end
  424.  
  425. if anim=="Throw" then
  426. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.6,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
  427. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
  428. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
  429. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
  430. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
  431. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1)
  432. end
  433.  
  434. if anim=="Rest" then
  435. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.55,-.225)*CFrame.Angles(math.rad(35),0,math.rad(-12.5)),.1)
  436. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(35),0,math.rad(12.5)),.1)
  437. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
  438. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
  439. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
  440. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-1,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1)
  441. end
  442.  
  443. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement