Advertisement
Mediakiller7Cool

Ball

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