Advertisement
TheYoutuber_Pro

wegwerherh

Jan 21st, 2022
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.04 KB | None | 0 0
  1. local cmt = {
  2. Angles = function(x,y,z,useRad)
  3. if not useRad then
  4. return CFrame.Angles(x,y,z)
  5. else
  6. return CFrame.Angles(math.rad(x),math.rad(y),math.rad(z))
  7. end
  8. end
  9. }
  10. local imt = {
  11. CreateWeld = function(p1,p2,c0,c1)
  12. c0,c1 = c0 or CFrame.new(0,0,0),c1 or CFrame.new(0,0,0)
  13. local weld = Instance.new("Weld",p1)
  14. weld.Part0,weld.Part1 = p1,p2
  15. weld.C0,weld.C1 = c0,c1
  16. return weld
  17. end,
  18. New = function(type,args)
  19. local instance = Instance.new(type)
  20. for i,v in pairs(args) do
  21. pcall(function()
  22. instance[i] = v
  23. end)
  24. end
  25. return instance
  26. end,
  27. Remove = function(instance,time)
  28. time = time or 0
  29. game:GetService("Debris"):AddItem(instance,time)
  30. end
  31. }
  32. local math = setmetatable({random = function(minNum,maxNum,div) div = div or 1 return math.random(minNum * div,maxNum * div)/div end},{__index = math})
  33. local CFrame = setmetatable(cmt,{__index = CFrame})
  34. local Instance = setmetatable(imt,{__index = Instance})
  35.  
  36. local stepped = game:GetService("RunService").Stepped
  37.  
  38. --BasicFunctions
  39. local ins = Instance.new
  40. local v3 = Vector3.new
  41. local cf = CFrame.new
  42. local angles = CFrame.Angles
  43. local rad = math.rad
  44. local huge = math.huge
  45. local cos = math.cos
  46. local sin = math.sin
  47. local tan = math.tan
  48. local ray = Ray.new
  49. local random = math.random
  50. local ud = UDim.new
  51. local ud2 = UDim2.new
  52. local c3 = Color3.new
  53. local rgb = Color3.fromRGB
  54. local bc = BrickColor.new
  55.  
  56. --Variables
  57. local plr = owner
  58. local plrg = plr.PlayerGui
  59. local char = plr.Character
  60. local h = char.Head
  61. local t = char.Torso
  62. local ra = char["Right Arm"]
  63. local la = char["Left Arm"]
  64. local rl = char["Right Leg"]
  65. local ll = char["Left Leg"]
  66. local rut = char.HumanoidRootPart
  67. local hum = char:FindFirstChildOfClass("Humanoid")
  68. local necno = t.Neck
  69. local rutjno = rut.RootJoint
  70. local rsno = t["Right Shoulder"]
  71. local lsno = t["Left Shoulder"]
  72. local rhno = t["Right Hip"]
  73. local lhno = t["Left Hip"]
  74. --
  75. local change = 1
  76. local sine = 0
  77. local ws = 8
  78. local jp = 35
  79. local songPos = 1
  80. local jok = false
  81. local sprint = false
  82. local sitting = false
  83. local laying = false
  84. local crying = false
  85. local wsGrow = false
  86. local danc = false
  87. local anim = "Idle"
  88. local asset = "rbxassetid://"
  89. local songs = {
  90. 4389724138,
  91. 2435339444,
  92. 153381341,
  93. 1467405749,
  94. 2808388613,
  95. 1666293019,
  96. 885996042,
  97. 1835889384
  98. }
  99. --
  100. local necc0 = cf(0, t.Size.Y/2, 0)
  101. local necc1 = cf(0,-h.Size.Y/2,0)
  102. local rsc0 = cf(t.Size.X/2, t.Size.Y/4, 0)
  103. local rsc1 = cf(-ra.Size.X/2, ra.Size.Y/4, 0)
  104. local lsc0 = cf(-t.Size.X/2, t.Size.Y/4, 0)
  105. local lsc1 = cf(la.Size.X/2, la.Size.Y/4, 0)
  106. local rhc0 = cf(t.Size.X/4,-t.Size.Y/2,0)
  107. local rhc1 = cf(0,rl.Size.Y/2,0)
  108. local lhc0 = cf(-t.Size.X/4,-t.Size.Y/2,0)
  109. local lhc1 = cf(0,ll.Size.Y/2,0)
  110. local rutjc0 = cf(0,0,0)
  111. local rutjc1 = cf(0,0,0)
  112. if char:FindFirstChild("Animate") then
  113. char.Animate:Destroy()
  114. end
  115. if hum:FindFirstChildOfClass("Animator") then
  116. hum.Animator:Destroy()
  117. end
  118. --Creating new joints
  119. local nec = ins("Motor6D",t) nec.Name = "Neck" nec.Part0 = t nec.Part1 = h
  120. local rutj = ins("Motor6D",rut) rutj.Name = "RootJoint" rutj.Part0 = t rutj.Part1 = rut
  121. local rs = ins("Motor6D",t) rs.Name = "Right Shoulder" rs.Part0 = t rs.Part1 = ra
  122. local ls = ins("Motor6D",t) ls.Name = "Left Shoulder" ls.Part0 = t ls.Part1 = la
  123. local rh = ins("Motor6D",t) rh.Name = "Right Hip" rh.Part0 = t rh.Part1 = rl
  124. local lh = ins("Motor6D",t) lh.Name = "Left Hip" lh.Part0 = t lh.Part1 = ll
  125. --Removing old joints
  126. necno.Parent = nil
  127. rutjno.Parent = nil
  128. rsno.Parent = nil
  129. lsno.Parent = nil
  130. rhno.Parent = nil
  131. lhno.Parent = nil
  132. --Setting CFrames
  133. nec.C1 = necc1
  134. nec.C0 = necc0
  135. rs.C1 = rsc1
  136. rs.C0 = rsc0
  137. ls.C1 = lsc1
  138. ls.C0 = lsc0
  139. rh.C1 = rhc1
  140. rh.C0 = rhc0
  141. lh.C1 = lhc1
  142. lh.C0 = lhc0
  143. rutj.C1 = rutjc1
  144. rutj.C0 = rutjc0
  145.  
  146. local rem = Instance.New("RemoteEvent",{Name = "ARemote",Parent = char})
  147. local mus = Instance.New("Sound",{Looped = true,Volume = 2.2,SoundId = asset..songs[songPos],Parent = t})
  148. local vroOm = Instance.New("Sound",{Looped = true,Volume = 7.5,SoundId = asset..2658538628,Parent = t})
  149. if jok then
  150. mus:Play()
  151. end
  152.  
  153. function swait()
  154. stepped:Wait()
  155. end
  156. function rayc(spos,direc,ignore,dist)
  157. return workspace:FindPartOnRayWithIgnoreList(ray(spos,direc.Unit * dist),ignore,false,false)
  158. end
  159. function tween(instance,args,info,playOnCreate)
  160. if instance and args then
  161. playOnCreate = playOnCreate or true
  162. info = info or TweenInfo.new(
  163. 1,
  164. Enum.EasingStyle.Linear,
  165. Enum.EasingDirection.In,
  166. 0,
  167. false,
  168. 0
  169. )
  170. if typeof(info) == "table" then
  171. info = TweenInfo.new(unpack(info))
  172. end
  173. local tween = game:GetService("TweenService"):Create(instance,info,args)
  174. if playOnCreate then
  175. tween:Play()
  176. end
  177. return tween
  178. end
  179. end
  180.  
  181. rem.OnServerEvent:Connect(function(plyr,type,input)
  182. if string.lower(typeof(input)) == "string" then input = string.lower(input) end
  183. if plr ~= plyr then return end
  184. if type == "keyDown" then
  185. if input == "leftcontrol" then
  186. sprint = not sprint
  187. elseif input == "n" then
  188. jok = not jok
  189. elseif input == "z" then
  190. sitting = not sitting
  191. laying = false
  192. crying = false
  193. elseif input == "x" then
  194. sitting = false
  195. laying = not laying
  196. crying = false
  197. elseif input == "c" and plr.Name == "PrimalDrakax" then
  198. sitting = false
  199. laying = false
  200. crying = not crying
  201. elseif input == "l" then
  202. songPos = songPos + 1
  203. if songPos > #songs then
  204. songPos = 1
  205. end
  206. mus.SoundId = asset..songs[songPos]
  207. mus:Play()
  208. mus.TimePosition = 0
  209. elseif input == "b" then
  210. danc = not danc
  211. end
  212. elseif type == "keyUp" then
  213.  
  214. end
  215. end)
  216.  
  217. local client = NLS([[
  218. local uis = game:GetService("UserInputService")
  219. local cf = CFrame.new
  220. local v3 = Vector3.new
  221.  
  222. local plr = game:GetService("Players").LocalPlayer
  223. local char = plr.Character
  224. local rem = char:WaitForChild("ARemote")
  225. local h = char.Head
  226. local rut = char.HumanoidRootPart
  227. local hum = char:FindFirstChildOfClass("Humanoid")
  228.  
  229. uis.InputBegan:Connect(function(io,ip)
  230. if io.UserInputType == Enum.UserInputType.Keyboard and not ip then
  231. rem:FireServer("keyDown",io.KeyCode.Name)
  232. end
  233. end)
  234. uis.InputChanged:Connect(function(io,ip)
  235. if io.UserInputType == Enum.UserInputType.Keyboard and not ip then
  236. rem:FireServer("keyDown",io.KeyCode.Name)
  237. end
  238. end)
  239. uis.InputEnded:Connect(function(io,ip)
  240. if io.UserInputType == Enum.UserInputType.Keyboard and not ip then
  241. rem:FireServer("keyUp",io.KeyCode.Name)
  242. end
  243. end)
  244.  
  245. game:GetService("RunService").RenderStepped:Connect(function()
  246. local off = h.CFrame:toObjectSpace(rut.CFrame * cf(0,1.5,0))
  247. hum.CameraOffset = hum.CameraOffset:Lerp(v3(off.x,-off.y,-off.z),.1)
  248. end)
  249. ]],char)
  250.  
  251. stepped:Connect(function()
  252. sine = sine + change
  253.  
  254. local dir = hum.MoveDirection
  255. if dir.Magnitude == 0 then dir = rut.Velocity/10 end
  256.  
  257. local Ccf = rut.CFrame
  258. local Walktest1 = dir*Ccf.LookVector
  259. local Walktest2 = dir*Ccf.RightVector
  260. local rotfb = Walktest1.X+Walktest1.Z
  261. local rotrl = Walktest2.X+Walktest2.Z
  262.  
  263. local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},4.5)
  264.  
  265. local verVel = rut.Velocity.y
  266. local horVel = (rut.Velocity * v3(1,0,1)).Magnitude
  267.  
  268. if mus.Parent ~= t then
  269. Instance.Remove(mus)
  270. mus = Instance.New("Sound",{Looped = true,Volume = 7.5,SoundId = asset..songs[songPos],Parent = t})
  271. mus:Play()
  272. end
  273. if vroOm.Parent ~= t then
  274. Instance.Remove(vroOm)
  275. vroOm = Instance.New("Sound",{Looped = true,Volume = 7.5,SoundId = asset..2658538628,Parent = t})
  276. end
  277. if rotfb > 1 then
  278. rotfb = 1
  279. elseif rotfb < -1 then
  280. rotfb = -1
  281. end
  282. if rotrl > 1 then
  283. rotrl = 1
  284. elseif rotrl < -1 then
  285. rotrl = -1
  286. end
  287.  
  288. if jok then
  289. if not sprint then
  290. ws = 16
  291. else
  292. if not wsGrow then
  293. ws = 6
  294. end
  295. end
  296. jp = 65
  297. mus:Resume()
  298. else
  299. if not sprint then
  300. ws = 8
  301. else
  302. ws = 38
  303. end
  304. jp = 35
  305. mus:Stop()
  306. end
  307.  
  308. hum.WalkSpeed = ws
  309. hum.JumpPower = jp
  310.  
  311. local sn = 0 if plr.Name == "skeilet2019" and random(0,1,50) == .6 then sn = random(5,10) end
  312.  
  313. if anim == "walk" and hit then
  314. if not jok then
  315. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(cos(sine/3) * 5,0,0,true) * angles(-rotfb/15,rotrl/2,0),.2)
  316. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,.2 * cos(sine/3),0) * angles(sin(sine/3) * 2.5,sin(sine/6) * 2.5,0,true) * angles(-rotfb/12.5,0,-rotrl/8.5),.2)
  317. rs.C1 = rs.C1:Lerp(rsc1 * cf(.05 - .05 * cos(sine/3),0,.1 * cos(sine/6) * rotfb) * angles(-10 - sin(sine/6) * 40 * rotfb,-sin(sine/6) * 25 * rotfb,0,true),.2)
  318. ls.C1 = ls.C1:Lerp(lsc1 * cf(-.05 + .05 * cos(sine/3),0,-.1 * cos(sine/6) * rotfb) * angles(-10 + sin(sine/6) * 40 * rotfb,-sin(sine/6) * 25 * rotfb,0,true),.2)
  319. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,.2 * cos(sine/6),.3 * -cos(sine/6)) * angles((7.5 * math.abs(rotfb)) + sin(sine/6) * 40 * rotfb,sin(sine/6) * 5,sin(sine/6) * 40 * rotrl,true),.2)
  320. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,-.2 * cos(sine/6),.3 * cos(sine/6)) * angles((7.5 * math.abs(rotfb)) - sin(sine/6) * 40 * rotfb,sin(sine/6) * 5,-sin(sine/6) * 40 * rotrl,true),.2)
  321. wsGrow = false
  322. vroOm:Stop()
  323. else
  324. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(sin(sine/5) * 15,sin(sine/10) * 20,0,true) * angles(-rotfb/10,rotrl/2,0),.2)
  325. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,cos(sine/5) * 2.5,0) * angles(0,sin(sine/10) * 20,0,true) * angles(-rotfb/5,0,-rotrl/5),.2)
  326. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,0,sin(sine/10) * 2.5 * rotfb) * angles(-15 + (sin(-sine/10) * 60 * rotfb),(-sin(sine/10) * 20) * rotfb,0,true),.2)
  327. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,0,-sin(sine/10) * 2.5 * rotfb) * angles(-15 + (sin(sine/10) * 60 * rotfb),(-sin(sine/10) * 20) * rotfb,0,true),.2)
  328. rh.C1 = rh.C1:Lerp(rhc1 * cf((sin(sine/10) * 2.5) * rotrl,cos(sine/10) * 2.5,(-sin(sine/10) * 2.5) * rotfb) * angles(6.5 - (-sin(sine/10) * 35) * rotfb,sin(sine/10) * 10,(sin(sine/10) * 35) * rotrl,true),.2)
  329. lh.C1 = lh.C1:Lerp(lhc1 * cf((-sin(sine/10) * 2.5) * rotrl,-cos(sine/10) * 2.5,(sin(sine/10) * 2.5) * rotfb) * angles(6.5 - (sin(sine/10) * 35) * rotfb,sin(sine/10) * 10,(-sin(sine/10) * 35) * rotrl,true),.2)
  330. wsGrow = false
  331. vroOm:Stop()
  332. end
  333. elseif anim == "run" and hit then
  334. if not jok then
  335. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(cos(sine/3) * 7.5,sin(sine/6) * 5,0,true) * angles(-rotfb/10,rotrl/2,0),.2)
  336. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,.4 * cos(sine/3),0) * angles(sin(sine/3) * 4,sin(sine/6) * 7.5,0,true) * angles(-rotfb/5,0,-rotrl/5),.2)
  337. rs.C1 = rs.C1:Lerp(rsc1 * cf(.1 - .1 * cos(sine/3),0,-.15 - .2 * cos(sine/6) * rotfb) * angles(-15 - sin(sine/6) * 110 * rotfb,-sin(sine/6) * 25 * rotfb,-10,true),.2)
  338. ls.C1 = ls.C1:Lerp(lsc1 * cf(-.1 + .1 * cos(sine/3),0,-.15 +.2 * cos(sine/6) * rotfb) * angles(-15 + sin(sine/6) * 110 * rotfb,-sin(sine/6) * 25 * rotfb,10,true),.2)
  339. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,.5 * cos(sine/6),.75 * -cos(sine/6)) * angles((7.5 * math.abs(rotfb)) + (sin(sine/6) * 80 * rotfb),sin(sine/6) * 15,sin(sine/6) * 60 * rotrl,true),.2)
  340. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,.5 * -cos(sine/6),.75 * cos(sine/6)) * angles((7.5 * math.abs(rotfb)) + (-sin(sine/6) * 80 * rotfb),sin(sine/6) * 15,-sin(sine/6) * 60 * rotrl,true),.2)
  341. wsGrow = false
  342. vroOm:Stop()
  343. else
  344. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(0,0,0,true) * angles(-rotfb * 1.5,0,0),.2)
  345. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,-math.abs(rotfb * 1.5) + 1 * sin(sine),0) * angles(sin(sine) * 25,0,cos(sine) * 15,true) * angles(-rotfb * 1.5,0,-rotrl * 1.5),.2)
  346. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,0,0) * angles(-sine * 50 * (ws/750) * rotfb,sin(sine) * 200,sine * 50 * (ws/750) * rotrl,true),.2)
  347. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,0,0) * angles(-sine * 50 * (ws/750) * rotfb,sin(sine) * 200,sine * 50 * (ws/750) * rotrl,true),.2)
  348. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,0,1 * sin(sine/5) * 5 * (ws/750)) * angles(sine * 50 * (ws/750) * rotfb,0,sine * 50 * (ws/750) * rotrl,true),.2)
  349. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,0,-1 * sin(sine/5) * 5 * (ws/750)) * angles(sine * 50 * (ws/750) * rotfb,0,sine * 50 * (ws/750) * rotrl,true),.2)
  350. vroOm:Resume()
  351. if vroOm.TimePosition > vroOm.TimeLength -.1 then
  352. vroOm.TimePosition = 8.5
  353. end
  354. if vroOm.TimePosition < .1 then
  355. ws = 6
  356. end
  357. if vroOm.TimePosition < 8.5 then
  358. ws = ws + .01
  359. else
  360. ws = 750
  361. wsGrow = true
  362. end
  363. end
  364. elseif anim == "jump" and not hit then
  365. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  366. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,0,0) * angles(0,0,0,true) * angles(-rotfb/5,0,-rotrl/5),.2)
  367. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  368. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  369. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  370. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  371. elseif anim == "fall" and not hit then
  372. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  373. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(0,0,0) * angles(0,0,0,true) * angles(-rotfb/5,0,-rotrl/5),.2)
  374. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,0,0) * angles(sin(sine/10) * 5,cos(sine/10) * 5,0,true),.2)
  375. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,0,0) * angles(-sin(sine/10) * 5,-cos(sine/10) * 5,0,true),.2)
  376. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  377. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,0,0) * angles(0,0,0,true),.2)
  378. elseif anim == "idle" and hit then
  379. if (not jok or sitting or laying or crying) and not danc then
  380. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(cos(sine/20) * 4,sin(sine/80) * 10,0,true) * angles(random(-sn,sn),random(-sn,sn),random(-sn,sn),true),.2)
  381. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(sin(sine/80)/20,sin(sine/20)/15,sin(sine/30)/17.5) * angles(sin(sine/20) * .9,sin(sine/60) * 2.25,sin(sine/80) * 2.25,true),.2)
  382. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,sin(sine/20)/15,0) * angles((cos(sine/20) * 4),sin(sine/20) * 1.8,(sin(sine/80) * 2.25) + (cos(sine/20) * 2.25),true),.2)
  383. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,sin(sine/20)/15,0) * angles((cos(sine/20) * 4),-sin(sine/20) * 1.8,(sin(sine/80) * 2.25) + (-cos(sine/20) * 2.25),true),.2)
  384. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,(sin(sine/20)/15) + (sin(sine/80)/25),0) * angles((sin(sine/20) * 1.8) - (sin(sine/30) * 2.25) + (sin(sine/60) * 1.35),sin(sine/60) * 2.25,(sin(sine/80) * 3.25),true),.2)
  385. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,(sin(sine/20)/15) - (sin(sine/80)/25),0) * angles((sin(sine/20) * 1.8) - (sin(sine/30) * 2.25) - (sin(sine/60) * 1.35),sin(sine/60) * 2.25,(sin(sine/80) * 3.25),true),.2)
  386. wsGrow = false
  387. vroOm:Stop()
  388. elseif jok and not sitting and not laying and not crying and not danc then
  389. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles(-cos(sine/10) * sin(sine/20) * 45,sin(sine/20) * cos(sine/40) * 30,sin(sine/30) * cos(sine/60) * 20,true),.2)
  390. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf(.25 * sin(sine/30) * cos(sine/60),-.65 + 1 * sin(sine/10) * cos(sine/20),0) * angles(sin(sine/10) * cos(sine/20) * 35,0,sin(sine/30) * cos(sine/60) * 10,true),.2)
  391. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,.25 - .25 * sin(sine/20) * cos(sine/10),.25 * sin(sine/10) * cos(sine/20)) * angles(-105 + sin(sine/20) * cos(sine/10) * 65,sin(sine/20) * cos(sine/60) * 5,sin(sine/10) * cos(sine/20) * 70,true),.2)
  392. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,.25 - .25 * sin(sine/20) * cos(sine/10),.25 * sin(sine/10) * cos(sine/20)) * angles(-105 + sin(sine/20) * cos(sine/10) * 65,sin(sine/20) * cos(sine/60) * 5,sin(sine/10) * cos(sine/20) * -70,true),.2)
  393. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,-.625 + 1 * sin(sine/10) * cos(sine/20),.25 - .5 * sin(sine/10) * cos(sine/20)) * angles(10 + sin(sine/10) * cos(sine/20) * 40,0,sin(sine/30) * cos(sine/60) * 17.5,true),.2)
  394. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,-.625 + 1 * sin(sine/10) * cos(sine/20),.25 - .5 * sin(sine/10) * cos(sine/20)) * angles(10 + sin(sine/10) * cos(sine/20) * 40,0,sin(sine/30) * cos(sine/60) * 17.5,true),.2)
  395. wsGrow = false
  396. vroOm:Stop()
  397. elseif danc and not sitting and not laying and not crying then
  398. nec.C1 = nec.C1:Lerp(necc1 * cf(0,0,0) * angles((cos(sine/10) * sin(sine/25)) * 35,(cos(sine/20) * sin(sine/50)) * 30,(sin(sine/20) * cos(sine/50)) * 40,true),.2)
  399. rutj.C1 = rutj.C1:Lerp(rutjc1 * cf((1 * cos(sine/20)) * sin(sine/50),-.3 - (.3 * sin(sine/10)) * cos(sine/25),(.5 * sin(sine/20)) * cos(sine/50)) * angles((-20 - (sin(sine/10) * cos(sine/25)) * 25) + ((sin(sine/20) * cos(sine/50)) * 15),0,-(cos(sine/20) * sin(sine/50)) * 30,true),.2)
  400. rs.C1 = rs.C1:Lerp(rsc1 * cf(0,.125 + (.125 * -sin(sine/10) * cos(sine/25)),.25 - (.25 * cos(sine/10) * sin(sine/25))) * angles(-50 - (cos(sine/10) * sin(sine/25)) * 75,((cos(sine/20) * sin(sine/50)) * sin(sine/50)) * 70,((sin(sine/20) * cos(sine/50)) * cos(sine/25)) * 40,true),.2)
  401. ls.C1 = ls.C1:Lerp(lsc1 * cf(0,.125 + (.125 * -sin(sine/10) * cos(sine/25)),.25 - (.25 * cos(sine/10) * sin(sine/25))) * angles(-50 - (cos(sine/10) * sin(sine/25)) * 75,-((cos(sine/20) * sin(sine/50)) * sin(sine/50)) * 70,-((sin(sine/20) * cos(sine/50)) * cos(sine/25)) * 40,true),.2)
  402. rh.C1 = rh.C1:Lerp(rhc1 * cf(0,-.1 - (.3 * sin(sine/10)) * cos(sine/25),.275 + ((.275 * sin(sine/10)) * cos(sine/25))) * angles(-12.5 - (sin(sine/10) * cos(sine/25)) * 40,((cos(sine/20) * sin(sine/50)) * sin(sine/50)) * 30,((cos(sine/20) * sin(sine/50)) * sin(sine/25)) * 40,true),.2)
  403. lh.C1 = lh.C1:Lerp(lhc1 * cf(0,-.1 - (.3 * sin(sine/10)) * cos(sine/25),.275 + ((.275 * sin(sine/10)) * cos(sine/25))) * angles(-15 - (sin(sine/10) * cos(sine/25)) * 40,((cos(sine/20) * sin(sine/50)) * -sin(sine/50)) * 30,((cos(sine/20) * sin(sine/50)) * -sin(sine/25)) * 40,true),.2)
  404. end
  405. end
  406.  
  407. if verVel > 20 then
  408. anim = "jump"
  409. change = 1
  410. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(5,0,0,true),.2)
  411. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(-5,0,0,true),.2)
  412. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,-.15,-.25) * angles(150,10,12.5,true),.2)
  413. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,-.15,-.25) * angles(155,-10,-12.5,true),.2)
  414. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.5,-.35) * angles(-12.5,0,5,true),.2)
  415. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,.2,-.15) * angles(-2.5,0,-5,true),.2)
  416. elseif verVel < -20 then
  417. anim = "fall"
  418. change = 1
  419. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(-7.5,0,0,true),.2)
  420. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(5,0,0,true),.2)
  421. rs.C0 = rs.C0:Lerp(rsc0 * cf(.25,-.25,0) * angles(0,10,110,true),.2)
  422. ls.C0 = ls.C0:Lerp(lsc0 * cf(-.25,-.25,0) * angles(0,-10,-110,true),.2)
  423. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.2,-.15) * angles(-2.5,0,5,true),.2)
  424. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,.5,-.35) * angles(-12.5,0,-5,true),.2)
  425. elseif horVel > 5 and verVel > -20 and verVel < 20 then
  426. if not sprint then
  427. anim = "walk"
  428. if not jok then
  429. change = .6
  430. else
  431. change = 1
  432. end
  433. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  434. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  435. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  436. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  437. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  438. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  439. else
  440. anim = "run"
  441. if not jok then
  442. change = .9
  443. else
  444. change = 1
  445. end
  446. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  447. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  448. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  449. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  450. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  451. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  452. end
  453. elseif horVel < 5 and verVel > -20 and verVel < 20 then
  454. anim = "idle"
  455. change = 1
  456. if not sitting and not laying and not crying and not danc then
  457. if (not jok and hum.Sit) then
  458. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(-7.5,0,0,true),.2)
  459. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,.25,0) * angles(5,0,0,true),.2)
  460. rs.C0 = rs.C0:Lerp(rsc0 * cf(-.15,-.15,-.25) * angles(40,30,-35,true),.2)
  461. ls.C0 = ls.C0:Lerp(lsc0 * cf(.15,-.15,-.2) * angles(45,-30,32.5,true),.2)
  462. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.5,-.55) * angles(30,5,-5,true),.2)
  463. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,.65,-.5) * angles(32.5,-5,5,true),.2)
  464. elseif not jok then
  465. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  466. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  467. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(.5,0,-.5,true),.2)
  468. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(.5,0,.5,true),.2)
  469. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(0,-2.5,2,true),.2)
  470. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(0,2.5,-2,true),.2)
  471. elseif jok then
  472. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  473. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  474. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  475. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  476. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(0,0,5,true),.2)
  477. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(0,0,-5,true),.2)
  478. end
  479. elseif sitting and not laying and not crying and not danc then
  480. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(-20,0,0,true),.2)
  481. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,1.75,0) * angles(-15,0,0,true),.2)
  482. rs.C0 = rs.C0:Lerp(rsc0 * cf(-.1,-.5,.15) * angles(-20,-60,10,true),.2)
  483. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,-.25,-.2) * angles(70,-60,60,true) * angles(40,0,0,true),.2)
  484. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(70,7.5,5,true),.2)
  485. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,1.25,-.5) * angles(10,-10,-5,true),.2)
  486. elseif not sitting and laying and not crying and not danc then
  487. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(-35,0,0,true),.2)
  488. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,-2.4) * angles(-87.5,0,0,true),.2)
  489. rs.C0 = rs.C0:Lerp(rsc0 * cf(-.1,.75,-.25) * angles(195,0,-65,true) * angles(0,90,0,true),.2)
  490. ls.C0 = ls.C0:Lerp(lsc0 * cf(.125,-.3,-.05) * angles(90,20,85,true) * angles(-30,20,0,true),.2)
  491. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,.25,-1) * angles(-55,20,7.5,true),.2)
  492. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(2,-7.5,5,true),.2)
  493. elseif not sitting and not laying and crying and not danc then
  494. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(-80,0,0,true),.2)
  495. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,1.9,0) * angles(10,0,0,true),.2)
  496. rs.C0 = rs.C0:Lerp(rsc0 * cf(-.25,-.475,-.8) * angles(85,0,-80,true) * angles(0,100,0,true),.2)
  497. ls.C0 = ls.C0:Lerp(lsc0 * cf(.25,-.4,-.75) * angles(80,0,85,true) * angles(0,-87.5,0,true),.2)
  498. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,1.85,-.75) * angles(5,-5,-5,true),.2)
  499. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,1.85,-.7) * angles(3.5,5,5,true),.2)
  500. elseif not sitting and not laying and not crying and danc then
  501. nec.C0 = nec.C0:Lerp(necc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  502. rutj.C0 = rutj.C0:Lerp(rutjc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  503. rs.C0 = rs.C0:Lerp(rsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  504. ls.C0 = ls.C0:Lerp(lsc0 * cf(0,0,0) * angles(0,0,0,true),.2)
  505. rh.C0 = rh.C0:Lerp(rhc0 * cf(0,0,0) * angles(0,-5,5,true),.2)
  506. lh.C0 = lh.C0:Lerp(lhc0 * cf(0,0,0) * angles(0,5,-5,true),.2)
  507. end
  508. end
  509. end)
  510. script.Parent = owner.Character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement