Advertisement
Hugo1234cool

Untitled

Mar 13th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.61 KB | None | 0 0
  1. local plr =owner
  2. local chr = plr.Character
  3. game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player =owner
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85. local PGui=plr.PlayerGui
  86. local lleg = chr["Left Leg"]
  87. local rleg = chr["Right Leg"]
  88. local larm = chr["Left Arm"]
  89. local rarm = chr["Right Arm"]
  90. local hed = chr.Head
  91. local rutprt = chr.HumanoidRootPart
  92. local torso = chr.Torso
  93. local otheranims=false
  94. local armmovement=false
  95. local hitdb=false
  96. local toss=false
  97. local jamp=false
  98. chr.Animate.Disabled=true
  99. chr.Humanoid.WalkSpeed=10
  100. local running=false
  101. local tempignore={}
  102.  
  103. local weit=Instance.new('Part',hed)
  104. weit.Shape='Ball'
  105. weit.BrickColor=BrickColor.new('Black')
  106. weit.Material='Neon'
  107. weit.Size=Vector3.new(3,3,3)
  108. weit.CanCollide=true
  109. weit.Name='Weight'
  110. weit.Friction=1
  111. weit.Elasticity=0
  112.  
  113.  
  114.  
  115. local at1=Instance.new("Attachment",torso)
  116. local at2=Instance.new("Attachment",weit)
  117. local const=Instance.new("RopeConstraint",chr)
  118. const.Attachment0=at2
  119. const.Attachment1=at1
  120. const.Visible=true
  121. const.Restitution=0
  122. const.Length=100
  123.  
  124. local pseudohead=hed:Clone()
  125. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  126. pseudohead.Name='PseudoHead'
  127. pseudohead.Parent=chr.Head
  128. local pseudoweld=Instance.new('Weld',torso)
  129. pseudoweld.Part0=hed
  130. pseudoweld.Name='PseudoHedWld'
  131. pseudoweld.Part1=pseudohead
  132. hed.Transparency=1
  133.  
  134. --[[coroutine.resume(coroutine.create(function()
  135. local rate=.05
  136. local Hats={}
  137. 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"
  138. end
  139. end
  140. local lam=Instance.new("SpecialMesh",larm)
  141. lam.MeshId="http://www.roblox.com/asset?id=12221505"
  142. lam.TextureId="http://www.roblox.com/asset?id=25701026"
  143. local ram=Instance.new("SpecialMesh",rarm)
  144. ram.MeshId="http://www.roblox.com/asset?id=12221505"
  145. ram.TextureId="http://www.roblox.com/asset?id=25701026"
  146. local rlm=Instance.new("SpecialMesh",rleg)
  147. rlm.MeshId="http://www.roblox.com/asset?id=12221626"
  148. rlm.TextureId="http://www.roblox.com/asset?id=25701026"
  149. local llm=Instance.new("SpecialMesh",lleg)
  150. llm.MeshId="http://www.roblox.com/asset?id=12221626"
  151. llm.TextureId="http://www.roblox.com/asset?id=25701026"
  152. local trm=Instance.new("SpecialMesh",torso)
  153. trm.MeshId="http://www.roblox.com/asset?id=12221758"
  154. trm.TextureId="http://www.roblox.com/asset?id=25701026"
  155. local hem=Instance.new("SpecialMesh",hed)
  156. hem.MeshId="rbxasset://fonts/head.mesh"
  157. hem.TextureId="http://www.roblox.com/asset?id=25701026"
  158. local hem2=Instance.new("SpecialMesh",pseudohead)
  159. hem2.MeshId="rbxasset://fonts/head.mesh"
  160. hem2.TextureId="http://www.roblox.com/asset?id=25701026"
  161. local weitmesh=Instance.new("SpecialMesh",weit)
  162. weitmesh.MeshId="http://www.roblox.com/asset/?id=1527559"
  163. weitmesh.TextureId="http://www.roblox.com/asset?id=25701026"
  164. local asd=Instance.new('PointLight',torso)
  165. asd.Brightness=123
  166. asd.Range=12
  167. asd.Shadows=true
  168.  
  169. while wait'0' do
  170. for a=0,1,rate do
  171. lam.VertexColor=Vector3.new(a,0,-a+1)
  172. ram.VertexColor=Vector3.new(a,0,-a+1)
  173. rlm.VertexColor=Vector3.new(a,0,-a+1)
  174. llm.VertexColor=Vector3.new(a,0,-a+1)
  175. trm.VertexColor=Vector3.new(a,0,-a+1)
  176. hem.VertexColor=Vector3.new(a,0,-a+1)
  177. hem2.VertexColor=Vector3.new(a,0,-a+1)
  178. weitmesh.VertexColor=Vector3.new(a,0,-a+1)
  179. asd.Color=Color3.new(a,0,-a+1)
  180. coroutine.wrap(function()
  181. for x=1,#Hats do
  182. Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1)
  183. end
  184. end)()
  185. wait''
  186. end
  187. for a=0,1,rate do
  188. lam.VertexColor=Vector3.new(-a+1,a,0)
  189. ram.VertexColor=Vector3.new(-a+1,a,0)
  190. rlm.VertexColor=Vector3.new(-a+1,a,0)
  191. llm.VertexColor=Vector3.new(-a+1,a,0)
  192. trm.VertexColor=Vector3.new(-a+1,a,0)
  193. hem.VertexColor=Vector3.new(-a+1,a,0)
  194. hem2.VertexColor=Vector3.new(-a+1,a,0)
  195. weitmesh.VertexColor=Vector3.new(-a+1,a,0)
  196. asd.Color=Color3.new(-a+1,a,0)
  197. coroutine.wrap(function()
  198. for x=1,#Hats do
  199. Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0)
  200. end
  201. end)()
  202. wait''
  203. end
  204. for a=0,1,rate do
  205. lam.VertexColor=Vector3.new(0,-a+1,a)
  206. ram.VertexColor=Vector3.new(0,-a+1,a)
  207. rlm.VertexColor=Vector3.new(0,-a+1,a)
  208. llm.VertexColor=Vector3.new(0,-a+1,a)
  209. trm.VertexColor=Vector3.new(0,-a+1,a)
  210. hem.VertexColor=Vector3.new(0,-a+1,a)
  211. hem2.VertexColor=Vector3.new(0,-a+1,a)
  212. weitmesh.VertexColor=Vector3.new(0,-a+1,a)
  213. asd.Color=Color3.new(0,-a+1,a)
  214. coroutine.wrap(function()
  215. for x=1,#Hats do
  216. Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a)
  217. end
  218. end)()
  219. wait''
  220. end
  221. end
  222. end))]]
  223.  
  224.  
  225. function Lerp(a, b, i)
  226. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  227. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  228. local calx = com1[1] + (com2[1] - com1[1]) * i
  229. local caly = com1[2] + (com2[2] - com1[2]) * i
  230. local calz = com1[3] + (com2[3] - com1[3]) * i
  231. local cala = com1[4] + (com2[4] - com1[4]) * i
  232. local calb = com1[5] + (com2[5] - com1[5]) * i
  233. local calc = com1[6] + (com2[6] - com1[6]) * i
  234. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  235. end
  236.  
  237. function TwnSingleNumber(s,f,m)
  238. local wot=s+(f-s)*m
  239. return wot
  240. end
  241.  
  242. function TwnVector3(q,w,e)
  243. local begin={q.x,q.y,q.z}
  244. local ending={w.x,w.y,w.z}
  245. local bgx=begin[1]+(ending[1]-begin[1])*e
  246. local bgy=begin[2]+(ending[2]-begin[2])*e
  247. local bgz=begin[3]+(ending[3]-begin[3])*e
  248. return Vector3.new(bgx,bgy,bgz)
  249. end
  250.  
  251. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  252. wld = Instance.new("Weld", wp1)
  253. wld.Part0 = wp0
  254. wld.Part1 = wp1
  255. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  256. end
  257.  
  258. newWeld(law, torso, larm, -1.5, 0.5, 0)
  259. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  260. newWeld(llw, torso, lleg, -.5, -2, 0)
  261. newWeld(rlw, torso, rleg, .5, -2, 0)
  262. newWeld(hw, torso, hed, 0, 1.5, 0)
  263. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  264. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  265. rleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
  266. lleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
  267.  
  268. local anim = "Idling"
  269. local lastanim = "Idling"
  270. local val = 0
  271. local syne = 0
  272. local num = 0
  273. local runtime = 0
  274.  
  275.  
  276. maus.KeyUp:connect(function(kei)
  277. if string.byte(kei)==48 and not otheranims then
  278. running=false
  279. chr.Humanoid.WalkSpeed=10
  280. end
  281. end)
  282.  
  283. maus.KeyDown:connect(function(kei)
  284. if string.byte(kei)==48 and not otheranims then
  285. running=true
  286. chr.Humanoid.WalkSpeed=18
  287. end
  288.  
  289. chr.Humanoid.Changed:connect(function(ch)
  290. if ch=='Jump' and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand then
  291. local rei=Ray.new(torso.CFrame.p,((torso.CFrame*CFrame.new(0,-1,0)).p-torso.CFrame.p).unit*10)
  292. local t,p=Workspace:FindPartOnRay(rei,chr)
  293. if t then
  294. chr.Humanoid.Jump=false
  295. end
  296. end
  297. end)
  298.  
  299. if kei==' ' and not chr.Humanoid.Jump and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand and not jamp then
  300. local rei=Ray.new(torso.CFrame.p,((rutprt.CFrame*CFrame.new(0,-1,0)).p-rutprt.CFrame.p).unit*3)
  301. local t,p=Workspace:FindPartOnRay(rei,chr)
  302. if t then
  303. chr.Humanoid.PlatformStand=true
  304. jamp=true
  305. coroutine.wrap(function()
  306. repeat wait()
  307. chr.Torso.Velocity=Vector3.new(0,35,0)
  308. until not chr.Humanoid.PlatformStand
  309. end)()
  310. wait(.1)
  311. chr.Humanoid.PlatformStand=false
  312. jamp=false
  313. end
  314. end
  315. end)
  316.  
  317.  
  318.  
  319. local grunt=Instance.new('Sound',hed)
  320. grunt.Name='Grunt'
  321. grunt.Volume=1
  322. grunt.Pitch=.9
  323. grunt.Looped=false
  324. grunt.SoundId="http://www.roblox.com/asset?id=143384769"
  325.  
  326.  
  327.  
  328. local hut=Instance.new('Sound',weit)
  329. hut.Name='Hit'
  330. hut.Volume=1
  331. hut.Looped=false
  332. hut.Pitch=1
  333. hut.SoundId="http://www.roblox.com/asset?id=146163534"
  334. local wtl=Instance.new('PointLight',weit)
  335. wtl.Shadows=true
  336. wtl.Brightness=123
  337. wtl.Range=12
  338. wtl.Color=weit.BrickColor.Color
  339. wtl.Name='WeightLight'
  340. local wgui=Instance.new('SurfaceGui',weit)
  341. wgui.Face='Front'
  342. wgui.Adornee=weit
  343. wgui.CanvasSize=Vector2.new(100,100)
  344. wgui.Name='WeightGui'
  345. local tb=Instance.new('TextLabel',wgui)
  346. tb.Size=UDim2.new(1,0,1,0)
  347. tb.Text=[[LAWL'D]]
  348. tb.TextColor3=Color3.new(1,1,1)
  349. tb.BackgroundTransparency=1
  350. local wtw=Instance.new('Weld',torso)
  351. wtw.Name='WeightWeld'
  352. wtw.Part0=torso
  353. wtw.Part1=weit
  354. wtw.C0=CFrame.new(0,.5,-1.8)*CFrame.Angles(math.rad(-20),0,0)
  355. weit.Touched:connect(function(hit)
  356. if hit and hit.CanCollide and hit.Parent and hit.Parent~=chr and hit.Parent.Parent~=chr and otheranims then
  357. hum=hit.Parent:findFirstChild('Humanoid') and hit.Parent:findFirstChild('Torso') and hit.Parent.ClassName=='Model'
  358. if hum and not hitdb then
  359. local ex=Instance.new('Explosion',workspace)
  360. ex.DestroyJointRadiusPercent=0
  361. ex.BlastPressure=222222
  362. ex.BlastRadius=18
  363. hitdb=true
  364. ex.Position=hit.Parent.Torso.Position
  365. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(10e10*(hit.Parent.Humanoid.MaxHealth/10e10))
  366. table.insert(tempignore,hit.Parent)
  367. hut:Play()
  368. toss=false
  369. hit.Parent.Humanoid.PlatformStand=true
  370. coroutine.wrap(function()
  371. repeat wait()
  372. hit.Parent.Torso.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*100
  373. 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)
  374. until not hit.Parent.Humanoid.PlatformStand
  375. end)()
  376. wait(.2)
  377. hit.Parent.Humanoid.PlatformStand=false
  378. end
  379. end
  380. end)
  381. maus.Button1Down:connect(function()
  382. if not otheranims then
  383. chr.Humanoid.WalkSpeed=0
  384. otheranims=true
  385. anim='PreThrow'
  386. hitdb=false
  387. coroutine.resume(coroutine.create(function()
  388. for fgh,hgf in pairs(tempignore) do
  389. table.remove(tempignore,hgf)
  390. end
  391. end))
  392. wait(.3)
  393. grunt:Play()
  394. wait(.2)
  395. anim='Throw'
  396. const.Parent=nil
  397. wtw.Parent=nil
  398. wtw.Part0=nil
  399. toss=true
  400. weit.CFrame=rutprt.CFrame*CFrame.new(0,3,-3)
  401. wait()
  402. 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)
  403. wait(.25)
  404. const.Parent=chr
  405. anim='Rest'
  406. wait(1)
  407. wtw.Parent=torso
  408. wtw.Part0=torso
  409. otheranims=false
  410. chr.Humanoid.WalkSpeed=10
  411. toss=false
  412. end
  413. end)
  414.  
  415. -----------------------------------------------------------------------------
  416.  
  417. game:service'RunService'.RenderStepped:connect(function()
  418. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  419. syne=syne+.95
  420. if running and not otheranims then chr.Humanoid.WalkSpeed=18
  421. elseif not running and not otheranims then chr.Humanoid.WalkSpeed=10
  422. end
  423. if not otheranims then
  424. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  425. anim="Idling"
  426.  
  427. 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
  428. anim="Walking"
  429.  
  430. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  431. anim="Sprinting"
  432.  
  433. elseif torso.Velocity.y>1 then
  434. anim='Jumping'
  435.  
  436. elseif (torso.Velocity.y < -1) then
  437. anim='Falling'
  438. end
  439. end
  440.  
  441. if anim=="Idling" then if not armmovement then
  442. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  443. end
  444. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.7)*CFrame.Angles(math.rad(-20),0,0),.25)
  445. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  446. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(-2.5)),.05)
  447. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(2.5)),.05)
  448. 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)
  449. 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)
  450. end
  451. if anim=="Walking" then if not armmovement then
  452. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  453. end
  454. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
  455. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  456. 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)
  457. 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)
  458. 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)
  459. 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)
  460. end
  461.  
  462. if anim=="Sprinting" then if not armmovement then
  463. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  464. end
  465. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
  466. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  467. 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)
  468. 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)
  469. 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)
  470. 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)
  471. end
  472.  
  473. if anim=="Jumping" then if not armmovement then
  474. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15)
  475. end
  476. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15)
  477. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,1)*CFrame.Angles(0,0,math.rad(-2.5)),.05)
  478. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,1)*CFrame.Angles(0,0,math.rad(2.5)),.05)
  479. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  480. 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)
  481. end
  482.  
  483. if anim=="Falling" then if not armmovement then
  484. 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)
  485. end
  486. 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)
  487. 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)
  488. 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)
  489. 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)
  490. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,0),.05)
  491. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,1)*CFrame.Angles(math.rad(125),math.rad(180),math.rad(0)),.05)
  492. end
  493.  
  494. if anim=="PreThrow" then
  495. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.5,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
  496. wtw.C0=Lerp(wtw.C0,CFrame.new(0,1,-2)*CFrame.Angles(math.rad(-10),0,0),.1)
  497. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
  498. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(-2.5)),.1)
  499. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(2.5)),.1)
  500. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(40),0,0),.1)
  501. 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)
  502. end
  503.  
  504. if anim=="Throw" then
  505. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.6,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
  506. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
  507. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
  508. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
  509. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
  510. 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)
  511. end
  512.  
  513. if anim=="Rest" then
  514. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.55,-.225)*CFrame.Angles(math.rad(35),0,math.rad(-12.5)),.1)
  515. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(35),0,math.rad(12.5)),.1)
  516. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
  517. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
  518. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
  519. 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)
  520. end
  521.  
  522. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement