Advertisement
HowAreYu

jwod

Jul 27th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 198.28 KB | None | 0 0
  1. -- Decompiled with the Synapse X Luau decompiler.
  2.  
  3. wait(1);
  4. local l__LocalPlayer__1 = game:service("Players").LocalPlayer;
  5. while true do
  6. wait();
  7. if l__LocalPlayer__1.Character then
  8. break;
  9. end;
  10. end;
  11. local l__mouse__2 = l__LocalPlayer__1:GetMouse();
  12. local l__Character__3 = l__LocalPlayer__1.Character;
  13. local v4 = l__Character__3:findFirstChild("Torso");
  14. local v5 = l__Character__3:findFirstChild("Right Arm");
  15. local v6 = l__Character__3:findFirstChild("Left Arm");
  16. local v7 = l__Character__3:findFirstChild("Right Leg");
  17. local v8 = l__Character__3:findFirstChild("Left Leg");
  18. local v9 = l__Character__3:findFirstChild("Head");
  19. local v10 = l__Character__3:findFirstChild("Humanoid");
  20. local v11 = v4:findFirstChild("Right Shoulder");
  21. local v12 = v4:findFirstChild("Left Shoulder");
  22. local v13 = v4:findFirstChild("Right Hip");
  23. local v14 = v4:findFirstChild("Left Hip");
  24. local v15 = v4:findFirstChild("Neck");
  25. local v16 = Vector3.new(0, 0, 0);
  26. local v17 = CFrame.new(0, 0, 0);
  27. local v18, v19, v20 = pairs(l__Character__3:children());
  28. while true do
  29. local v21, v22 = v18(v19, v20);
  30. if not v21 then
  31. break;
  32. end;
  33. if v22.className == "LocalScript" and v22.Name == "ParkourSkrip" or v22.className == "NumberValue" or v22.className == "BoolValue" or v22.className == "Model" or v22.Name == "Animate" then
  34. v22:remove();
  35. end;
  36. end;
  37. v10:ClearAllChildren();
  38. local v23 = Instance.new("BoolValue", l__Character__3);
  39. v23.Name = "Pause";
  40. v23.Value = false;
  41. local v24 = Instance.new("NumberValue", l__Character__3);
  42. v24.Name = "Flow";
  43. v24.Value = 0;
  44. local v25 = Instance.new("Model", l__Character__3);
  45. v25.Name = "FlowChainPartz";
  46. local v26 = Instance.new("Part");
  47. v26.Name = "TrailPart";
  48. v26.formFactor = "Custom";
  49. v26.Size = Vector3.new(0.2, 0.2, 0.2);
  50. v26.Locked = true;
  51. v26.Anchored = true;
  52. v26.CanCollide = false;
  53. v26.TopSurface = 0;
  54. v26.BottomSurface = 0;
  55. script.Name = "ParkourSkrip";
  56. function HSV(p1, p2, p3)
  57. p1 = p1 % 360;
  58. local v27 = p3 * p2;
  59. local v28 = p1 / 60;
  60. local v29 = v27 * (1 - math.abs(v28 % 2 - 1));
  61. local v30 = Color3.new(0, 0, 0);
  62. if v28 <= 0 then
  63. v30 = Color3.new(v27, 0, 0);
  64. elseif 0 <= v28 then
  65. if v28 <= 1 then
  66. v30 = Color3.new(v27, v29, 0);
  67. elseif 1 <= v28 then
  68. if v28 <= 2 then
  69. v30 = Color3.new(v29, v27, 0);
  70. elseif 2 <= v28 then
  71. if v28 <= 3 then
  72. v30 = Color3.new(0, v27, v29);
  73. elseif 3 <= v28 then
  74. if v28 <= 4 then
  75. v30 = Color3.new(0, v29, v27);
  76. elseif 4 <= v28 then
  77. if v28 <= 5 then
  78. v30 = Color3.new(v29, 0, v27);
  79. elseif 5 <= v28 then
  80. if v28 <= 6 then
  81. v30 = Color3.new(v27, 0, v29);
  82. end;
  83. end;
  84. elseif 5 <= v28 then
  85. if v28 <= 6 then
  86. v30 = Color3.new(v27, 0, v29);
  87. end;
  88. end;
  89. elseif 4 <= v28 then
  90. if v28 <= 5 then
  91. v30 = Color3.new(v29, 0, v27);
  92. elseif 5 <= v28 then
  93. if v28 <= 6 then
  94. v30 = Color3.new(v27, 0, v29);
  95. end;
  96. end;
  97. elseif 5 <= v28 then
  98. if v28 <= 6 then
  99. v30 = Color3.new(v27, 0, v29);
  100. end;
  101. end;
  102. elseif 3 <= v28 then
  103. if v28 <= 4 then
  104. v30 = Color3.new(0, v29, v27);
  105. elseif 4 <= v28 then
  106. if v28 <= 5 then
  107. v30 = Color3.new(v29, 0, v27);
  108. elseif 5 <= v28 then
  109. if v28 <= 6 then
  110. v30 = Color3.new(v27, 0, v29);
  111. end;
  112. end;
  113. elseif 5 <= v28 then
  114. if v28 <= 6 then
  115. v30 = Color3.new(v27, 0, v29);
  116. end;
  117. end;
  118. elseif 4 <= v28 then
  119. if v28 <= 5 then
  120. v30 = Color3.new(v29, 0, v27);
  121. elseif 5 <= v28 then
  122. if v28 <= 6 then
  123. v30 = Color3.new(v27, 0, v29);
  124. end;
  125. end;
  126. elseif 5 <= v28 then
  127. if v28 <= 6 then
  128. v30 = Color3.new(v27, 0, v29);
  129. end;
  130. end;
  131. elseif 2 <= v28 then
  132. if v28 <= 3 then
  133. v30 = Color3.new(0, v27, v29);
  134. elseif 3 <= v28 then
  135. if v28 <= 4 then
  136. v30 = Color3.new(0, v29, v27);
  137. elseif 4 <= v28 then
  138. if v28 <= 5 then
  139. v30 = Color3.new(v29, 0, v27);
  140. elseif 5 <= v28 then
  141. if v28 <= 6 then
  142. v30 = Color3.new(v27, 0, v29);
  143. end;
  144. end;
  145. elseif 5 <= v28 then
  146. if v28 <= 6 then
  147. v30 = Color3.new(v27, 0, v29);
  148. end;
  149. end;
  150. elseif 4 <= v28 then
  151. if v28 <= 5 then
  152. v30 = Color3.new(v29, 0, v27);
  153. elseif 5 <= v28 then
  154. if v28 <= 6 then
  155. v30 = Color3.new(v27, 0, v29);
  156. end;
  157. end;
  158. elseif 5 <= v28 then
  159. if v28 <= 6 then
  160. v30 = Color3.new(v27, 0, v29);
  161. end;
  162. end;
  163. elseif 3 <= v28 then
  164. if v28 <= 4 then
  165. v30 = Color3.new(0, v29, v27);
  166. elseif 4 <= v28 then
  167. if v28 <= 5 then
  168. v30 = Color3.new(v29, 0, v27);
  169. elseif 5 <= v28 then
  170. if v28 <= 6 then
  171. v30 = Color3.new(v27, 0, v29);
  172. end;
  173. end;
  174. elseif 5 <= v28 then
  175. if v28 <= 6 then
  176. v30 = Color3.new(v27, 0, v29);
  177. end;
  178. end;
  179. elseif 4 <= v28 then
  180. if v28 <= 5 then
  181. v30 = Color3.new(v29, 0, v27);
  182. elseif 5 <= v28 then
  183. if v28 <= 6 then
  184. v30 = Color3.new(v27, 0, v29);
  185. end;
  186. end;
  187. elseif 5 <= v28 then
  188. if v28 <= 6 then
  189. v30 = Color3.new(v27, 0, v29);
  190. end;
  191. end;
  192. elseif 1 <= v28 then
  193. if v28 <= 2 then
  194. v30 = Color3.new(v29, v27, 0);
  195. elseif 2 <= v28 then
  196. if v28 <= 3 then
  197. v30 = Color3.new(0, v27, v29);
  198. elseif 3 <= v28 then
  199. if v28 <= 4 then
  200. v30 = Color3.new(0, v29, v27);
  201. elseif 4 <= v28 then
  202. if v28 <= 5 then
  203. v30 = Color3.new(v29, 0, v27);
  204. elseif 5 <= v28 then
  205. if v28 <= 6 then
  206. v30 = Color3.new(v27, 0, v29);
  207. end;
  208. end;
  209. elseif 5 <= v28 then
  210. if v28 <= 6 then
  211. v30 = Color3.new(v27, 0, v29);
  212. end;
  213. end;
  214. elseif 4 <= v28 then
  215. if v28 <= 5 then
  216. v30 = Color3.new(v29, 0, v27);
  217. elseif 5 <= v28 then
  218. if v28 <= 6 then
  219. v30 = Color3.new(v27, 0, v29);
  220. end;
  221. end;
  222. elseif 5 <= v28 then
  223. if v28 <= 6 then
  224. v30 = Color3.new(v27, 0, v29);
  225. end;
  226. end;
  227. elseif 3 <= v28 then
  228. if v28 <= 4 then
  229. v30 = Color3.new(0, v29, v27);
  230. elseif 4 <= v28 then
  231. if v28 <= 5 then
  232. v30 = Color3.new(v29, 0, v27);
  233. elseif 5 <= v28 then
  234. if v28 <= 6 then
  235. v30 = Color3.new(v27, 0, v29);
  236. end;
  237. end;
  238. elseif 5 <= v28 then
  239. if v28 <= 6 then
  240. v30 = Color3.new(v27, 0, v29);
  241. end;
  242. end;
  243. elseif 4 <= v28 then
  244. if v28 <= 5 then
  245. v30 = Color3.new(v29, 0, v27);
  246. elseif 5 <= v28 then
  247. if v28 <= 6 then
  248. v30 = Color3.new(v27, 0, v29);
  249. end;
  250. end;
  251. elseif 5 <= v28 then
  252. if v28 <= 6 then
  253. v30 = Color3.new(v27, 0, v29);
  254. end;
  255. end;
  256. elseif 2 <= v28 then
  257. if v28 <= 3 then
  258. v30 = Color3.new(0, v27, v29);
  259. elseif 3 <= v28 then
  260. if v28 <= 4 then
  261. v30 = Color3.new(0, v29, v27);
  262. elseif 4 <= v28 then
  263. if v28 <= 5 then
  264. v30 = Color3.new(v29, 0, v27);
  265. elseif 5 <= v28 then
  266. if v28 <= 6 then
  267. v30 = Color3.new(v27, 0, v29);
  268. end;
  269. end;
  270. elseif 5 <= v28 then
  271. if v28 <= 6 then
  272. v30 = Color3.new(v27, 0, v29);
  273. end;
  274. end;
  275. elseif 4 <= v28 then
  276. if v28 <= 5 then
  277. v30 = Color3.new(v29, 0, v27);
  278. elseif 5 <= v28 then
  279. if v28 <= 6 then
  280. v30 = Color3.new(v27, 0, v29);
  281. end;
  282. end;
  283. elseif 5 <= v28 then
  284. if v28 <= 6 then
  285. v30 = Color3.new(v27, 0, v29);
  286. end;
  287. end;
  288. elseif 3 <= v28 then
  289. if v28 <= 4 then
  290. v30 = Color3.new(0, v29, v27);
  291. elseif 4 <= v28 then
  292. if v28 <= 5 then
  293. v30 = Color3.new(v29, 0, v27);
  294. elseif 5 <= v28 then
  295. if v28 <= 6 then
  296. v30 = Color3.new(v27, 0, v29);
  297. end;
  298. end;
  299. elseif 5 <= v28 then
  300. if v28 <= 6 then
  301. v30 = Color3.new(v27, 0, v29);
  302. end;
  303. end;
  304. elseif 4 <= v28 then
  305. if v28 <= 5 then
  306. v30 = Color3.new(v29, 0, v27);
  307. elseif 5 <= v28 then
  308. if v28 <= 6 then
  309. v30 = Color3.new(v27, 0, v29);
  310. end;
  311. end;
  312. elseif 5 <= v28 then
  313. if v28 <= 6 then
  314. v30 = Color3.new(v27, 0, v29);
  315. end;
  316. end;
  317. local v31 = p3 - v27;
  318. return Color3.new(v30.r + v31, v30.g + v31, v30.b + v31);
  319. end;
  320. function GetWeld(p4)
  321. if p4:findFirstChild("XAngle") == nil then
  322. Instance.new("NumberValue", p4).Name = "XAngle";
  323. end;
  324. if p4:findFirstChild("YAngle") == nil then
  325. Instance.new("NumberValue", p4).Name = "YAngle";
  326. end;
  327. if p4:findFirstChild("ZAngle") == nil then
  328. Instance.new("NumberValue", p4).Name = "ZAngle";
  329. end;
  330. return p4.C0.p, Vector3.new(p4.XAngle.Value, p4.YAngle.Value, p4.ZAngle.Value);
  331. end;
  332. function SetWeld(p5, p6, p7, p8, p9, p10, p11)
  333. if p5:findFirstChild("XAngle") == nil then
  334. Instance.new("NumberValue", p5).Name = "XAngle";
  335. end;
  336. if p5:findFirstChild("YAngle") == nil then
  337. Instance.new("NumberValue", p5).Name = "YAngle";
  338. end;
  339. if p5:findFirstChild("ZAngle") == nil then
  340. Instance.new("NumberValue", p5).Name = "ZAngle";
  341. end;
  342. if p11.x < p9.x then
  343. local v32 = -math.abs(p9.x - p11.x) / p7 * p6;
  344. else
  345. v32 = math.abs(p9.x - p11.x) / p7 * p6;
  346. end;
  347. if p11.y < p9.y then
  348. local v33 = -math.abs(p9.y - p11.y) / p7 * p6;
  349. else
  350. v33 = math.abs(p9.y - p11.y) / p7 * p6;
  351. end;
  352. if p11.z < p9.z then
  353. local v34 = -math.abs(p9.z - p11.z) / p7 * p6;
  354. else
  355. v34 = math.abs(p9.z - p11.z) / p7 * p6;
  356. end;
  357. if p10.x < p8.x then
  358. local v35 = -math.abs(p8.x - p10.x) / p7 * p6;
  359. else
  360. v35 = math.abs(p8.x - p10.x) / p7 * p6;
  361. end;
  362. if p10.y < p8.y then
  363. local v36 = -math.abs(p8.y - p10.y) / p7 * p6;
  364. else
  365. v36 = math.abs(p8.y - p10.y) / p7 * p6;
  366. end;
  367. if p10.z < p8.z then
  368. local v37 = -math.abs(p8.z - p10.z) / p7 * p6;
  369. else
  370. v37 = math.abs(p8.z - p10.z) / p7 * p6;
  371. end;
  372. p5.XAngle.Value = p9.x + v32;
  373. p5.YAngle.Value = p9.y + v33;
  374. p5.ZAngle.Value = p9.z + v34;
  375. p5.C0 = CFrame.new(p8.x + v35, p8.y + v36, p8.z + v37) * CFrame.Angles(p9.x + v32, p9.y + v33, p9.z + v34);
  376. end;
  377. local u1 = { 112474909, 112474911, 112474909 };
  378. function LoadTextures()
  379. local v38 = game:service("ContentProvider");
  380. local v39, v40, v41 = pairs(u1);
  381. while true do
  382. local v42, v43 = v39(v40, v41);
  383. if v42 then
  384.  
  385. else
  386. break;
  387. end;
  388. v41 = v42;
  389. v38:Preload("http://www.roblox.com/asset/?id=" .. v43);
  390. wait(0.04);
  391. end;
  392. end;
  393. LoadTextures();
  394. local u2 = 100000;
  395. function CreateGui()
  396. local v44, v45, v46 = pairs(l__LocalPlayer__1.PlayerGui:children());
  397. while true do
  398. local v47, v48 = v44(v45, v46);
  399. if v47 then
  400.  
  401. else
  402. break;
  403. end;
  404. v46 = v47;
  405. if v48.className == "ScreenGui" then
  406. if v48.Name == "staminaGui" then
  407. v48:remove();
  408. end;
  409. end;
  410. end;
  411. local v49 = Instance.new("ScreenGui", l__LocalPlayer__1.PlayerGui);
  412. v49.Name = "staminaGui";
  413. local v50 = Instance.new("Frame", v49);
  414. v50.Visible = false;
  415. v50.Size = UDim2.new(0, 86, 0, 320);
  416. v50.BackgroundTransparency = 1;
  417. v50.Position = UDim2.new(1, -96, 0.5, -160);
  418. v50.Name = "Container";
  419. local v51 = Instance.new("TextLabel", v50);
  420. v51.Size = UDim2.new(0, 0, -0.1, 0);
  421. v51.Position = UDim2.new(0.3, 0, 0.5, 0);
  422. v51.TextXAlignment = "Right";
  423. v51.Font = "ArialBold";
  424. v51.TextTransparency = 1;
  425. v51.TextColor3 = Color3.new(0, 0.6, 0.8);
  426. v51.TextStrokeColor3 = Color3.new(0, 0.2, 0.8);
  427. v51.TextStrokeTransparency = 0.3;
  428. v51.FontSize = 6;
  429. v51.BackgroundTransparency = 1;
  430. local v52 = v51:Clone();
  431. v52.Parent = v50;
  432. v52.Size = UDim2.new(0, 0, 0.1, 0);
  433. local v53 = v51:Clone();
  434. v53.Parent = v50;
  435. v53.Size = UDim2.new(0, 0, 0, 0);
  436. v53.Text = "-----";
  437. v53.TextTransparency = 1;
  438. local v54 = Instance.new("Frame", v50);
  439. v54.Name = "Backing";
  440. v54.ClipsDescendants = true;
  441. v54.Size = UDim2.new(1, 0, 0, 0);
  442. v54.BackgroundColor3 = Color3.new(0.8, 0, 0);
  443. v54.BackgroundTransparency = 1;
  444. local v55 = Instance.new("ImageLabel", v54);
  445. v55.BackgroundTransparency = 1;
  446. v55.Image = "http://www.roblox.com/asset/?id=112474909";
  447. v55.Size = UDim2.new(1, 0, 0, v50.Size.Y.Offset);
  448. v55.Visible = false;
  449. local v56 = Instance.new("Frame", v50);
  450. v56.Name = "Overlay";
  451. v56.ClipsDescendants = true;
  452. v56.Size = UDim2.new(1, 0, 1, 0);
  453. v56.BackgroundColor3 = Color3.new(0, 0, 0.8);
  454. v56.BackgroundTransparency = 1;
  455. local v57 = Instance.new("ImageLabel", v56);
  456. v57.BackgroundTransparency = 1;
  457. v57.Image = "http://www.roblox.com/asset/?id=112474911";
  458. v57.Size = UDim2.new(1, 0, 0, v50.Size.Y.Offset);
  459. v57.Visible = false;
  460. function Calculate()
  461. local l__Offset__58 = v50.Size.Y.Offset;
  462. local v59 = -(u2 / 100000 - 1) * v50.Size.Y.Offset;
  463. v54.Size = UDim2.new(1, 0, 0, v59);
  464. v56.Size = UDim2.new(1, 0, 0, u2 / 100000 * v50.Size.Y.Offset);
  465. v56.Position = UDim2.new(0, 0, 0, v59);
  466. v57.Position = UDim2.new(0, 0, 0, -v59);
  467. v51.Text = math.floor(u2);
  468. v52.Text = 100000;
  469. end;
  470. Calculate();
  471. wait(0.01);
  472. v50.Visible = true;
  473. end;
  474. CreateGui();
  475. local u3 = l__Character__3;
  476. local u4 = v4;
  477. local u5 = v5;
  478. local u6 = v6;
  479. local u7 = v7;
  480. local u8 = v8;
  481. local u9 = v9;
  482. local u10 = v10;
  483. local u11 = v11;
  484. local u12 = v12;
  485. local u13 = v13;
  486. local u14 = v14;
  487. local u15 = v15;
  488. l__LocalPlayer__1.CharacterAdded:connect(function()
  489. u3 = l__LocalPlayer__1.Character;
  490. u4 = u3:findFirstChild("Torso");
  491. u5 = u3:findFirstChild("Right Arm");
  492. u6 = u3:findFirstChild("Left Arm");
  493. u7 = u3:findFirstChild("Right Leg");
  494. u8 = u3:findFirstChild("Left Leg");
  495. u9 = u3:findFirstChild("Head");
  496. u10 = u3:findFirstChild("Humanoid");
  497. u11 = u4:findFirstChild("Right Shoulder");
  498. u12 = u4:findFirstChild("Left Shoulder");
  499. u13 = u4:findFirstChild("Right Hip");
  500. u14 = u4:findFirstChild("Left Hip");
  501. u15 = u4:findFirstChild("Neck");
  502. u2 = 100000;
  503. CreateGui();
  504. end);
  505. function RAY(p12, p13, p14, p15, p16, p17)
  506. local v60 = nil;
  507. local v61 = nil;
  508. p17 = p17 or { u3 };
  509. p14 = p14 and p12;
  510. p16 = p16 or p13.unit * p13.magnitude;
  511. p15 = p15 or p12 + p16;
  512. local v62, v63, v64 = workspace:FindPartOnRayWithIgnoreList(Ray.new(p12, p16), p17);
  513. if v62 ~= nil then
  514. if v62.CanCollide == false then
  515. table.insert(p17, v62);
  516. v60 = v63;
  517. v61 = p16 - p13.unit * (p12 - v60).magnitude;
  518. if v61 ~= v16 then
  519.  
  520. else
  521. return v62, v63, v64;
  522. end;
  523. else
  524. return v62, v63, v64;
  525. end;
  526. else
  527. return v62, v63, v64;
  528. end;
  529. return RAY(v60 - p13 * 0.01, p13, p14, p15, v61 + p13 * 0.01, p17);
  530. end;
  531. local u16 = true;
  532. local u17 = nil;
  533. local u18 = nil;
  534. local u19 = nil;
  535. local u20 = nil;
  536. local u21 = nil;
  537. local u22 = false;
  538. local u23 = "Standing";
  539. function Sit()
  540. u16 = false;
  541. local v65, v66 = RAY(u4.Position, Vector3.new(0, -4.1, 0));
  542. local v67 = Vector3.new(u4.CFrame.lookVector.x, 0, u4.CFrame.lookVector.z);
  543. if v65 ~= nil then
  544. if v65.CanCollide == true then
  545. local v68 = CFrame.new(v66 + Vector3.new(0, 1.28, 0), v66 + Vector3.new(0, 1.28, 0) + v67) * CFrame.Angles(math.pi / 6, 0, 0);
  546. local v69, v70 = RAY(v66 + Vector3.new(0, 2.25, 0), v67 * -2.2);
  547. u10.PlatformStand = true;
  548. u4.CFrame = v68;
  549. local v71 = Instance.new("BodyPosition", u4);
  550. v71.Name = "StaminaBodyObject";
  551. v71.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  552. v71.D = 100;
  553. v71.position = v68.p;
  554. local v72 = Instance.new("BodyGyro", u4);
  555. v72.Name = "StaminaBodyObject";
  556. v72.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  557. v72.cframe = v68;
  558. v72.D = 100;
  559. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.34, -1, 0.2), Vector3.new(math.pi / 2 - math.pi / 6, 0, math.pi / 8));
  560. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.34, -1, 0.2), Vector3.new(math.pi / 2 - math.pi / 6, 0, -math.pi / 8));
  561. if v69 ~= nil then
  562. if v69.CanCollide == true then
  563. u19.C0 = CFrame.new(0.9, 0.4, -0.45) * CFrame.Angles(0, math.pi / 2.13, 0) * CFrame.Angles(math.pi / 2.3, 0, 0);
  564. u20.C0 = CFrame.new(-0.9, 0.4, -0.4) * CFrame.Angles(0, -math.pi / 2.05, 0) * CFrame.Angles(math.pi / 2.3, 0, 0);
  565. u21.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-math.pi / 8.8, 0, 0);
  566. else
  567. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.4, 0.1), Vector3.new(-(math.pi / 6) - math.pi / 10, 0, math.pi / 9));
  568. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.4, 0.1), Vector3.new(-(math.pi / 6) - math.pi / 10, 0, -math.pi / 9));
  569. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 12, 0, 0));
  570. end;
  571. else
  572. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.4, 0.1), Vector3.new(-(math.pi / 6) - math.pi / 10, 0, math.pi / 9));
  573. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.4, 0.1), Vector3.new(-(math.pi / 6) - math.pi / 10, 0, -math.pi / 9));
  574. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 12, 0, 0));
  575. end;
  576. u22 = true;
  577. u23 = "Sitting";
  578. end;
  579. end;
  580. end;
  581. local u24 = false;
  582. function Stand()
  583. u10.PlatformStand = false;
  584. if u22 == true then
  585. local v73 = u4.Position + u4.CFrame.lookVector * 10000;
  586. u4.CFrame = CFrame.new(u4.Position + Vector3.new(0, 1.8, 0), Vector3.new(v73.x, u4.Position.y, v73.z));
  587. end;
  588. local v74, v75, v76 = pairs(u4:children());
  589. while true do
  590. local v77, v78 = v74(v75, v76);
  591. if v77 then
  592.  
  593. else
  594. break;
  595. end;
  596. v76 = v77;
  597. if v78.Name == "StaminaBodyObject" then
  598. v78:remove();
  599. end;
  600. end;
  601. u13.Part0 = nil;
  602. u14.Part0 = nil;
  603. u11.Part0 = nil;
  604. u12.Part0 = nil;
  605. u17.Part0 = u4;
  606. u17.Part1 = u7;
  607. u17.C0 = CFrame.new(0.5, -1, 0);
  608. u17.C1 = CFrame.new(0, 1, 0);
  609. u18.Part0 = u4;
  610. u18.Part1 = u8;
  611. u18.C0 = CFrame.new(-0.5, -1, 0);
  612. u18.C1 = CFrame.new(0, 1, 0);
  613. u19.Part0 = u4;
  614. u19.Part1 = u5;
  615. u19.C0 = CFrame.new(1.5, 0.5, 0);
  616. u19.C1 = CFrame.new(0, 0.5, 0);
  617. u20.Part0 = u4;
  618. u20.Part1 = u6;
  619. u20.C0 = CFrame.new(-1.5, 0.5, 0);
  620. u20.C1 = CFrame.new(0, 0.5, 0);
  621. u21.Part0 = u4;
  622. u21.Part1 = u9;
  623. u21.C0 = CFrame.new(0, 1, 0);
  624. u21.C1 = CFrame.new(0, -0.5, 0);
  625. u22 = false;
  626. u24 = false;
  627. u16 = true;
  628. u23 = "Standing";
  629. end;
  630. local u25 = 0;
  631. local u26 = v16;
  632. local u27 = v17;
  633. local u28 = nil;
  634. local u29 = nil;
  635. local u30 = 0;
  636. function Dive()
  637. u2 = u2 - 10;
  638. v24.Value = v24.Value + 10;
  639. if 100 < v24.Value then
  640. v24.Value = 100;
  641. end;
  642. u16 = false;
  643. local v79 = Vector3.new(u4.CFrame.lookVector.x, 0, u4.CFrame.lookVector.z);
  644. u25 = 18;
  645. u26 = v79;
  646. u27 = CFrame.new(u4.Position, v79 + Vector3.new(0, u4.Position.y, 0));
  647. u26 = v79;
  648. u10.PlatformStand = true;
  649. local v80 = Instance.new("BodyVelocity", u4);
  650. v80.Name = "StaminaBodyObject";
  651. v80.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  652. v80.velocity = Vector3.new(u26.x * 24, u25, u26.z * 24);
  653. u28 = v80;
  654. local v81 = Instance.new("BodyGyro", u4);
  655. v81.Name = "StaminaBodyObject";
  656. v81.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  657. v81.cframe = CFrame.new(u4.Position, u4.Position + v80.velocity) * CFrame.Angles(-math.pi / 2, 0, 0);
  658. v81.D = 100;
  659. u29 = v81;
  660. u19.C1 = CFrame.new(0, 0.5, 0);
  661. u20.C1 = CFrame.new(0, 0.5, 0);
  662. u17.C1 = CFrame.new(0, 1, 0);
  663. u18.C1 = CFrame.new(0, 1, 0);
  664. u24 = true;
  665. u23 = "Diving";
  666. local v82 = 1 - 1;
  667. while true do
  668. SetWeld(u19, v82, 8, Vector3.new(1.5, 0.5, 0), v16, Vector3.new(1.45, 0.5, 0.1), Vector3.new(-0.2, -math.pi / 9, math.pi / 13));
  669. SetWeld(u20, v82, 8, Vector3.new(-1.5, 0.5, 0), v16, Vector3.new(-1.45, 0.5, 0.1), Vector3.new(-0.2, math.pi / 9, -math.pi / 13));
  670. SetWeld(u17, v82, 8, Vector3.new(0.5, -1, 0), v16, Vector3.new(0.5, -1, 0.03), Vector3.new(-0.2, -math.pi / 10, math.pi / 14));
  671. SetWeld(u18, v82, 8, Vector3.new(-0.5, -1, 0), v16, Vector3.new(-0.5, -1, 0.03), Vector3.new(-0.2, math.pi / 10, -math.pi / 14));
  672. SetWeld(u21, v82, 8, Vector3.new(0, 1, 0), v16, Vector3.new(0, 1, 0), Vector3.new(0.45, 0, 0));
  673. wait(0.025);
  674. if 0 <= 1 then
  675. if v82 < 8 then
  676.  
  677. else
  678. break;
  679. end;
  680. elseif 8 < v82 then
  681.  
  682. else
  683. break;
  684. end;
  685. v82 = v82 + 1;
  686. end;
  687. local v83 = 0;
  688. while true do
  689. if u24 == true then
  690.  
  691. else
  692. break;
  693. end;
  694. v83 = v83 + 1;
  695. v81.Parent = u4;
  696. local v84, v85 = RAY(u4.Position, v80.velocity.unit * 4.6);
  697. if v84 ~= nil then
  698. if v84.CanCollide == true then
  699. local v86, v87 = RAY(u4.Position, Vector3.new(0, -4, 0));
  700. if v86 ~= nil then
  701.  
  702. else
  703. u4.CFrame = u4.CFrame * CFrame.new(0, -0.3, 0);
  704. u4.Velocity = v16;
  705. v24.Value = 0;
  706. break;
  707. end;
  708. u24 = "Rolling";
  709. u23 = "DiveRolling";
  710. end;
  711. end;
  712. if not (190 < v83) then
  713.  
  714. else
  715. break;
  716. end;
  717. wait(0.02);
  718. end;
  719. v80.velocity = v79 * 20 + Vector3.new(0, -0.5, 0);
  720. local l__cframe__88 = v81.cframe;
  721. local v89 = false;
  722. local v90 = 0;
  723. while true do
  724. local v91 = nil;
  725. if v89 == false then
  726.  
  727. else
  728. break;
  729. end;
  730. v81.cframe = l__cframe__88 * CFrame.Angles(-0.3 * v90, 0, 0);
  731. local v92, v93 = RAY(u4.Position, ((u4.CFrame * CFrame.new(0, -1, 0)).p - u4.CFrame.p).unit * 1.6);
  732. if v92 ~= nil then
  733. if v92.CanCollide == true then
  734. v89 = true;
  735. end;
  736. end;
  737. local v94 = nil;
  738. v94, v91 = RAY(u4.Position, Vector3.new(0, -3.8, 0));
  739. if v94 == nil then
  740. u4.Velocity = v16;
  741. break;
  742. end;
  743. if v89 == true then
  744. local v95 = Instance.new("BodyPosition", u4);
  745. v95.Name = "StaminaJumpFix";
  746. v95.maxForce = Vector3.new(0, (1 / 0), 0);
  747. v95.P = 7000;
  748. v95.position = v91 + Vector3.new(0, 2.8, 0);
  749. game:service("Debris"):AddItem(v95, 0.3);
  750. else
  751. v80.velocity = v79 * 20 + Vector3.new(0, -(u4.Position - v91).magnitude * 3, 0);
  752. end;
  753. v90 = v90 + 1;
  754. if v90 <= 6 then
  755. local v96, v97 = GetWeld(u19);
  756. local v98, v99 = GetWeld(u20);
  757. local v100, v101 = GetWeld(u17);
  758. local v102, v103 = GetWeld(u18);
  759. local v104, v105 = GetWeld(u21);
  760. SetWeld(u19, v90, 6, v96, v97, Vector3.new(1.35, 0.5, -0.2), Vector3.new(math.pi / 2.6, 0, -math.pi / 5.8));
  761. SetWeld(u20, v90, 6, v98, v99, Vector3.new(-1.35, 0.5, -0.2), Vector3.new(math.pi / 2.6, 0, math.pi / 5.8));
  762. SetWeld(u17, v90, 6, v100, v101, Vector3.new(0.51, 0.4, -0.6), Vector3.new(-0.1, 0, 0.05));
  763. SetWeld(u18, v90, 6, v102, v103, Vector3.new(-0.51, 0.4, -0.6), Vector3.new(-0.1, 0, -0.05));
  764. SetWeld(u21, v90, 6, v104, v105, Vector3.new(0, 1, 0), Vector3.new(-0.4, 0, 0));
  765. elseif not (50 <= v90) then
  766.  
  767. else
  768. break;
  769. end;
  770. wait(0.02);
  771. end;
  772. u4.Velocity = v16;
  773. Stand();
  774. u30 = 9;
  775. end;
  776. local u31 = false;
  777. local u32 = nil;
  778. local u33 = 32;
  779. local u34 = 0;
  780. local u35 = nil;
  781. local u36 = 0;
  782. local u37 = false;
  783. function HWallRun(p18, p19, p20, p21)
  784. if p18.className == "Part" then
  785. if p18.Shape ~= Enum.PartType.Block then
  786. if p18.className ~= "Part" then
  787. v24.Value = v24.Value + 9;
  788. u16 = false;
  789. u31 = true;
  790. u23 = "HWallRunning";
  791. u25 = 10;
  792. u32 = p18;
  793. towall = -p20;
  794. p20 = (CFrame.new(v16, p20) * CFrame.Angles(0, p21, 0)).lookVector;
  795. local v106 = Instance.new("BodyVelocity", u4);
  796. v106.Name = "StaminaBodyObject";
  797. v106.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  798. v106.P = 9000;
  799. v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
  800. local v107 = Instance.new("BodyGyro", u4);
  801. v107.Name = "StaminaBodyObject";
  802. v107.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  803. v107.cframe = CFrame.new(u4.Position + towall * -2, u4.Position) * CFrame.Angles(0, -p21, -p21 / 4.2);
  804. v107.D = 100;
  805. local v108 = Instance.new("Motor");
  806. if p21 == -math.pi / 2 then
  807. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi / 1.3, 0.1, math.pi / 2.5));
  808. else
  809. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, math.pi / 7));
  810. end;
  811. local l__C0__109 = u19.C0;
  812. if p21 == math.pi / 2 then
  813. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi / 1.3, -0.1, -math.pi / 2.5));
  814. else
  815. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, -math.pi / 7));
  816. end;
  817. local l__C0__110 = u20.C0;
  818. u17.C1 = CFrame.new(0, 1, 0);
  819. if p21 == -math.pi / 2 then
  820. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.38, -0.3), Vector3.new(0, math.pi / 2, 0.14));
  821. else
  822. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.8, -0.2), Vector3.new(0, math.pi / 2, 0.2));
  823. end;
  824. u18.C1 = CFrame.new(0, 1, 0);
  825. if p21 == -math.pi / 2 then
  826. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.8, -0.2), Vector3.new(0, 0, 0.2));
  827. else
  828. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.38, -0.3), Vector3.new(0, 0, 0.14));
  829. end;
  830. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 0.9, 0), Vector3.new(0, 0, p21 / 7));
  831. u4.CFrame = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
  832. v107.cframe = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
  833. local v111 = 0;
  834. local v112 = true;
  835. local v113 = 0;
  836. local v114 = true;
  837. local v115 = p18;
  838. u32 = p18;
  839. while true do
  840. if u31 == true then
  841.  
  842. else
  843. break;
  844. end;
  845. if math.pi < v111 then
  846. v112 = false;
  847. elseif v111 < -math.pi then
  848. v112 = true;
  849. end;
  850. if v112 == true then
  851. v111 = v111 + 0.95;
  852. elseif v112 == false then
  853. v111 = v111 - 0.95;
  854. end;
  855. if math.pi < v113 then
  856. v114 = false;
  857. elseif v113 < -math.pi then
  858. v114 = true;
  859. end;
  860. if v114 == true then
  861. v113 = v113 + 0.23;
  862. elseif v114 == false then
  863. v113 = v113 - 0.23;
  864. end;
  865. u10.PlatformStand = true;
  866. local v116, v117, v118 = RAY(u4.Position, Vector3.new(0, -3, 0));
  867. local v119, v120, v121 = RAY(u4.Position, towall * 3.4);
  868. if v116 ~= nil then
  869. if v116.CanCollide == true then
  870. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
  871. u4.CFrame = CFrame.new(Vector3.new(v107.cframe.p.x, v107.cframe.p.y + v120.y - v107.cframe.p.y, v107.cframe.p.z), v120) * CFrame.Angles(0, -p21, 0);
  872. u4.Velocity = v16;
  873. break;
  874. end;
  875. end;
  876. if v119 ~= nil then
  877.  
  878. else
  879. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  880. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  881. u4.Velocity = v16;
  882. u34 = 8;
  883. break;
  884. end;
  885. if v119.CanCollide == true then
  886.  
  887. else
  888. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  889. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  890. u4.Velocity = v16;
  891. u34 = 8;
  892. break;
  893. end;
  894. if v119 ~= v115 then
  895. local v122, v123, v124 = RAY(u4.Position, (CFrame.new(u4.Position, u4.Position + p20) * CFrame.Angles(0, p21, 0) * CFrame.Angles(0, -p21 / 2.3, 0)).lookVector * 4);
  896. if v122 ~= nil then
  897.  
  898. else
  899. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  900. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  901. u4.Velocity = v16;
  902. u34 = 8;
  903. break;
  904. end;
  905. u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
  906. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
  907. towall = -v124;
  908. local l__lookVector__125 = (CFrame.new(v16, v124) * CFrame.Angles(0, p21, 0)).lookVector;
  909. v115 = v119;
  910. u32 = v119;
  911. end;
  912. u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
  913. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
  914. local v126, v127, v128 = RAY(u4.Position, u4.CFrame.lookVector * 2);
  915. if v126 ~= nil then
  916. if v126.CanCollide == true then
  917. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  918. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  919. u4.Velocity = v16;
  920. u34 = 8;
  921. break;
  922. end;
  923. end;
  924. v106.Parent = u4;
  925. v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
  926. v107.cframe = v107.cframe * CFrame.Angles(v111 / 80, v111 / 80, 0);
  927. u4.CFrame = u4.CFrame * CFrame.Angles(v111 / 80, v111 / 80, 0);
  928. local v129, v130 = GetWeld(u17);
  929. local v131, v132 = GetWeld(u18);
  930. SetWeld(u17, 1, 1, v129, v130, v129, Vector3.new(-0.2 + v111 / 4, 0, 0));
  931. SetWeld(u18, 1, 1, v131, v132, v131, Vector3.new(-0.2 + -v111 / 4, 0, 0));
  932. if p21 == math.pi / 2 then
  933. local v133, v134 = GetWeld(u19);
  934. SetWeld(u19, 1, 1, v133, v134, v133, Vector3.new(0, 0, 0.8 + v113 / 14));
  935. else
  936. local v135, v136 = GetWeld(u20);
  937. SetWeld(u20, 1, 1, v135, v136, v135, Vector3.new(0, 0, -0.8 - v113 / 14));
  938. end;
  939. wait(0.025);
  940. if u25 < -100 then
  941. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
  942. u4.CFrame = CFrame.new(Vector3.new(v107.cframe.p.x, math.abs(v107.cframe.p.y + v120.y - v107.cframe.p.y), v107.cframe.p.z), v120) * CFrame.Angles(0, -p21, 0);
  943. break;
  944. end;
  945. end;
  946. if u31 == "Jumping" then
  947. u34 = 6;
  948. u19.C1 = CFrame.new(0, 0.5, 0);
  949. u20.C1 = CFrame.new(0, 0.5, 0);
  950. if p21 == -math.pi / 2 then
  951. u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 3);
  952. else
  953. u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
  954. end;
  955. u17.C1 = CFrame.new(0, 1, 0);
  956. if p21 == -math.pi / 2 then
  957. u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, -math.pi / 4);
  958. else
  959. u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, math.pi / 4);
  960. end;
  961. u18.MaxVelocity = 10;
  962. u18.DesiredAngle = 0;
  963. u18.C1 = CFrame.new(0, 1, 0);
  964. if p21 == -math.pi / 2 then
  965. u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, math.pi / 4);
  966. else
  967. u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
  968. end;
  969. u21.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(0, p21 / 2.4, 0);
  970. u21.C0 = CFrame.new(0, 1, 0);
  971. local v137, v138 = GetWeld(u19);
  972. local v139, v140 = GetWeld(u20);
  973. local v141, v142 = GetWeld(u17);
  974. local v143, v144 = GetWeld(u18);
  975. local v145, v146 = GetWeld(u21);
  976. u25 = 26;
  977. local v147 = 0;
  978. local v148 = p21 / 2;
  979. local v149 = 1;
  980. local l__lookVector__150 = (CFrame.new(v16, p20) * CFrame.Angles(0, -p21 / 2.4, 0)).lookVector;
  981. u35 = l__lookVector__150;
  982. v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
  983. while true do
  984. if u31 == "Jumping" then
  985.  
  986. else
  987. break;
  988. end;
  989. local v151, v152 = RAY(u4.Position, Vector3.new(0, -4, 0));
  990. local v153, v154 = RAY(u4.Position, l__lookVector__150 * 1.4);
  991. if v151 ~= nil then
  992. if v151.CanCollide == true then
  993. local v155 = math.abs(v152.y - u4.CFrame.p.y);
  994. u4.CFrame = CFrame.new(v152 + Vector3.new(0, 2.9, 0), v152 + Vector3.new(0, 2.9, 0) + l__lookVector__150);
  995. u4.Velocity = v16;
  996. break;
  997. end;
  998. end;
  999. if v153 ~= nil then
  1000. if v153.CanCollide == true then
  1001. v147 = v147 + 1;
  1002. if v147 == 4 then
  1003. u4.CFrame = CFrame.new(u4.Position, u4.Position + l__lookVector__150) * CFrame.new(0, 0, 0.4);
  1004. u4.Velocity = Vector3.new(0, u4.Velocity.y, 0);
  1005. u34 = 5;
  1006. u36 = 5;
  1007. wait(0.02);
  1008. break;
  1009. end;
  1010. end;
  1011. end;
  1012. if 0 < p21 / 2 then
  1013. if 0.2 < v148 then
  1014. v148 = v148 - 0.055;
  1015. end;
  1016. elseif v148 < -0.2 then
  1017. v148 = v148 + 0.055;
  1018. end;
  1019. if v149 <= 5 then
  1020. if p21 == -math.pi / 2 then
  1021. SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 4));
  1022. SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 3));
  1023. SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1024. u17.C0 = u17.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
  1025. SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1026. u18.C0 = u18.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
  1027. else
  1028. SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 3));
  1029. SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 4));
  1030. SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1031. u17.C0 = u17.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
  1032. SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1033. u18.C0 = u18.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
  1034. end;
  1035. v149 = v149 + 1;
  1036. end;
  1037. v107.Parent = u4;
  1038. v107.cframe = CFrame.new(v16, p20) * CFrame.Angles(0, p21 / 15, -v148);
  1039. v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
  1040. if v147 ~= 0 then
  1041. v106.velocity = Vector3.new(0, v106.velocity.y, 0);
  1042. end;
  1043. if not (u25 < -120) then
  1044.  
  1045. else
  1046. break;
  1047. end;
  1048. wait(0.025);
  1049. end;
  1050. end;
  1051. u10.PlatformStand = false;
  1052. v106:remove();
  1053. u37 = false;
  1054. Stand();
  1055. u31 = false;
  1056. end;
  1057. else
  1058. v24.Value = v24.Value + 9;
  1059. u16 = false;
  1060. u31 = true;
  1061. u23 = "HWallRunning";
  1062. u25 = 10;
  1063. u32 = p18;
  1064. towall = -p20;
  1065. p20 = (CFrame.new(v16, p20) * CFrame.Angles(0, p21, 0)).lookVector;
  1066. v106 = Instance.new("BodyVelocity", u4);
  1067. v106.Name = "StaminaBodyObject";
  1068. v106.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1069. v106.P = 9000;
  1070. v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
  1071. v107 = Instance.new("BodyGyro", u4);
  1072. v107.Name = "StaminaBodyObject";
  1073. v107.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1074. v107.cframe = CFrame.new(u4.Position + towall * -2, u4.Position) * CFrame.Angles(0, -p21, -p21 / 4.2);
  1075. v107.D = 100;
  1076. v108 = Instance.new("Motor");
  1077. if p21 == -math.pi / 2 then
  1078. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi / 1.3, 0.1, math.pi / 2.5));
  1079. else
  1080. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, math.pi / 7));
  1081. end;
  1082. l__C0__109 = u19.C0;
  1083. if p21 == math.pi / 2 then
  1084. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi / 1.3, -0.1, -math.pi / 2.5));
  1085. else
  1086. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, -math.pi / 7));
  1087. end;
  1088. l__C0__110 = u20.C0;
  1089. u17.C1 = CFrame.new(0, 1, 0);
  1090. if p21 == -math.pi / 2 then
  1091. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.38, -0.3), Vector3.new(0, math.pi / 2, 0.14));
  1092. else
  1093. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.8, -0.2), Vector3.new(0, math.pi / 2, 0.2));
  1094. end;
  1095. u18.C1 = CFrame.new(0, 1, 0);
  1096. if p21 == -math.pi / 2 then
  1097. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.8, -0.2), Vector3.new(0, 0, 0.2));
  1098. else
  1099. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.38, -0.3), Vector3.new(0, 0, 0.14));
  1100. end;
  1101. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 0.9, 0), Vector3.new(0, 0, p21 / 7));
  1102. u4.CFrame = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1103. v107.cframe = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1104. v111 = 0;
  1105. v112 = true;
  1106. v113 = 0;
  1107. v114 = true;
  1108. v115 = p18;
  1109. u32 = p18;
  1110. while true do
  1111. if u31 == true then
  1112.  
  1113. else
  1114. break;
  1115. end;
  1116. if math.pi < v111 then
  1117. v112 = false;
  1118. elseif v111 < -math.pi then
  1119. v112 = true;
  1120. end;
  1121. if v112 == true then
  1122. v111 = v111 + 0.95;
  1123. elseif v112 == false then
  1124. v111 = v111 - 0.95;
  1125. end;
  1126. if math.pi < v113 then
  1127. v114 = false;
  1128. elseif v113 < -math.pi then
  1129. v114 = true;
  1130. end;
  1131. if v114 == true then
  1132. v113 = v113 + 0.23;
  1133. elseif v114 == false then
  1134. v113 = v113 - 0.23;
  1135. end;
  1136. u10.PlatformStand = true;
  1137. v116, v117, v118 = RAY(u4.Position, Vector3.new(0, -3, 0));
  1138. v119, v120, v121 = RAY(u4.Position, towall * 3.4);
  1139. if v116 ~= nil then
  1140. if v116.CanCollide == true then
  1141. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
  1142. u4.CFrame = CFrame.new(Vector3.new(v107.cframe.p.x, v107.cframe.p.y + v120.y - v107.cframe.p.y, v107.cframe.p.z), v120) * CFrame.Angles(0, -p21, 0);
  1143. u4.Velocity = v16;
  1144. break;
  1145. end;
  1146. end;
  1147. if v119 ~= nil then
  1148.  
  1149. else
  1150. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1151. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1152. u4.Velocity = v16;
  1153. u34 = 8;
  1154. break;
  1155. end;
  1156. if v119.CanCollide == true then
  1157.  
  1158. else
  1159. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1160. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1161. u4.Velocity = v16;
  1162. u34 = 8;
  1163. break;
  1164. end;
  1165. if v119 ~= v115 then
  1166. v122, v123, v124 = RAY(u4.Position, (CFrame.new(u4.Position, u4.Position + p20) * CFrame.Angles(0, p21, 0) * CFrame.Angles(0, -p21 / 2.3, 0)).lookVector * 4);
  1167. if v122 ~= nil then
  1168.  
  1169. else
  1170. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1171. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1172. u4.Velocity = v16;
  1173. u34 = 8;
  1174. break;
  1175. end;
  1176. u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
  1177. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
  1178. towall = -v124;
  1179. l__lookVector__125 = (CFrame.new(v16, v124) * CFrame.Angles(0, p21, 0)).lookVector;
  1180. v115 = v119;
  1181. u32 = v119;
  1182. end;
  1183. u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1184. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1185. v126, v127, v128 = RAY(u4.Position, u4.CFrame.lookVector * 2);
  1186. if v126 ~= nil then
  1187. if v126.CanCollide == true then
  1188. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1189. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1190. u4.Velocity = v16;
  1191. u34 = 8;
  1192. break;
  1193. end;
  1194. end;
  1195. v106.Parent = u4;
  1196. v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
  1197. v107.cframe = v107.cframe * CFrame.Angles(v111 / 80, v111 / 80, 0);
  1198. u4.CFrame = u4.CFrame * CFrame.Angles(v111 / 80, v111 / 80, 0);
  1199. v129, v130 = GetWeld(u17);
  1200. v131, v132 = GetWeld(u18);
  1201. SetWeld(u17, 1, 1, v129, v130, v129, Vector3.new(-0.2 + v111 / 4, 0, 0));
  1202. SetWeld(u18, 1, 1, v131, v132, v131, Vector3.new(-0.2 + -v111 / 4, 0, 0));
  1203. if p21 == math.pi / 2 then
  1204. v133, v134 = GetWeld(u19);
  1205. SetWeld(u19, 1, 1, v133, v134, v133, Vector3.new(0, 0, 0.8 + v113 / 14));
  1206. else
  1207. v135, v136 = GetWeld(u20);
  1208. SetWeld(u20, 1, 1, v135, v136, v135, Vector3.new(0, 0, -0.8 - v113 / 14));
  1209. end;
  1210. wait(0.025);
  1211. if u25 < -100 then
  1212. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
  1213. u4.CFrame = CFrame.new(Vector3.new(v107.cframe.p.x, math.abs(v107.cframe.p.y + v120.y - v107.cframe.p.y), v107.cframe.p.z), v120) * CFrame.Angles(0, -p21, 0);
  1214. break;
  1215. end;
  1216. end;
  1217. if u31 == "Jumping" then
  1218. u34 = 6;
  1219. u19.C1 = CFrame.new(0, 0.5, 0);
  1220. u20.C1 = CFrame.new(0, 0.5, 0);
  1221. if p21 == -math.pi / 2 then
  1222. u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 3);
  1223. else
  1224. u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
  1225. end;
  1226. u17.C1 = CFrame.new(0, 1, 0);
  1227. if p21 == -math.pi / 2 then
  1228. u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, -math.pi / 4);
  1229. else
  1230. u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, math.pi / 4);
  1231. end;
  1232. u18.MaxVelocity = 10;
  1233. u18.DesiredAngle = 0;
  1234. u18.C1 = CFrame.new(0, 1, 0);
  1235. if p21 == -math.pi / 2 then
  1236. u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, math.pi / 4);
  1237. else
  1238. u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
  1239. end;
  1240. u21.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(0, p21 / 2.4, 0);
  1241. u21.C0 = CFrame.new(0, 1, 0);
  1242. v137, v138 = GetWeld(u19);
  1243. v139, v140 = GetWeld(u20);
  1244. v141, v142 = GetWeld(u17);
  1245. v143, v144 = GetWeld(u18);
  1246. v145, v146 = GetWeld(u21);
  1247. u25 = 26;
  1248. v147 = 0;
  1249. v148 = p21 / 2;
  1250. v149 = 1;
  1251. l__lookVector__150 = (CFrame.new(v16, p20) * CFrame.Angles(0, -p21 / 2.4, 0)).lookVector;
  1252. u35 = l__lookVector__150;
  1253. v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
  1254. while true do
  1255. if u31 == "Jumping" then
  1256.  
  1257. else
  1258. break;
  1259. end;
  1260. v151, v152 = RAY(u4.Position, Vector3.new(0, -4, 0));
  1261. v153, v154 = RAY(u4.Position, l__lookVector__150 * 1.4);
  1262. if v151 ~= nil then
  1263. if v151.CanCollide == true then
  1264. v155 = math.abs(v152.y - u4.CFrame.p.y);
  1265. u4.CFrame = CFrame.new(v152 + Vector3.new(0, 2.9, 0), v152 + Vector3.new(0, 2.9, 0) + l__lookVector__150);
  1266. u4.Velocity = v16;
  1267. break;
  1268. end;
  1269. end;
  1270. if v153 ~= nil then
  1271. if v153.CanCollide == true then
  1272. v147 = v147 + 1;
  1273. if v147 == 4 then
  1274. u4.CFrame = CFrame.new(u4.Position, u4.Position + l__lookVector__150) * CFrame.new(0, 0, 0.4);
  1275. u4.Velocity = Vector3.new(0, u4.Velocity.y, 0);
  1276. u34 = 5;
  1277. u36 = 5;
  1278. wait(0.02);
  1279. break;
  1280. end;
  1281. end;
  1282. end;
  1283. if 0 < p21 / 2 then
  1284. if 0.2 < v148 then
  1285. v148 = v148 - 0.055;
  1286. end;
  1287. elseif v148 < -0.2 then
  1288. v148 = v148 + 0.055;
  1289. end;
  1290. if v149 <= 5 then
  1291. if p21 == -math.pi / 2 then
  1292. SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 4));
  1293. SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 3));
  1294. SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1295. u17.C0 = u17.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
  1296. SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1297. u18.C0 = u18.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
  1298. else
  1299. SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 3));
  1300. SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 4));
  1301. SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1302. u17.C0 = u17.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
  1303. SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1304. u18.C0 = u18.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
  1305. end;
  1306. v149 = v149 + 1;
  1307. end;
  1308. v107.Parent = u4;
  1309. v107.cframe = CFrame.new(v16, p20) * CFrame.Angles(0, p21 / 15, -v148);
  1310. v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
  1311. if v147 ~= 0 then
  1312. v106.velocity = Vector3.new(0, v106.velocity.y, 0);
  1313. end;
  1314. if not (u25 < -120) then
  1315.  
  1316. else
  1317. break;
  1318. end;
  1319. wait(0.025);
  1320. end;
  1321. end;
  1322. u10.PlatformStand = false;
  1323. v106:remove();
  1324. u37 = false;
  1325. Stand();
  1326. u31 = false;
  1327. end;
  1328. elseif p18.className ~= "Part" then
  1329. v24.Value = v24.Value + 9;
  1330. u16 = false;
  1331. u31 = true;
  1332. u23 = "HWallRunning";
  1333. u25 = 10;
  1334. u32 = p18;
  1335. towall = -p20;
  1336. p20 = (CFrame.new(v16, p20) * CFrame.Angles(0, p21, 0)).lookVector;
  1337. v106 = Instance.new("BodyVelocity", u4);
  1338. v106.Name = "StaminaBodyObject";
  1339. v106.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1340. v106.P = 9000;
  1341. v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
  1342. v107 = Instance.new("BodyGyro", u4);
  1343. v107.Name = "StaminaBodyObject";
  1344. v107.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1345. v107.cframe = CFrame.new(u4.Position + towall * -2, u4.Position) * CFrame.Angles(0, -p21, -p21 / 4.2);
  1346. v107.D = 100;
  1347. v108 = Instance.new("Motor");
  1348. if p21 == -math.pi / 2 then
  1349. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi / 1.3, 0.1, math.pi / 2.5));
  1350. else
  1351. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, math.pi / 7));
  1352. end;
  1353. l__C0__109 = u19.C0;
  1354. if p21 == math.pi / 2 then
  1355. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi / 1.3, -0.1, -math.pi / 2.5));
  1356. else
  1357. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, -math.pi / 7));
  1358. end;
  1359. l__C0__110 = u20.C0;
  1360. u17.C1 = CFrame.new(0, 1, 0);
  1361. if p21 == -math.pi / 2 then
  1362. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.38, -0.3), Vector3.new(0, math.pi / 2, 0.14));
  1363. else
  1364. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.8, -0.2), Vector3.new(0, math.pi / 2, 0.2));
  1365. end;
  1366. u18.C1 = CFrame.new(0, 1, 0);
  1367. if p21 == -math.pi / 2 then
  1368. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.8, -0.2), Vector3.new(0, 0, 0.2));
  1369. else
  1370. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.38, -0.3), Vector3.new(0, 0, 0.14));
  1371. end;
  1372. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 0.9, 0), Vector3.new(0, 0, p21 / 7));
  1373. u4.CFrame = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1374. v107.cframe = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1375. v111 = 0;
  1376. v112 = true;
  1377. v113 = 0;
  1378. v114 = true;
  1379. v115 = p18;
  1380. u32 = p18;
  1381. while true do
  1382. if u31 == true then
  1383.  
  1384. else
  1385. break;
  1386. end;
  1387. if math.pi < v111 then
  1388. v112 = false;
  1389. elseif v111 < -math.pi then
  1390. v112 = true;
  1391. end;
  1392. if v112 == true then
  1393. v111 = v111 + 0.95;
  1394. elseif v112 == false then
  1395. v111 = v111 - 0.95;
  1396. end;
  1397. if math.pi < v113 then
  1398. v114 = false;
  1399. elseif v113 < -math.pi then
  1400. v114 = true;
  1401. end;
  1402. if v114 == true then
  1403. v113 = v113 + 0.23;
  1404. elseif v114 == false then
  1405. v113 = v113 - 0.23;
  1406. end;
  1407. u10.PlatformStand = true;
  1408. v116, v117, v118 = RAY(u4.Position, Vector3.new(0, -3, 0));
  1409. v119, v120, v121 = RAY(u4.Position, towall * 3.4);
  1410. if v116 ~= nil then
  1411. if v116.CanCollide == true then
  1412. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
  1413. u4.CFrame = CFrame.new(Vector3.new(v107.cframe.p.x, v107.cframe.p.y + v120.y - v107.cframe.p.y, v107.cframe.p.z), v120) * CFrame.Angles(0, -p21, 0);
  1414. u4.Velocity = v16;
  1415. break;
  1416. end;
  1417. end;
  1418. if v119 ~= nil then
  1419.  
  1420. else
  1421. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1422. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1423. u4.Velocity = v16;
  1424. u34 = 8;
  1425. break;
  1426. end;
  1427. if v119.CanCollide == true then
  1428.  
  1429. else
  1430. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1431. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1432. u4.Velocity = v16;
  1433. u34 = 8;
  1434. break;
  1435. end;
  1436. if v119 ~= v115 then
  1437. v122, v123, v124 = RAY(u4.Position, (CFrame.new(u4.Position, u4.Position + p20) * CFrame.Angles(0, p21, 0) * CFrame.Angles(0, -p21 / 2.3, 0)).lookVector * 4);
  1438. if v122 ~= nil then
  1439.  
  1440. else
  1441. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1442. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1443. u4.Velocity = v16;
  1444. u34 = 8;
  1445. break;
  1446. end;
  1447. u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
  1448. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
  1449. towall = -v124;
  1450. l__lookVector__125 = (CFrame.new(v16, v124) * CFrame.Angles(0, p21, 0)).lookVector;
  1451. v115 = v119;
  1452. u32 = v119;
  1453. end;
  1454. u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1455. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
  1456. v126, v127, v128 = RAY(u4.Position, u4.CFrame.lookVector * 2);
  1457. if v126 ~= nil then
  1458. if v126.CanCollide == true then
  1459. u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
  1460. v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
  1461. u4.Velocity = v16;
  1462. u34 = 8;
  1463. break;
  1464. end;
  1465. end;
  1466. v106.Parent = u4;
  1467. v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
  1468. v107.cframe = v107.cframe * CFrame.Angles(v111 / 80, v111 / 80, 0);
  1469. u4.CFrame = u4.CFrame * CFrame.Angles(v111 / 80, v111 / 80, 0);
  1470. v129, v130 = GetWeld(u17);
  1471. v131, v132 = GetWeld(u18);
  1472. SetWeld(u17, 1, 1, v129, v130, v129, Vector3.new(-0.2 + v111 / 4, 0, 0));
  1473. SetWeld(u18, 1, 1, v131, v132, v131, Vector3.new(-0.2 + -v111 / 4, 0, 0));
  1474. if p21 == math.pi / 2 then
  1475. v133, v134 = GetWeld(u19);
  1476. SetWeld(u19, 1, 1, v133, v134, v133, Vector3.new(0, 0, 0.8 + v113 / 14));
  1477. else
  1478. v135, v136 = GetWeld(u20);
  1479. SetWeld(u20, 1, 1, v135, v136, v135, Vector3.new(0, 0, -0.8 - v113 / 14));
  1480. end;
  1481. wait(0.025);
  1482. if u25 < -100 then
  1483. v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
  1484. u4.CFrame = CFrame.new(Vector3.new(v107.cframe.p.x, math.abs(v107.cframe.p.y + v120.y - v107.cframe.p.y), v107.cframe.p.z), v120) * CFrame.Angles(0, -p21, 0);
  1485. break;
  1486. end;
  1487. end;
  1488. if u31 == "Jumping" then
  1489. u34 = 6;
  1490. u19.C1 = CFrame.new(0, 0.5, 0);
  1491. u20.C1 = CFrame.new(0, 0.5, 0);
  1492. if p21 == -math.pi / 2 then
  1493. u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 3);
  1494. else
  1495. u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
  1496. end;
  1497. u17.C1 = CFrame.new(0, 1, 0);
  1498. if p21 == -math.pi / 2 then
  1499. u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, -math.pi / 4);
  1500. else
  1501. u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, math.pi / 4);
  1502. end;
  1503. u18.MaxVelocity = 10;
  1504. u18.DesiredAngle = 0;
  1505. u18.C1 = CFrame.new(0, 1, 0);
  1506. if p21 == -math.pi / 2 then
  1507. u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, math.pi / 4);
  1508. else
  1509. u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
  1510. end;
  1511. u21.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(0, p21 / 2.4, 0);
  1512. u21.C0 = CFrame.new(0, 1, 0);
  1513. v137, v138 = GetWeld(u19);
  1514. v139, v140 = GetWeld(u20);
  1515. v141, v142 = GetWeld(u17);
  1516. v143, v144 = GetWeld(u18);
  1517. v145, v146 = GetWeld(u21);
  1518. u25 = 26;
  1519. v147 = 0;
  1520. v148 = p21 / 2;
  1521. v149 = 1;
  1522. l__lookVector__150 = (CFrame.new(v16, p20) * CFrame.Angles(0, -p21 / 2.4, 0)).lookVector;
  1523. u35 = l__lookVector__150;
  1524. v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
  1525. while true do
  1526. if u31 == "Jumping" then
  1527.  
  1528. else
  1529. break;
  1530. end;
  1531. v151, v152 = RAY(u4.Position, Vector3.new(0, -4, 0));
  1532. v153, v154 = RAY(u4.Position, l__lookVector__150 * 1.4);
  1533. if v151 ~= nil then
  1534. if v151.CanCollide == true then
  1535. v155 = math.abs(v152.y - u4.CFrame.p.y);
  1536. u4.CFrame = CFrame.new(v152 + Vector3.new(0, 2.9, 0), v152 + Vector3.new(0, 2.9, 0) + l__lookVector__150);
  1537. u4.Velocity = v16;
  1538. break;
  1539. end;
  1540. end;
  1541. if v153 ~= nil then
  1542. if v153.CanCollide == true then
  1543. v147 = v147 + 1;
  1544. if v147 == 4 then
  1545. u4.CFrame = CFrame.new(u4.Position, u4.Position + l__lookVector__150) * CFrame.new(0, 0, 0.4);
  1546. u4.Velocity = Vector3.new(0, u4.Velocity.y, 0);
  1547. u34 = 5;
  1548. u36 = 5;
  1549. wait(0.02);
  1550. break;
  1551. end;
  1552. end;
  1553. end;
  1554. if 0 < p21 / 2 then
  1555. if 0.2 < v148 then
  1556. v148 = v148 - 0.055;
  1557. end;
  1558. elseif v148 < -0.2 then
  1559. v148 = v148 + 0.055;
  1560. end;
  1561. if v149 <= 5 then
  1562. if p21 == -math.pi / 2 then
  1563. SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 4));
  1564. SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 3));
  1565. SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1566. u17.C0 = u17.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
  1567. SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1568. u18.C0 = u18.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
  1569. else
  1570. SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 3));
  1571. SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 4));
  1572. SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1573. u17.C0 = u17.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
  1574. SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
  1575. u18.C0 = u18.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
  1576. end;
  1577. v149 = v149 + 1;
  1578. end;
  1579. v107.Parent = u4;
  1580. v107.cframe = CFrame.new(v16, p20) * CFrame.Angles(0, p21 / 15, -v148);
  1581. v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
  1582. if v147 ~= 0 then
  1583. v106.velocity = Vector3.new(0, v106.velocity.y, 0);
  1584. end;
  1585. if not (u25 < -120) then
  1586.  
  1587. else
  1588. break;
  1589. end;
  1590. wait(0.025);
  1591. end;
  1592. end;
  1593. u10.PlatformStand = false;
  1594. v106:remove();
  1595. u37 = false;
  1596. Stand();
  1597. u31 = false;
  1598. end;
  1599. end;
  1600. local u38 = false;
  1601. local u39 = nil;
  1602. local u40 = false;
  1603. local u41 = false;
  1604. function VWR(p22, p23, p24)
  1605. if p22.className == "Part" then
  1606. if p22.Shape ~= Enum.PartType.Block then
  1607. if p22.className ~= "Part" then
  1608. v24.Value = v24.Value + 9;
  1609. u16 = false;
  1610. u38 = true;
  1611. u23 = "VWallRunning";
  1612. u25 = 0;
  1613. local v156 = 1;
  1614. u39 = p22;
  1615. towall = -p24;
  1616. p24 = (CFrame.new(v16, -p24) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector;
  1617. local v157 = Instance.new("BodyVelocity", u4);
  1618. v157.Name = "StaminaBodyObject";
  1619. v157.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1620. v157.P = 9000;
  1621. v157.velocity = p24 * (u33 - 1) * v156;
  1622. local v158 = Instance.new("BodyGyro", u4);
  1623. v158.Name = "StaminaBodyObject";
  1624. v158.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1625. v158.D = 100;
  1626. local v159 = p23 + -towall * 1.8;
  1627. v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
  1628. u4.CFrame = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
  1629. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, math.pi / 8));
  1630. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, -math.pi / 8));
  1631. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
  1632. u17.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
  1633. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
  1634. u18.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
  1635. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(math.pi / 20, 0, 0));
  1636. local v160 = 0;
  1637. local v161 = true;
  1638. while true do
  1639. if u38 == true then
  1640.  
  1641. else
  1642. break;
  1643. end;
  1644. local v162, v163, v164 = RAY(u4.Position, towall * 2.1);
  1645. local v165, v166, v167 = RAY(u4.Position, (CFrame.new(v16, towall) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector * 2.4);
  1646. if math.pi < v160 then
  1647. v161 = false;
  1648. elseif v160 < -math.pi then
  1649. v161 = true;
  1650. end;
  1651. if v161 == true then
  1652. v160 = v160 + 1.3 * (v156 + 0.2);
  1653. elseif v161 == false then
  1654. v160 = v160 - 1.3 * (v156 + 0.2);
  1655. end;
  1656. v157.velocity = p24 * (u33 - 1) * v156;
  1657. if u40 == true then
  1658. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
  1659. end;
  1660. if u41 == true then
  1661. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
  1662. end;
  1663. v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0) * CFrame.Angles(0, v160 / 60, 0);
  1664. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, v160 / 52, math.pi / 8 + v160 / 30));
  1665. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, v160 / 52, -math.pi / 8 + -v160 / 30));
  1666. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.51, -0.75, -(v160 / 30)), Vector3.new(0, math.pi / 2, v160 / 8 - 0.3));
  1667. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.51, -0.75, v160 / 30), Vector3.new(0, math.pi / 2, -v160 / 8 - 0.3));
  1668. if v162 == nil then
  1669. local v168 = u4.Position + u4.CFrame.lookVector * 100;
  1670. u4.CFrame = CFrame.new(u4.Position, Vector3.new(v168.x, u4.Position.y, v168.z));
  1671. break;
  1672. end;
  1673. if v165 ~= nil then
  1674. u38 = "Falling";
  1675. u23 = "VWRFalling";
  1676. u25 = -7;
  1677. break;
  1678. end;
  1679. wait(0.02);
  1680. v156 = v156 - 0.028;
  1681. if v156 <= 0.15 then
  1682. u38 = "Falling";
  1683. u23 = "VWRFalling";
  1684. end;
  1685. end;
  1686. if u38 == "Falling" then
  1687. u25 = u25 - 1;
  1688. local v169 = -towall * 5 + Vector3.new(0, u25, 0);
  1689. v157.velocity = CFrame.new(v16, v169).lookVector * v169.magnitude;
  1690. local v170, v171 = GetWeld(u19);
  1691. local v172, v173 = GetWeld(u20);
  1692. local v174, v175 = GetWeld(u17);
  1693. local v176, v177 = GetWeld(u18);
  1694. local v178, v179 = GetWeld(u21);
  1695. while true do
  1696. if u38 == "Falling" then
  1697.  
  1698. else
  1699. break;
  1700. end;
  1701. local v180, v181 = RAY(u9.Position, Vector3.new(0, -2.6, 0));
  1702. local v182 = -towall * 5 + Vector3.new(0, u25, 0);
  1703. v157.velocity = CFrame.new(v16, v182).lookVector * v182.magnitude;
  1704. if u40 == true then
  1705. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  1706. end;
  1707. if u41 == true then
  1708. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  1709. end;
  1710. v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
  1711. if 0 <= 35 then
  1712. SetWeld(u19, 0, 35, v170, v171, Vector3.new(1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, math.pi / 9));
  1713. SetWeld(u20, 0, 35, v172, v173, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, -math.pi / 9));
  1714. SetWeld(u17, 0, 35, v174, v175, Vector3.new(0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
  1715. u17.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
  1716. SetWeld(u18, 0, 35, v176, v177, Vector3.new(-0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
  1717. u18.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
  1718. SetWeld(u21, 0, 35, v178, v179, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 6, 0, 0));
  1719. end;
  1720. if v180 ~= nil then
  1721. v157:remove();
  1722. u4.CFrame = CFrame.new(v181 + Vector3.new(0, 2, 0), v181 + Vector3.new(0, 2, 0) + (-towall * 25 + Vector3.new(0, u25, 0))) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
  1723. u4.Velocity = v16;
  1724. u4.RotVelocity = v16;
  1725. local v183 = Instance.new("BodyPosition", u4);
  1726. v183.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1727. v183.position = u4.CFrame.p;
  1728. game:service("Debris"):AddItem(v183, 0.16);
  1729. v24.Value = 0;
  1730. break;
  1731. end;
  1732. if -180 < u25 then
  1733. u25 = u25 - 1.9;
  1734. end;
  1735. if not (200 < 0) then
  1736.  
  1737. else
  1738. break;
  1739. end;
  1740. wait(0.02);
  1741. end;
  1742. local v184 = Instance.new("BodyPosition");
  1743. local v185 = 0;
  1744. local v186, v187 = GetWeld(u19);
  1745. local v188, v189 = GetWeld(u20);
  1746. local v190, v191 = GetWeld(u17);
  1747. local v192, v193 = GetWeld(u18);
  1748. local v194, v195 = GetWeld(u21);
  1749. local v196 = nil;
  1750. while true do
  1751. if u38 == "BackflipFromFall" then
  1752.  
  1753. else
  1754. break;
  1755. end;
  1756. local v197 = 0 + 1;
  1757. local v198, v199 = RAY(u9.Position + Vector3.new(0, 2, 0), Vector3.new(0, -4.8, 0));
  1758. if v197 - 0 < 13 then
  1759. v185 = v185 - math.pi * 1.1 / 13;
  1760. end;
  1761. if v197 - 0 <= 13 then
  1762. SetWeld(u19, v197 - 0, 13, v186, v187, Vector3.new(1.4, 0.5, 0.1), Vector3.new(math.pi / 2, 0.1, math.pi / 2));
  1763. SetWeld(u20, v197 - 0, 13, v188, v189, Vector3.new(-1.4, 0.5, 0.1), Vector3.new(math.pi / 2, -0.1, -math.pi / 2));
  1764. SetWeld(u17, v197 - 0, 13, v190, v191, Vector3.new(0.52, -0.3, -0.65), Vector3.new(0, math.pi / 2, 0));
  1765. SetWeld(u18, v197 - 0, 13, v192, v193, Vector3.new(-0.51, -0.9, -0.05), Vector3.new(0, math.pi / 2, 0));
  1766. SetWeld(u21, v197 - 0, 13, v194, v195, Vector3.new(0, 0.9, 0), Vector3.new(-math.pi / 7, 0, 0));
  1767. end;
  1768. local v200 = -towall * 5 + Vector3.new(0, u25, 0);
  1769. v157.velocity = CFrame.new(v16, v200).lookVector * v200.magnitude;
  1770. if u40 == true then
  1771. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  1772. end;
  1773. if u41 == true then
  1774. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  1775. end;
  1776. v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.4 + v185, math.pi, 0);
  1777. if v198 ~= nil then
  1778. v157:remove();
  1779. v196 = v199 - towall * 1.3;
  1780. if 8 < 0 - 0 then
  1781. v184 = Instance.new("BodyPosition", u4);
  1782. v184.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1783. v184.position = v199 + Vector3.new(0, 2.4, 0) + -towall * 1;
  1784. u38 = "LandingFall";
  1785. else
  1786. u4.CFrame = v158.cframe + (v199 + Vector3.new(0, 2.3, 0));
  1787. u4.Velocity = v16;
  1788. u4.RotVelocity = v16;
  1789. local v201 = Instance.new("BodyPosition", u4);
  1790. v201.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1791. v201.position = u4.CFrame.p;
  1792. game:service("Debris"):AddItem(v201, 0.14);
  1793. v24.Value = 0;
  1794. end;
  1795. break;
  1796. end;
  1797. if -180 < u25 then
  1798. u25 = u25 - 1.9;
  1799. end;
  1800. if not (200 < 0) then
  1801.  
  1802. else
  1803. break;
  1804. end;
  1805. wait(0.02);
  1806. end;
  1807. if u38 == "LandingFall" then
  1808. u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  1809. u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  1810. local v202, v203 = GetWeld(u19);
  1811. local v204, v205 = GetWeld(u20);
  1812. local v206, v207 = GetWeld(u17);
  1813. local v208, v209 = GetWeld(u18);
  1814. local v210, v211 = GetWeld(u21);
  1815. local v212 = nil;
  1816. local v213 = nil;
  1817. if u25 < -70 then
  1818. v212 = v26:Clone();
  1819. v212.Parent = u4;
  1820. v212.Name = "AirLandingEffect";
  1821. v212.BrickColor = BrickColor.new("Medium stone grey");
  1822. v212.Transparency = 0.3;
  1823. v212.CFrame = CFrame.new(v196 + Vector3.new(0, 0.4, 0));
  1824. v213 = Instance.new("SpecialMesh", v212);
  1825. v213.MeshId = "http://www.roblox.com/asset/?id=20329976";
  1826. v213.Scale = Vector3.new(0, 0, 0);
  1827. end;
  1828. local v214 = CFrame.new(v16, Vector3.new(towall.x, 0, towall.z));
  1829. v158.cframe = v214 * CFrame.Angles(-math.pi / 7, 0, 0);
  1830. local v215 = math.pi / 7 / 2;
  1831. local v216 = 1 - 1;
  1832. while true do
  1833. u10.PlatformStand = true;
  1834. SetWeld(u19, v216, 6, v202, v203, Vector3.new(1.2, 0.5, 0.2), Vector3.new(math.pi / 2, 0.5, math.pi / 1.2));
  1835. SetWeld(u20, v216, 6, v204, v205, Vector3.new(-1.2, 0.5, 0.2), Vector3.new(math.pi / 2, -0.5, -math.pi / 1.2));
  1836. SetWeld(u17, v216, 6, v206, v207, Vector3.new(0.51, -0.3, -0.8), Vector3.new(0, math.pi / 2, -math.pi / 7));
  1837. SetWeld(u18, v216, 6, v208, v209, Vector3.new(-0.51, -0.8, -0.7), Vector3.new(0, math.pi / 2, -math.pi / 3));
  1838. SetWeld(u21, v216, 6, v210, v211, Vector3.new(0, 0.85, 0), Vector3.new(-math.pi / 8, 0, 0));
  1839. v184.position = v184.position + Vector3.new(0, -0.07, 0);
  1840. v158.cframe = v214 * CFrame.Angles(-v215 * 2 + v215 / 6 * v216, 0, 0);
  1841. u4.CFrame = v158.cframe + v184.position;
  1842. if v212 ~= nil then
  1843. v213.Scale = v213.Scale + Vector3.new(1.3, 0.35, 1.3);
  1844. v212.Transparency = 0.3 + 0.11666666666666665 * v216;
  1845. end;
  1846. wait(0.02);
  1847. if 0 <= 1 then
  1848. if v216 < 6 then
  1849.  
  1850. else
  1851. break;
  1852. end;
  1853. elseif 6 < v216 then
  1854.  
  1855. else
  1856. break;
  1857. end;
  1858. v216 = v216 + 1;
  1859. end;
  1860. if v212 ~= nil then
  1861. v212:remove();
  1862. end;
  1863. local v217, v218 = GetWeld(u19);
  1864. local v219, v220 = GetWeld(u20);
  1865. local v221, v222 = GetWeld(u17);
  1866. local v223, v224 = GetWeld(u18);
  1867. local v225, v226 = GetWeld(u21);
  1868. local v227 = 1 - 1;
  1869. while true do
  1870. u10.PlatformStand = true;
  1871. SetWeld(u19, v227, 6, v217, v218, Vector3.new(1.5, 0.5, 0), Vector3.new(0, 0, 0));
  1872. SetWeld(u20, v227, 6, v219, v220, Vector3.new(-1.5, 0.5, 0), Vector3.new(0, 0, 0));
  1873. SetWeld(u17, v227, 6, v221, v222, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  1874. SetWeld(u18, v227, 6, v223, v224, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  1875. SetWeld(u21, v227, 6, v225, v226, Vector3.new(0, 1, 0), Vector3.new(0, 0, 0));
  1876. v184.position = v184.position + Vector3.new(0, 0.1, 0);
  1877. v158.cframe = v214 * CFrame.Angles(-v215 + v215 / 6 * v227, 0, 0);
  1878. u4.CFrame = v158.cframe + v184.position;
  1879. wait(0.02);
  1880. if 0 <= 1 then
  1881. if v227 < 6 then
  1882.  
  1883. else
  1884. break;
  1885. end;
  1886. elseif 6 < v227 then
  1887.  
  1888. else
  1889. break;
  1890. end;
  1891. v227 = v227 + 1;
  1892. end;
  1893. v184:remove();
  1894. end;
  1895. end;
  1896. v157:remove();
  1897. v158:remove();
  1898. u38 = false;
  1899. Stand();
  1900. end;
  1901. else
  1902. v24.Value = v24.Value + 9;
  1903. u16 = false;
  1904. u38 = true;
  1905. u23 = "VWallRunning";
  1906. u25 = 0;
  1907. v156 = 1;
  1908. u39 = p22;
  1909. towall = -p24;
  1910. p24 = (CFrame.new(v16, -p24) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector;
  1911. v157 = Instance.new("BodyVelocity", u4);
  1912. v157.Name = "StaminaBodyObject";
  1913. v157.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1914. v157.P = 9000;
  1915. v157.velocity = p24 * (u33 - 1) * v156;
  1916. v158 = Instance.new("BodyGyro", u4);
  1917. v158.Name = "StaminaBodyObject";
  1918. v158.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  1919. v158.D = 100;
  1920. v159 = p23 + -towall * 1.8;
  1921. v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
  1922. u4.CFrame = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
  1923. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, math.pi / 8));
  1924. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, -math.pi / 8));
  1925. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
  1926. u17.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
  1927. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
  1928. u18.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
  1929. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(math.pi / 20, 0, 0));
  1930. v160 = 0;
  1931. v161 = true;
  1932. while true do
  1933. if u38 == true then
  1934.  
  1935. else
  1936. break;
  1937. end;
  1938. v162, v163, v164 = RAY(u4.Position, towall * 2.1);
  1939. v165, v166, v167 = RAY(u4.Position, (CFrame.new(v16, towall) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector * 2.4);
  1940. if math.pi < v160 then
  1941. v161 = false;
  1942. elseif v160 < -math.pi then
  1943. v161 = true;
  1944. end;
  1945. if v161 == true then
  1946. v160 = v160 + 1.3 * (v156 + 0.2);
  1947. elseif v161 == false then
  1948. v160 = v160 - 1.3 * (v156 + 0.2);
  1949. end;
  1950. v157.velocity = p24 * (u33 - 1) * v156;
  1951. if u40 == true then
  1952. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
  1953. end;
  1954. if u41 == true then
  1955. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
  1956. end;
  1957. v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0) * CFrame.Angles(0, v160 / 60, 0);
  1958. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, v160 / 52, math.pi / 8 + v160 / 30));
  1959. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, v160 / 52, -math.pi / 8 + -v160 / 30));
  1960. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.51, -0.75, -(v160 / 30)), Vector3.new(0, math.pi / 2, v160 / 8 - 0.3));
  1961. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.51, -0.75, v160 / 30), Vector3.new(0, math.pi / 2, -v160 / 8 - 0.3));
  1962. if v162 == nil then
  1963. v168 = u4.Position + u4.CFrame.lookVector * 100;
  1964. u4.CFrame = CFrame.new(u4.Position, Vector3.new(v168.x, u4.Position.y, v168.z));
  1965. break;
  1966. end;
  1967. if v165 ~= nil then
  1968. u38 = "Falling";
  1969. u23 = "VWRFalling";
  1970. u25 = -7;
  1971. break;
  1972. end;
  1973. wait(0.02);
  1974. v156 = v156 - 0.028;
  1975. if v156 <= 0.15 then
  1976. u38 = "Falling";
  1977. u23 = "VWRFalling";
  1978. end;
  1979. end;
  1980. if u38 == "Falling" then
  1981. u25 = u25 - 1;
  1982. v169 = -towall * 5 + Vector3.new(0, u25, 0);
  1983. v157.velocity = CFrame.new(v16, v169).lookVector * v169.magnitude;
  1984. v170, v171 = GetWeld(u19);
  1985. v172, v173 = GetWeld(u20);
  1986. v174, v175 = GetWeld(u17);
  1987. v176, v177 = GetWeld(u18);
  1988. v178, v179 = GetWeld(u21);
  1989. while true do
  1990. if u38 == "Falling" then
  1991.  
  1992. else
  1993. break;
  1994. end;
  1995. v180, v181 = RAY(u9.Position, Vector3.new(0, -2.6, 0));
  1996. v182 = -towall * 5 + Vector3.new(0, u25, 0);
  1997. v157.velocity = CFrame.new(v16, v182).lookVector * v182.magnitude;
  1998. if u40 == true then
  1999. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2000. end;
  2001. if u41 == true then
  2002. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2003. end;
  2004. v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
  2005. if 0 <= 35 then
  2006. SetWeld(u19, 0, 35, v170, v171, Vector3.new(1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, math.pi / 9));
  2007. SetWeld(u20, 0, 35, v172, v173, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, -math.pi / 9));
  2008. SetWeld(u17, 0, 35, v174, v175, Vector3.new(0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
  2009. u17.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
  2010. SetWeld(u18, 0, 35, v176, v177, Vector3.new(-0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
  2011. u18.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
  2012. SetWeld(u21, 0, 35, v178, v179, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 6, 0, 0));
  2013. end;
  2014. if v180 ~= nil then
  2015. v157:remove();
  2016. u4.CFrame = CFrame.new(v181 + Vector3.new(0, 2, 0), v181 + Vector3.new(0, 2, 0) + (-towall * 25 + Vector3.new(0, u25, 0))) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
  2017. u4.Velocity = v16;
  2018. u4.RotVelocity = v16;
  2019. v183 = Instance.new("BodyPosition", u4);
  2020. v183.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2021. v183.position = u4.CFrame.p;
  2022. game:service("Debris"):AddItem(v183, 0.16);
  2023. v24.Value = 0;
  2024. break;
  2025. end;
  2026. if -180 < u25 then
  2027. u25 = u25 - 1.9;
  2028. end;
  2029. if not (200 < 0) then
  2030.  
  2031. else
  2032. break;
  2033. end;
  2034. wait(0.02);
  2035. end;
  2036. v184 = Instance.new("BodyPosition");
  2037. v185 = 0;
  2038. v186, v187 = GetWeld(u19);
  2039. v188, v189 = GetWeld(u20);
  2040. v190, v191 = GetWeld(u17);
  2041. v192, v193 = GetWeld(u18);
  2042. v194, v195 = GetWeld(u21);
  2043. v196 = nil;
  2044. while true do
  2045. if u38 == "BackflipFromFall" then
  2046.  
  2047. else
  2048. break;
  2049. end;
  2050. v197 = 0 + 1;
  2051. v198, v199 = RAY(u9.Position + Vector3.new(0, 2, 0), Vector3.new(0, -4.8, 0));
  2052. if v197 - 0 < 13 then
  2053. v185 = v185 - math.pi * 1.1 / 13;
  2054. end;
  2055. if v197 - 0 <= 13 then
  2056. SetWeld(u19, v197 - 0, 13, v186, v187, Vector3.new(1.4, 0.5, 0.1), Vector3.new(math.pi / 2, 0.1, math.pi / 2));
  2057. SetWeld(u20, v197 - 0, 13, v188, v189, Vector3.new(-1.4, 0.5, 0.1), Vector3.new(math.pi / 2, -0.1, -math.pi / 2));
  2058. SetWeld(u17, v197 - 0, 13, v190, v191, Vector3.new(0.52, -0.3, -0.65), Vector3.new(0, math.pi / 2, 0));
  2059. SetWeld(u18, v197 - 0, 13, v192, v193, Vector3.new(-0.51, -0.9, -0.05), Vector3.new(0, math.pi / 2, 0));
  2060. SetWeld(u21, v197 - 0, 13, v194, v195, Vector3.new(0, 0.9, 0), Vector3.new(-math.pi / 7, 0, 0));
  2061. end;
  2062. v200 = -towall * 5 + Vector3.new(0, u25, 0);
  2063. v157.velocity = CFrame.new(v16, v200).lookVector * v200.magnitude;
  2064. if u40 == true then
  2065. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2066. end;
  2067. if u41 == true then
  2068. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2069. end;
  2070. v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.4 + v185, math.pi, 0);
  2071. if v198 ~= nil then
  2072. v157:remove();
  2073. v196 = v199 - towall * 1.3;
  2074. if 8 < 0 - 0 then
  2075. v184 = Instance.new("BodyPosition", u4);
  2076. v184.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2077. v184.position = v199 + Vector3.new(0, 2.4, 0) + -towall * 1;
  2078. u38 = "LandingFall";
  2079. else
  2080. u4.CFrame = v158.cframe + (v199 + Vector3.new(0, 2.3, 0));
  2081. u4.Velocity = v16;
  2082. u4.RotVelocity = v16;
  2083. v201 = Instance.new("BodyPosition", u4);
  2084. v201.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2085. v201.position = u4.CFrame.p;
  2086. game:service("Debris"):AddItem(v201, 0.14);
  2087. v24.Value = 0;
  2088. end;
  2089. break;
  2090. end;
  2091. if -180 < u25 then
  2092. u25 = u25 - 1.9;
  2093. end;
  2094. if not (200 < 0) then
  2095.  
  2096. else
  2097. break;
  2098. end;
  2099. wait(0.02);
  2100. end;
  2101. if u38 == "LandingFall" then
  2102. u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  2103. u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  2104. v202, v203 = GetWeld(u19);
  2105. v204, v205 = GetWeld(u20);
  2106. v206, v207 = GetWeld(u17);
  2107. v208, v209 = GetWeld(u18);
  2108. v210, v211 = GetWeld(u21);
  2109. v212 = nil;
  2110. v213 = nil;
  2111. if u25 < -70 then
  2112. v212 = v26:Clone();
  2113. v212.Parent = u4;
  2114. v212.Name = "AirLandingEffect";
  2115. v212.BrickColor = BrickColor.new("Medium stone grey");
  2116. v212.Transparency = 0.3;
  2117. v212.CFrame = CFrame.new(v196 + Vector3.new(0, 0.4, 0));
  2118. v213 = Instance.new("SpecialMesh", v212);
  2119. v213.MeshId = "http://www.roblox.com/asset/?id=20329976";
  2120. v213.Scale = Vector3.new(0, 0, 0);
  2121. end;
  2122. v214 = CFrame.new(v16, Vector3.new(towall.x, 0, towall.z));
  2123. v158.cframe = v214 * CFrame.Angles(-math.pi / 7, 0, 0);
  2124. v215 = math.pi / 7 / 2;
  2125. v216 = 1 - 1;
  2126. while true do
  2127. u10.PlatformStand = true;
  2128. SetWeld(u19, v216, 6, v202, v203, Vector3.new(1.2, 0.5, 0.2), Vector3.new(math.pi / 2, 0.5, math.pi / 1.2));
  2129. SetWeld(u20, v216, 6, v204, v205, Vector3.new(-1.2, 0.5, 0.2), Vector3.new(math.pi / 2, -0.5, -math.pi / 1.2));
  2130. SetWeld(u17, v216, 6, v206, v207, Vector3.new(0.51, -0.3, -0.8), Vector3.new(0, math.pi / 2, -math.pi / 7));
  2131. SetWeld(u18, v216, 6, v208, v209, Vector3.new(-0.51, -0.8, -0.7), Vector3.new(0, math.pi / 2, -math.pi / 3));
  2132. SetWeld(u21, v216, 6, v210, v211, Vector3.new(0, 0.85, 0), Vector3.new(-math.pi / 8, 0, 0));
  2133. v184.position = v184.position + Vector3.new(0, -0.07, 0);
  2134. v158.cframe = v214 * CFrame.Angles(-v215 * 2 + v215 / 6 * v216, 0, 0);
  2135. u4.CFrame = v158.cframe + v184.position;
  2136. if v212 ~= nil then
  2137. v213.Scale = v213.Scale + Vector3.new(1.3, 0.35, 1.3);
  2138. v212.Transparency = 0.3 + 0.11666666666666665 * v216;
  2139. end;
  2140. wait(0.02);
  2141. if 0 <= 1 then
  2142. if v216 < 6 then
  2143.  
  2144. else
  2145. break;
  2146. end;
  2147. elseif 6 < v216 then
  2148.  
  2149. else
  2150. break;
  2151. end;
  2152. v216 = v216 + 1;
  2153. end;
  2154. if v212 ~= nil then
  2155. v212:remove();
  2156. end;
  2157. v217, v218 = GetWeld(u19);
  2158. v219, v220 = GetWeld(u20);
  2159. v221, v222 = GetWeld(u17);
  2160. v223, v224 = GetWeld(u18);
  2161. v225, v226 = GetWeld(u21);
  2162. v227 = 1 - 1;
  2163. while true do
  2164. u10.PlatformStand = true;
  2165. SetWeld(u19, v227, 6, v217, v218, Vector3.new(1.5, 0.5, 0), Vector3.new(0, 0, 0));
  2166. SetWeld(u20, v227, 6, v219, v220, Vector3.new(-1.5, 0.5, 0), Vector3.new(0, 0, 0));
  2167. SetWeld(u17, v227, 6, v221, v222, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  2168. SetWeld(u18, v227, 6, v223, v224, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  2169. SetWeld(u21, v227, 6, v225, v226, Vector3.new(0, 1, 0), Vector3.new(0, 0, 0));
  2170. v184.position = v184.position + Vector3.new(0, 0.1, 0);
  2171. v158.cframe = v214 * CFrame.Angles(-v215 + v215 / 6 * v227, 0, 0);
  2172. u4.CFrame = v158.cframe + v184.position;
  2173. wait(0.02);
  2174. if 0 <= 1 then
  2175. if v227 < 6 then
  2176.  
  2177. else
  2178. break;
  2179. end;
  2180. elseif 6 < v227 then
  2181.  
  2182. else
  2183. break;
  2184. end;
  2185. v227 = v227 + 1;
  2186. end;
  2187. v184:remove();
  2188. end;
  2189. end;
  2190. v157:remove();
  2191. v158:remove();
  2192. u38 = false;
  2193. Stand();
  2194. end;
  2195. elseif p22.className ~= "Part" then
  2196. v24.Value = v24.Value + 9;
  2197. u16 = false;
  2198. u38 = true;
  2199. u23 = "VWallRunning";
  2200. u25 = 0;
  2201. v156 = 1;
  2202. u39 = p22;
  2203. towall = -p24;
  2204. p24 = (CFrame.new(v16, -p24) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector;
  2205. v157 = Instance.new("BodyVelocity", u4);
  2206. v157.Name = "StaminaBodyObject";
  2207. v157.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2208. v157.P = 9000;
  2209. v157.velocity = p24 * (u33 - 1) * v156;
  2210. v158 = Instance.new("BodyGyro", u4);
  2211. v158.Name = "StaminaBodyObject";
  2212. v158.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2213. v158.D = 100;
  2214. v159 = p23 + -towall * 1.8;
  2215. v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
  2216. u4.CFrame = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
  2217. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, math.pi / 8));
  2218. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, -math.pi / 8));
  2219. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
  2220. u17.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
  2221. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
  2222. u18.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
  2223. SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(math.pi / 20, 0, 0));
  2224. v160 = 0;
  2225. v161 = true;
  2226. while true do
  2227. if u38 == true then
  2228.  
  2229. else
  2230. break;
  2231. end;
  2232. v162, v163, v164 = RAY(u4.Position, towall * 2.1);
  2233. v165, v166, v167 = RAY(u4.Position, (CFrame.new(v16, towall) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector * 2.4);
  2234. if math.pi < v160 then
  2235. v161 = false;
  2236. elseif v160 < -math.pi then
  2237. v161 = true;
  2238. end;
  2239. if v161 == true then
  2240. v160 = v160 + 1.3 * (v156 + 0.2);
  2241. elseif v161 == false then
  2242. v160 = v160 - 1.3 * (v156 + 0.2);
  2243. end;
  2244. v157.velocity = p24 * (u33 - 1) * v156;
  2245. if u40 == true then
  2246. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
  2247. end;
  2248. if u41 == true then
  2249. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
  2250. end;
  2251. v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0) * CFrame.Angles(0, v160 / 60, 0);
  2252. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, v160 / 52, math.pi / 8 + v160 / 30));
  2253. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, v160 / 52, -math.pi / 8 + -v160 / 30));
  2254. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.51, -0.75, -(v160 / 30)), Vector3.new(0, math.pi / 2, v160 / 8 - 0.3));
  2255. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.51, -0.75, v160 / 30), Vector3.new(0, math.pi / 2, -v160 / 8 - 0.3));
  2256. if v162 == nil then
  2257. v168 = u4.Position + u4.CFrame.lookVector * 100;
  2258. u4.CFrame = CFrame.new(u4.Position, Vector3.new(v168.x, u4.Position.y, v168.z));
  2259. break;
  2260. end;
  2261. if v165 ~= nil then
  2262. u38 = "Falling";
  2263. u23 = "VWRFalling";
  2264. u25 = -7;
  2265. break;
  2266. end;
  2267. wait(0.02);
  2268. v156 = v156 - 0.028;
  2269. if v156 <= 0.15 then
  2270. u38 = "Falling";
  2271. u23 = "VWRFalling";
  2272. end;
  2273. end;
  2274. if u38 == "Falling" then
  2275. u25 = u25 - 1;
  2276. v169 = -towall * 5 + Vector3.new(0, u25, 0);
  2277. v157.velocity = CFrame.new(v16, v169).lookVector * v169.magnitude;
  2278. v170, v171 = GetWeld(u19);
  2279. v172, v173 = GetWeld(u20);
  2280. v174, v175 = GetWeld(u17);
  2281. v176, v177 = GetWeld(u18);
  2282. v178, v179 = GetWeld(u21);
  2283. while true do
  2284. if u38 == "Falling" then
  2285.  
  2286. else
  2287. break;
  2288. end;
  2289. v180, v181 = RAY(u9.Position, Vector3.new(0, -2.6, 0));
  2290. v182 = -towall * 5 + Vector3.new(0, u25, 0);
  2291. v157.velocity = CFrame.new(v16, v182).lookVector * v182.magnitude;
  2292. if u40 == true then
  2293. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2294. end;
  2295. if u41 == true then
  2296. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2297. end;
  2298. v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
  2299. if 0 <= 35 then
  2300. SetWeld(u19, 0, 35, v170, v171, Vector3.new(1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, math.pi / 9));
  2301. SetWeld(u20, 0, 35, v172, v173, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, -math.pi / 9));
  2302. SetWeld(u17, 0, 35, v174, v175, Vector3.new(0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
  2303. u17.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
  2304. SetWeld(u18, 0, 35, v176, v177, Vector3.new(-0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
  2305. u18.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
  2306. SetWeld(u21, 0, 35, v178, v179, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 6, 0, 0));
  2307. end;
  2308. if v180 ~= nil then
  2309. v157:remove();
  2310. u4.CFrame = CFrame.new(v181 + Vector3.new(0, 2, 0), v181 + Vector3.new(0, 2, 0) + (-towall * 25 + Vector3.new(0, u25, 0))) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
  2311. u4.Velocity = v16;
  2312. u4.RotVelocity = v16;
  2313. v183 = Instance.new("BodyPosition", u4);
  2314. v183.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2315. v183.position = u4.CFrame.p;
  2316. game:service("Debris"):AddItem(v183, 0.16);
  2317. v24.Value = 0;
  2318. break;
  2319. end;
  2320. if -180 < u25 then
  2321. u25 = u25 - 1.9;
  2322. end;
  2323. if not (200 < 0) then
  2324.  
  2325. else
  2326. break;
  2327. end;
  2328. wait(0.02);
  2329. end;
  2330. v184 = Instance.new("BodyPosition");
  2331. v185 = 0;
  2332. v186, v187 = GetWeld(u19);
  2333. v188, v189 = GetWeld(u20);
  2334. v190, v191 = GetWeld(u17);
  2335. v192, v193 = GetWeld(u18);
  2336. v194, v195 = GetWeld(u21);
  2337. v196 = nil;
  2338. while true do
  2339. if u38 == "BackflipFromFall" then
  2340.  
  2341. else
  2342. break;
  2343. end;
  2344. v197 = 0 + 1;
  2345. v198, v199 = RAY(u9.Position + Vector3.new(0, 2, 0), Vector3.new(0, -4.8, 0));
  2346. if v197 - 0 < 13 then
  2347. v185 = v185 - math.pi * 1.1 / 13;
  2348. end;
  2349. if v197 - 0 <= 13 then
  2350. SetWeld(u19, v197 - 0, 13, v186, v187, Vector3.new(1.4, 0.5, 0.1), Vector3.new(math.pi / 2, 0.1, math.pi / 2));
  2351. SetWeld(u20, v197 - 0, 13, v188, v189, Vector3.new(-1.4, 0.5, 0.1), Vector3.new(math.pi / 2, -0.1, -math.pi / 2));
  2352. SetWeld(u17, v197 - 0, 13, v190, v191, Vector3.new(0.52, -0.3, -0.65), Vector3.new(0, math.pi / 2, 0));
  2353. SetWeld(u18, v197 - 0, 13, v192, v193, Vector3.new(-0.51, -0.9, -0.05), Vector3.new(0, math.pi / 2, 0));
  2354. SetWeld(u21, v197 - 0, 13, v194, v195, Vector3.new(0, 0.9, 0), Vector3.new(-math.pi / 7, 0, 0));
  2355. end;
  2356. v200 = -towall * 5 + Vector3.new(0, u25, 0);
  2357. v157.velocity = CFrame.new(v16, v200).lookVector * v200.magnitude;
  2358. if u40 == true then
  2359. v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2360. end;
  2361. if u41 == true then
  2362. v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
  2363. end;
  2364. v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.4 + v185, math.pi, 0);
  2365. if v198 ~= nil then
  2366. v157:remove();
  2367. v196 = v199 - towall * 1.3;
  2368. if 8 < 0 - 0 then
  2369. v184 = Instance.new("BodyPosition", u4);
  2370. v184.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2371. v184.position = v199 + Vector3.new(0, 2.4, 0) + -towall * 1;
  2372. u38 = "LandingFall";
  2373. else
  2374. u4.CFrame = v158.cframe + (v199 + Vector3.new(0, 2.3, 0));
  2375. u4.Velocity = v16;
  2376. u4.RotVelocity = v16;
  2377. v201 = Instance.new("BodyPosition", u4);
  2378. v201.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2379. v201.position = u4.CFrame.p;
  2380. game:service("Debris"):AddItem(v201, 0.14);
  2381. v24.Value = 0;
  2382. end;
  2383. break;
  2384. end;
  2385. if -180 < u25 then
  2386. u25 = u25 - 1.9;
  2387. end;
  2388. if not (200 < 0) then
  2389.  
  2390. else
  2391. break;
  2392. end;
  2393. wait(0.02);
  2394. end;
  2395. if u38 == "LandingFall" then
  2396. u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  2397. u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  2398. v202, v203 = GetWeld(u19);
  2399. v204, v205 = GetWeld(u20);
  2400. v206, v207 = GetWeld(u17);
  2401. v208, v209 = GetWeld(u18);
  2402. v210, v211 = GetWeld(u21);
  2403. v212 = nil;
  2404. v213 = nil;
  2405. if u25 < -70 then
  2406. v212 = v26:Clone();
  2407. v212.Parent = u4;
  2408. v212.Name = "AirLandingEffect";
  2409. v212.BrickColor = BrickColor.new("Medium stone grey");
  2410. v212.Transparency = 0.3;
  2411. v212.CFrame = CFrame.new(v196 + Vector3.new(0, 0.4, 0));
  2412. v213 = Instance.new("SpecialMesh", v212);
  2413. v213.MeshId = "http://www.roblox.com/asset/?id=20329976";
  2414. v213.Scale = Vector3.new(0, 0, 0);
  2415. end;
  2416. v214 = CFrame.new(v16, Vector3.new(towall.x, 0, towall.z));
  2417. v158.cframe = v214 * CFrame.Angles(-math.pi / 7, 0, 0);
  2418. v215 = math.pi / 7 / 2;
  2419. v216 = 1 - 1;
  2420. while true do
  2421. u10.PlatformStand = true;
  2422. SetWeld(u19, v216, 6, v202, v203, Vector3.new(1.2, 0.5, 0.2), Vector3.new(math.pi / 2, 0.5, math.pi / 1.2));
  2423. SetWeld(u20, v216, 6, v204, v205, Vector3.new(-1.2, 0.5, 0.2), Vector3.new(math.pi / 2, -0.5, -math.pi / 1.2));
  2424. SetWeld(u17, v216, 6, v206, v207, Vector3.new(0.51, -0.3, -0.8), Vector3.new(0, math.pi / 2, -math.pi / 7));
  2425. SetWeld(u18, v216, 6, v208, v209, Vector3.new(-0.51, -0.8, -0.7), Vector3.new(0, math.pi / 2, -math.pi / 3));
  2426. SetWeld(u21, v216, 6, v210, v211, Vector3.new(0, 0.85, 0), Vector3.new(-math.pi / 8, 0, 0));
  2427. v184.position = v184.position + Vector3.new(0, -0.07, 0);
  2428. v158.cframe = v214 * CFrame.Angles(-v215 * 2 + v215 / 6 * v216, 0, 0);
  2429. u4.CFrame = v158.cframe + v184.position;
  2430. if v212 ~= nil then
  2431. v213.Scale = v213.Scale + Vector3.new(1.3, 0.35, 1.3);
  2432. v212.Transparency = 0.3 + 0.11666666666666665 * v216;
  2433. end;
  2434. wait(0.02);
  2435. if 0 <= 1 then
  2436. if v216 < 6 then
  2437.  
  2438. else
  2439. break;
  2440. end;
  2441. elseif 6 < v216 then
  2442.  
  2443. else
  2444. break;
  2445. end;
  2446. v216 = v216 + 1;
  2447. end;
  2448. if v212 ~= nil then
  2449. v212:remove();
  2450. end;
  2451. v217, v218 = GetWeld(u19);
  2452. v219, v220 = GetWeld(u20);
  2453. v221, v222 = GetWeld(u17);
  2454. v223, v224 = GetWeld(u18);
  2455. v225, v226 = GetWeld(u21);
  2456. v227 = 1 - 1;
  2457. while true do
  2458. u10.PlatformStand = true;
  2459. SetWeld(u19, v227, 6, v217, v218, Vector3.new(1.5, 0.5, 0), Vector3.new(0, 0, 0));
  2460. SetWeld(u20, v227, 6, v219, v220, Vector3.new(-1.5, 0.5, 0), Vector3.new(0, 0, 0));
  2461. SetWeld(u17, v227, 6, v221, v222, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  2462. SetWeld(u18, v227, 6, v223, v224, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  2463. SetWeld(u21, v227, 6, v225, v226, Vector3.new(0, 1, 0), Vector3.new(0, 0, 0));
  2464. v184.position = v184.position + Vector3.new(0, 0.1, 0);
  2465. v158.cframe = v214 * CFrame.Angles(-v215 + v215 / 6 * v227, 0, 0);
  2466. u4.CFrame = v158.cframe + v184.position;
  2467. wait(0.02);
  2468. if 0 <= 1 then
  2469. if v227 < 6 then
  2470.  
  2471. else
  2472. break;
  2473. end;
  2474. elseif 6 < v227 then
  2475.  
  2476. else
  2477. break;
  2478. end;
  2479. v227 = v227 + 1;
  2480. end;
  2481. v184:remove();
  2482. end;
  2483. end;
  2484. v157:remove();
  2485. v158:remove();
  2486. u38 = false;
  2487. Stand();
  2488. end;
  2489. end;
  2490. local u42 = false;
  2491. local u43 = 0;
  2492. function Slide(p25)
  2493. v24.Value = v24.Value + 6;
  2494. u23 = "Sliding";
  2495. u42 = true;
  2496. u25 = u4.Velocity.y;
  2497. local v228 = Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude + 10;
  2498. local l__unit__229 = Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).unit;
  2499. local v230 = Instance.new("BodyVelocity", u4);
  2500. v230.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2501. v230.velocity = l__unit__229 * v228;
  2502. local v231 = Instance.new("BodyGyro", u4);
  2503. v231.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
  2504. v231.cframe = CFrame.new(v16, l__unit__229) * CFrame.Angles(math.pi / 2.2, 0.24, 0);
  2505. local v232, v233 = GetWeld(u17);
  2506. local v234, v235 = GetWeld(u18);
  2507. SetWeld(u17, 1, 1, v16, v16, Vector3.new(v232.x, v232.y, v232.z), Vector3.new(v233.x, math.pi / 2, v233.z));
  2508. u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  2509. SetWeld(u18, 1, 1, v16, v16, Vector3.new(v234.x, v234.y, v234.z), Vector3.new(v235.x, math.pi / 2, v235.z));
  2510. u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
  2511. local v236, v237 = GetWeld(u17);
  2512. local v238, v239 = GetWeld(u18);
  2513. local v240, v241 = GetWeld(u19);
  2514. local v242, v243 = GetWeld(u20);
  2515. local v244, v245 = GetWeld(u21);
  2516. local v246 = 0;
  2517. while true do
  2518. if u42 == true then
  2519.  
  2520. else
  2521. break;
  2522. end;
  2523. local v247 = v246 + 1;
  2524. u10.PlatformStand = true;
  2525. local v248, v249 = RAY(u4.Position + Vector3.new(0, 0.03, 0), l__unit__229 * 2.5);
  2526. local v250, v251 = RAY(u4.Position - Vector3.new(0, 0.2, 0), l__unit__229 * 2.5);
  2527. local v252, v253 = RAY(u4.Position, Vector3.new(0, -2.6, 0));
  2528. v230.velocity = l__unit__229 * v228 + Vector3.new(0, u25, 0);
  2529. if v247 <= 5 then
  2530. SetWeld(u17, v247, 5, v236, v237, Vector3.new(0.5, -0.8, -0.15), Vector3.new(0, math.pi / 2 + 0.1, -0.4));
  2531. SetWeld(u18, v247, 5, v238, v239, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2 - 0.4, 0));
  2532. SetWeld(u19, v247, 5, v240, v241, Vector3.new(1.5, 0.5, 0), Vector3.new(-0.7, -0.24, math.pi / 5));
  2533. SetWeld(u20, v247, 5, v242, v243, Vector3.new(-1.5, 0.5, 0), Vector3.new(-0.1, 0, -math.pi / 1.5));
  2534. SetWeld(u21, v247, 5, v244, v245, Vector3.new(0, 1, 0), Vector3.new(-0.5, -0.2, 0));
  2535. end;
  2536. if v248 ~= nil then
  2537. if v248.CanCollide ~= true then
  2538. if v250 ~= nil then
  2539. if v250.CanCollide == true then
  2540. v230:remove();
  2541. v231:remove();
  2542. u42 = "HitObject";
  2543. end;
  2544. end;
  2545. else
  2546. v230:remove();
  2547. v231:remove();
  2548. u42 = "HitObject";
  2549. end;
  2550. elseif v250 ~= nil then
  2551. if v250.CanCollide == true then
  2552. v230:remove();
  2553. v231:remove();
  2554. u42 = "HitObject";
  2555. end;
  2556. end;
  2557. if v252 ~= nil then
  2558. u25 = 0;
  2559. u4.CFrame = CFrame.new(v253, v253 + l__unit__229) * CFrame.Angles(math.pi / 2.2, 0.24, 0) + Vector3.new(0, 0.7, 0);
  2560. local v254 = v228 - 0.95;
  2561. else
  2562. if -180 < u25 then
  2563. u25 = u25 - 5.6;
  2564. end;
  2565. v254 = v228 - 0.36;
  2566. end;
  2567. if v228 < 7 then
  2568. u42 = false;
  2569. end;
  2570. wait(0.02);
  2571. end;
  2572. if u42 == false then
  2573. local v255, v256 = GetWeld(u17);
  2574. local v257, v258 = GetWeld(u18);
  2575. local v259, v260 = GetWeld(u19);
  2576. local v261, v262 = GetWeld(u20);
  2577. local v263, v264 = GetWeld(u21);
  2578. local v265 = 1 - 1;
  2579. while true do
  2580. SetWeld(u17, v265, 4, v255, v256, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  2581. SetWeld(u18, v265, 4, v257, v258, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
  2582. SetWeld(u19, v265, 4, v259, v260, Vector3.new(1.5, 0.5, 0), v16);
  2583. SetWeld(u20, v265, 4, v261, v262, Vector3.new(-1.5, 0.5, 0), v16);
  2584. SetWeld(u21, v265, 4, v263, v264, Vector3.new(0, 1, 0), v16);
  2585. local v266, v267 = RAY(u4.Position, Vector3.new(0, -2.6, 0));
  2586. v231.cframe = CFrame.new(v16, l__unit__229) * CFrame.Angles(math.pi / 2.2 - math.pi / 2.2 / 4 * v265, 0.24 - 0.06 * v265, 0);
  2587. v230.velocity = l__unit__229 * v228 + Vector3.new(0, u25, 0);
  2588. if v266 ~= nil then
  2589. u25 = 0;
  2590. u4.CFrame = CFrame.new(v267, v267 + l__unit__229) * CFrame.Angles(math.pi / 2.2 - math.pi / 2.2 / 4 * v265, 0.24 - 0.06 * v265, 0) + Vector3.new(0, 0.7 + 0.45 * v265, 0);
  2591. local v268 = v228 - 0.95;
  2592. else
  2593. if -180 < u25 then
  2594. u25 = u25 - 5.6;
  2595. end;
  2596. v268 = v228 - 0.36;
  2597. end;
  2598. wait(0.02);
  2599. if 0 <= 1 then
  2600. if v265 < 4 then
  2601.  
  2602. else
  2603. break;
  2604. end;
  2605. elseif 4 < v265 then
  2606.  
  2607. else
  2608. break;
  2609. end;
  2610. v265 = v265 + 1;
  2611. end;
  2612. local v269, v270 = RAY(u4.Position, Vector3.new(0, -2.6, 0));
  2613. u4.CFrame = CFrame.new(v270, v270 + l__unit__229) + Vector3.new(0, 3, 0);
  2614. end;
  2615. v230:remove();
  2616. v231:remove();
  2617. u43 = 10;
  2618. Stand();
  2619. end;
  2620. local u44 = false;
  2621. local u45 = false;
  2622. function KD(p26)
  2623. if v23.Value == false then
  2624. if p26 == string.char(32) then
  2625. u44 = true;
  2626. local v271, v272 = RAY(u4.Position, Vector3.new(0, -3.7, 0));
  2627. local v273, v274, v275 = RAY(u4.Position + Vector3.new(0, 1.1, 0), u4.CFrame.lookVector * 2.3);
  2628. local v276 = nil;
  2629. local v277 = nil;
  2630. local v278 = nil;
  2631. local v279 = nil;
  2632. local v280 = nil;
  2633. local v281 = nil;
  2634. if u31 == false then
  2635. local v282, v283, v284 = RAY(u4.Position, ((u4.CFrame * CFrame.new(1.5, 0, -0.2)).p - u4.CFrame.p).unit * 3.9);
  2636. v276 = v282;
  2637. v277 = v283;
  2638. v278 = v284;
  2639. local v285, v286, v287 = RAY(u4.Position, ((u4.CFrame * CFrame.new(-1.5, 0, -0.2)).p - u4.CFrame.p).unit * 3.9);
  2640. v279 = v285;
  2641. v280 = v286;
  2642. v281 = v287;
  2643. elseif u31 == "Jumping" then
  2644. local v288, v289, v290 = RAY(u4.Position, ((CFrame.new(u4.Position, u4.Position + u35) * CFrame.new(1.5, 0, -0.2)).p - u4.Position).unit * 3.9);
  2645. v276 = v288;
  2646. v277 = v289;
  2647. v278 = v290;
  2648. local v291, v292, v293 = RAY(u4.Position, ((CFrame.new(u4.Position, u4.Position + u35) * CFrame.new(-1.5, 0, -0.2)).p - u4.Position).unit * 3.9);
  2649. v279 = v291;
  2650. v280 = v292;
  2651. v281 = v293;
  2652. end;
  2653. if u23 == "Standing" then
  2654. if u45 == true then
  2655. if v273 ~= nil then
  2656. if v273.CanCollide == false then
  2657. if v276 ~= nil then
  2658. if v276.CanCollide == false then
  2659. if v279 ~= nil then
  2660. if v279.CanCollide == false then
  2661. if v271 ~= nil then
  2662. if v271.CanCollide == false then
  2663. if 6 < u4.Velocity.y then
  2664. if u4.Velocity.y < 50 then
  2665. if u30 <= 0 then
  2666. if 10 <= u2 then
  2667. Dive();
  2668. end;
  2669. end;
  2670. end;
  2671. end;
  2672. end;
  2673. elseif 6 < u4.Velocity.y then
  2674. if u4.Velocity.y < 50 then
  2675. if u30 <= 0 then
  2676. if 10 <= u2 then
  2677. Dive();
  2678. end;
  2679. end;
  2680. end;
  2681. end;
  2682. end;
  2683. elseif v271 ~= nil then
  2684. if v271.CanCollide == false then
  2685. if 6 < u4.Velocity.y then
  2686. if u4.Velocity.y < 50 then
  2687. if u30 <= 0 then
  2688. if 10 <= u2 then
  2689. Dive();
  2690. end;
  2691. end;
  2692. end;
  2693. end;
  2694. end;
  2695. elseif 6 < u4.Velocity.y then
  2696. if u4.Velocity.y < 50 then
  2697. if u30 <= 0 then
  2698. if 10 <= u2 then
  2699. Dive();
  2700. end;
  2701. end;
  2702. end;
  2703. end;
  2704. end;
  2705. elseif v279 ~= nil then
  2706. if v279.CanCollide == false then
  2707. if v271 ~= nil then
  2708. if v271.CanCollide == false then
  2709. if 6 < u4.Velocity.y then
  2710. if u4.Velocity.y < 50 then
  2711. if u30 <= 0 then
  2712. if 10 <= u2 then
  2713. Dive();
  2714. end;
  2715. end;
  2716. end;
  2717. end;
  2718. end;
  2719. elseif 6 < u4.Velocity.y then
  2720. if u4.Velocity.y < 50 then
  2721. if u30 <= 0 then
  2722. if 10 <= u2 then
  2723. Dive();
  2724. end;
  2725. end;
  2726. end;
  2727. end;
  2728. end;
  2729. elseif v271 ~= nil then
  2730. if v271.CanCollide == false then
  2731. if 6 < u4.Velocity.y then
  2732. if u4.Velocity.y < 50 then
  2733. if u30 <= 0 then
  2734. if 10 <= u2 then
  2735. Dive();
  2736. end;
  2737. end;
  2738. end;
  2739. end;
  2740. end;
  2741. elseif 6 < u4.Velocity.y then
  2742. if u4.Velocity.y < 50 then
  2743. if u30 <= 0 then
  2744. if 10 <= u2 then
  2745. Dive();
  2746. end;
  2747. end;
  2748. end;
  2749. end;
  2750. end;
  2751. elseif v276 ~= nil then
  2752. if v276.CanCollide == false then
  2753. if v279 ~= nil then
  2754. if v279.CanCollide == false then
  2755. if v271 ~= nil then
  2756. if v271.CanCollide == false then
  2757. if 6 < u4.Velocity.y then
  2758. if u4.Velocity.y < 50 then
  2759. if u30 <= 0 then
  2760. if 10 <= u2 then
  2761. Dive();
  2762. end;
  2763. end;
  2764. end;
  2765. end;
  2766. end;
  2767. elseif 6 < u4.Velocity.y then
  2768. if u4.Velocity.y < 50 then
  2769. if u30 <= 0 then
  2770. if 10 <= u2 then
  2771. Dive();
  2772. end;
  2773. end;
  2774. end;
  2775. end;
  2776. end;
  2777. elseif v271 ~= nil then
  2778. if v271.CanCollide == false then
  2779. if 6 < u4.Velocity.y then
  2780. if u4.Velocity.y < 50 then
  2781. if u30 <= 0 then
  2782. if 10 <= u2 then
  2783. Dive();
  2784. end;
  2785. end;
  2786. end;
  2787. end;
  2788. end;
  2789. elseif 6 < u4.Velocity.y then
  2790. if u4.Velocity.y < 50 then
  2791. if u30 <= 0 then
  2792. if 10 <= u2 then
  2793. Dive();
  2794. end;
  2795. end;
  2796. end;
  2797. end;
  2798. end;
  2799. elseif v279 ~= nil then
  2800. if v279.CanCollide == false then
  2801. if v271 ~= nil then
  2802. if v271.CanCollide == false then
  2803. if 6 < u4.Velocity.y then
  2804. if u4.Velocity.y < 50 then
  2805. if u30 <= 0 then
  2806. if 10 <= u2 then
  2807. Dive();
  2808. end;
  2809. end;
  2810. end;
  2811. end;
  2812. end;
  2813. elseif 6 < u4.Velocity.y then
  2814. if u4.Velocity.y < 50 then
  2815. if u30 <= 0 then
  2816. if 10 <= u2 then
  2817. Dive();
  2818. end;
  2819. end;
  2820. end;
  2821. end;
  2822. end;
  2823. elseif v271 ~= nil then
  2824. if v271.CanCollide == false then
  2825. if 6 < u4.Velocity.y then
  2826. if u4.Velocity.y < 50 then
  2827. if u30 <= 0 then
  2828. if 10 <= u2 then
  2829. Dive();
  2830. end;
  2831. end;
  2832. end;
  2833. end;
  2834. end;
  2835. elseif 6 < u4.Velocity.y then
  2836. if u4.Velocity.y < 50 then
  2837. if u30 <= 0 then
  2838. if 10 <= u2 then
  2839. Dive();
  2840. end;
  2841. end;
  2842. end;
  2843. end;
  2844. end;
  2845. end;
  2846. if v273 == nil then
  2847. if u38 == "Falling" then
  2848. u38 = "BackflipFromFall";
  2849. end;
  2850. end;
  2851. if u45 == true then
  2852. if -50 < u4.Velocity.y then
  2853. if u24 == false then
  2854. if u30 <= 0 then
  2855. local v294, v295 = RAY(u4.Position, Vector3.new(0, -3.5, 0));
  2856. if v273 ~= nil then
  2857. if u23 == "Standing" then
  2858. if u36 == 0 then
  2859. if v294 ~= nil then
  2860. if v294.CanCollide == false then
  2861. VWR(v273, v274, v275);
  2862. end;
  2863. else
  2864. VWR(v273, v274, v275);
  2865. end;
  2866. end;
  2867. end;
  2868. end;
  2869. if u31 ~= false then
  2870. if u31 == "Jumping" then
  2871. if u32 == v276 then
  2872. if u32 ~= v279 then
  2873. if u34 == 0 then
  2874. if u38 == false then
  2875. if v273 ~= nil then
  2876. if u31 == "Jumping" then
  2877. if v276 ~= nil then
  2878. if v276.Parent:findFirstChild("Humanoid") == nil then
  2879. if v276.Parent.className == "Hat" then
  2880. if v279 ~= nil then
  2881. if v279.Parent:findFirstChild("Humanoid") == nil then
  2882. if v279.Parent.className ~= "Hat" then
  2883. if v294 ~= nil then
  2884. if v294.CanCollide == false then
  2885. local l__magnitude__296 = (v277 - u4.Position).magnitude;
  2886. local l__magnitude__297 = (v280 - u4.Position).magnitude;
  2887. if l__magnitude__296 < l__magnitude__297 then
  2888. if u31 == "Jumping" then
  2889. if u32 ~= v276 then
  2890. u31 = false;
  2891. while true do
  2892. if u16 == false then
  2893.  
  2894. else
  2895. break;
  2896. end;
  2897. wait(0.01);
  2898. end;
  2899. HWallRun(v276, v277, v278, -math.pi / 2);
  2900. elseif v273 == nil then
  2901. HWallRun(v276, v277, v278, -math.pi / 2);
  2902. end;
  2903. elseif v273 == nil then
  2904. HWallRun(v276, v277, v278, -math.pi / 2);
  2905. end;
  2906. elseif l__magnitude__297 < l__magnitude__296 then
  2907. if u31 == "Jumping" then
  2908. if u32 ~= v279 then
  2909. u31 = false;
  2910. while true do
  2911. if u16 == false then
  2912.  
  2913. else
  2914. break;
  2915. end;
  2916. wait(0.01);
  2917. end;
  2918. HWallRun(v279, v280, v281, math.pi / 2);
  2919. elseif v273 == nil then
  2920. HWallRun(v279, v280, v281, math.pi / 2);
  2921. end;
  2922. elseif v273 == nil then
  2923. HWallRun(v279, v280, v281, math.pi / 2);
  2924. end;
  2925. end;
  2926. end;
  2927. else
  2928. l__magnitude__296 = (v277 - u4.Position).magnitude;
  2929. l__magnitude__297 = (v280 - u4.Position).magnitude;
  2930. if l__magnitude__296 < l__magnitude__297 then
  2931. if u31 == "Jumping" then
  2932. if u32 ~= v276 then
  2933. u31 = false;
  2934. while true do
  2935. if u16 == false then
  2936.  
  2937. else
  2938. break;
  2939. end;
  2940. wait(0.01);
  2941. end;
  2942. HWallRun(v276, v277, v278, -math.pi / 2);
  2943. elseif v273 == nil then
  2944. HWallRun(v276, v277, v278, -math.pi / 2);
  2945. end;
  2946. elseif v273 == nil then
  2947. HWallRun(v276, v277, v278, -math.pi / 2);
  2948. end;
  2949. elseif l__magnitude__297 < l__magnitude__296 then
  2950. if u31 == "Jumping" then
  2951. if u32 ~= v279 then
  2952. u31 = false;
  2953. while true do
  2954. if u16 == false then
  2955.  
  2956. else
  2957. break;
  2958. end;
  2959. wait(0.01);
  2960. end;
  2961. HWallRun(v279, v280, v281, math.pi / 2);
  2962. elseif v273 == nil then
  2963. HWallRun(v279, v280, v281, math.pi / 2);
  2964. end;
  2965. elseif v273 == nil then
  2966. HWallRun(v279, v280, v281, math.pi / 2);
  2967. end;
  2968. end;
  2969. end;
  2970. end;
  2971. end;
  2972. end;
  2973. elseif v294 ~= nil then
  2974. if v294.CanCollide == false then
  2975. l__magnitude__296 = (v277 - u4.Position).magnitude;
  2976. l__magnitude__297 = (v280 - u4.Position).magnitude;
  2977. if l__magnitude__296 < l__magnitude__297 then
  2978. if u31 == "Jumping" then
  2979. if u32 ~= v276 then
  2980. u31 = false;
  2981. while true do
  2982. if u16 == false then
  2983.  
  2984. else
  2985. break;
  2986. end;
  2987. wait(0.01);
  2988. end;
  2989. HWallRun(v276, v277, v278, -math.pi / 2);
  2990. elseif v273 == nil then
  2991. HWallRun(v276, v277, v278, -math.pi / 2);
  2992. end;
  2993. elseif v273 == nil then
  2994. HWallRun(v276, v277, v278, -math.pi / 2);
  2995. end;
  2996. elseif l__magnitude__297 < l__magnitude__296 then
  2997. if u31 == "Jumping" then
  2998. if u32 ~= v279 then
  2999. u31 = false;
  3000. while true do
  3001. if u16 == false then
  3002.  
  3003. else
  3004. break;
  3005. end;
  3006. wait(0.01);
  3007. end;
  3008. HWallRun(v279, v280, v281, math.pi / 2);
  3009. elseif v273 == nil then
  3010. HWallRun(v279, v280, v281, math.pi / 2);
  3011. end;
  3012. elseif v273 == nil then
  3013. HWallRun(v279, v280, v281, math.pi / 2);
  3014. end;
  3015. end;
  3016. end;
  3017. else
  3018. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3019. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3020. if l__magnitude__296 < l__magnitude__297 then
  3021. if u31 == "Jumping" then
  3022. if u32 ~= v276 then
  3023. u31 = false;
  3024. while true do
  3025. if u16 == false then
  3026.  
  3027. else
  3028. break;
  3029. end;
  3030. wait(0.01);
  3031. end;
  3032. HWallRun(v276, v277, v278, -math.pi / 2);
  3033. elseif v273 == nil then
  3034. HWallRun(v276, v277, v278, -math.pi / 2);
  3035. end;
  3036. elseif v273 == nil then
  3037. HWallRun(v276, v277, v278, -math.pi / 2);
  3038. end;
  3039. elseif l__magnitude__297 < l__magnitude__296 then
  3040. if u31 == "Jumping" then
  3041. if u32 ~= v279 then
  3042. u31 = false;
  3043. while true do
  3044. if u16 == false then
  3045.  
  3046. else
  3047. break;
  3048. end;
  3049. wait(0.01);
  3050. end;
  3051. HWallRun(v279, v280, v281, math.pi / 2);
  3052. elseif v273 == nil then
  3053. HWallRun(v279, v280, v281, math.pi / 2);
  3054. end;
  3055. elseif v273 == nil then
  3056. HWallRun(v279, v280, v281, math.pi / 2);
  3057. end;
  3058. end;
  3059. end;
  3060. elseif v279 ~= nil then
  3061. if v279.Parent:findFirstChild("Humanoid") == nil then
  3062. if v279.Parent.className ~= "Hat" then
  3063. if v294 ~= nil then
  3064. if v294.CanCollide == false then
  3065. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3066. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3067. if l__magnitude__296 < l__magnitude__297 then
  3068. if u31 == "Jumping" then
  3069. if u32 ~= v276 then
  3070. u31 = false;
  3071. while true do
  3072. if u16 == false then
  3073.  
  3074. else
  3075. break;
  3076. end;
  3077. wait(0.01);
  3078. end;
  3079. HWallRun(v276, v277, v278, -math.pi / 2);
  3080. elseif v273 == nil then
  3081. HWallRun(v276, v277, v278, -math.pi / 2);
  3082. end;
  3083. elseif v273 == nil then
  3084. HWallRun(v276, v277, v278, -math.pi / 2);
  3085. end;
  3086. elseif l__magnitude__297 < l__magnitude__296 then
  3087. if u31 == "Jumping" then
  3088. if u32 ~= v279 then
  3089. u31 = false;
  3090. while true do
  3091. if u16 == false then
  3092.  
  3093. else
  3094. break;
  3095. end;
  3096. wait(0.01);
  3097. end;
  3098. HWallRun(v279, v280, v281, math.pi / 2);
  3099. elseif v273 == nil then
  3100. HWallRun(v279, v280, v281, math.pi / 2);
  3101. end;
  3102. elseif v273 == nil then
  3103. HWallRun(v279, v280, v281, math.pi / 2);
  3104. end;
  3105. end;
  3106. end;
  3107. else
  3108. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3109. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3110. if l__magnitude__296 < l__magnitude__297 then
  3111. if u31 == "Jumping" then
  3112. if u32 ~= v276 then
  3113. u31 = false;
  3114. while true do
  3115. if u16 == false then
  3116.  
  3117. else
  3118. break;
  3119. end;
  3120. wait(0.01);
  3121. end;
  3122. HWallRun(v276, v277, v278, -math.pi / 2);
  3123. elseif v273 == nil then
  3124. HWallRun(v276, v277, v278, -math.pi / 2);
  3125. end;
  3126. elseif v273 == nil then
  3127. HWallRun(v276, v277, v278, -math.pi / 2);
  3128. end;
  3129. elseif l__magnitude__297 < l__magnitude__296 then
  3130. if u31 == "Jumping" then
  3131. if u32 ~= v279 then
  3132. u31 = false;
  3133. while true do
  3134. if u16 == false then
  3135.  
  3136. else
  3137. break;
  3138. end;
  3139. wait(0.01);
  3140. end;
  3141. HWallRun(v279, v280, v281, math.pi / 2);
  3142. elseif v273 == nil then
  3143. HWallRun(v279, v280, v281, math.pi / 2);
  3144. end;
  3145. elseif v273 == nil then
  3146. HWallRun(v279, v280, v281, math.pi / 2);
  3147. end;
  3148. end;
  3149. end;
  3150. end;
  3151. end;
  3152. end;
  3153. elseif v279 ~= nil then
  3154. if v279.Parent:findFirstChild("Humanoid") == nil then
  3155. if v279.Parent.className ~= "Hat" then
  3156. if v294 ~= nil then
  3157. if v294.CanCollide == false then
  3158. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3159. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3160. if l__magnitude__296 < l__magnitude__297 then
  3161. if u31 == "Jumping" then
  3162. if u32 ~= v276 then
  3163. u31 = false;
  3164. while true do
  3165. if u16 == false then
  3166.  
  3167. else
  3168. break;
  3169. end;
  3170. wait(0.01);
  3171. end;
  3172. HWallRun(v276, v277, v278, -math.pi / 2);
  3173. elseif v273 == nil then
  3174. HWallRun(v276, v277, v278, -math.pi / 2);
  3175. end;
  3176. elseif v273 == nil then
  3177. HWallRun(v276, v277, v278, -math.pi / 2);
  3178. end;
  3179. elseif l__magnitude__297 < l__magnitude__296 then
  3180. if u31 == "Jumping" then
  3181. if u32 ~= v279 then
  3182. u31 = false;
  3183. while true do
  3184. if u16 == false then
  3185.  
  3186. else
  3187. break;
  3188. end;
  3189. wait(0.01);
  3190. end;
  3191. HWallRun(v279, v280, v281, math.pi / 2);
  3192. elseif v273 == nil then
  3193. HWallRun(v279, v280, v281, math.pi / 2);
  3194. end;
  3195. elseif v273 == nil then
  3196. HWallRun(v279, v280, v281, math.pi / 2);
  3197. end;
  3198. end;
  3199. end;
  3200. else
  3201. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3202. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3203. if l__magnitude__296 < l__magnitude__297 then
  3204. if u31 == "Jumping" then
  3205. if u32 ~= v276 then
  3206. u31 = false;
  3207. while true do
  3208. if u16 == false then
  3209.  
  3210. else
  3211. break;
  3212. end;
  3213. wait(0.01);
  3214. end;
  3215. HWallRun(v276, v277, v278, -math.pi / 2);
  3216. elseif v273 == nil then
  3217. HWallRun(v276, v277, v278, -math.pi / 2);
  3218. end;
  3219. elseif v273 == nil then
  3220. HWallRun(v276, v277, v278, -math.pi / 2);
  3221. end;
  3222. elseif l__magnitude__297 < l__magnitude__296 then
  3223. if u31 == "Jumping" then
  3224. if u32 ~= v279 then
  3225. u31 = false;
  3226. while true do
  3227. if u16 == false then
  3228.  
  3229. else
  3230. break;
  3231. end;
  3232. wait(0.01);
  3233. end;
  3234. HWallRun(v279, v280, v281, math.pi / 2);
  3235. elseif v273 == nil then
  3236. HWallRun(v279, v280, v281, math.pi / 2);
  3237. end;
  3238. elseif v273 == nil then
  3239. HWallRun(v279, v280, v281, math.pi / 2);
  3240. end;
  3241. end;
  3242. end;
  3243. end;
  3244. end;
  3245. end;
  3246. end;
  3247. elseif v276 ~= nil then
  3248. if v276.Parent:findFirstChild("Humanoid") == nil then
  3249. if v276.Parent.className == "Hat" then
  3250. if v279 ~= nil then
  3251. if v279.Parent:findFirstChild("Humanoid") == nil then
  3252. if v279.Parent.className ~= "Hat" then
  3253. if v294 ~= nil then
  3254. if v294.CanCollide == false then
  3255. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3256. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3257. if l__magnitude__296 < l__magnitude__297 then
  3258. if u31 == "Jumping" then
  3259. if u32 ~= v276 then
  3260. u31 = false;
  3261. while true do
  3262. if u16 == false then
  3263.  
  3264. else
  3265. break;
  3266. end;
  3267. wait(0.01);
  3268. end;
  3269. HWallRun(v276, v277, v278, -math.pi / 2);
  3270. elseif v273 == nil then
  3271. HWallRun(v276, v277, v278, -math.pi / 2);
  3272. end;
  3273. elseif v273 == nil then
  3274. HWallRun(v276, v277, v278, -math.pi / 2);
  3275. end;
  3276. elseif l__magnitude__297 < l__magnitude__296 then
  3277. if u31 == "Jumping" then
  3278. if u32 ~= v279 then
  3279. u31 = false;
  3280. while true do
  3281. if u16 == false then
  3282.  
  3283. else
  3284. break;
  3285. end;
  3286. wait(0.01);
  3287. end;
  3288. HWallRun(v279, v280, v281, math.pi / 2);
  3289. elseif v273 == nil then
  3290. HWallRun(v279, v280, v281, math.pi / 2);
  3291. end;
  3292. elseif v273 == nil then
  3293. HWallRun(v279, v280, v281, math.pi / 2);
  3294. end;
  3295. end;
  3296. end;
  3297. else
  3298. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3299. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3300. if l__magnitude__296 < l__magnitude__297 then
  3301. if u31 == "Jumping" then
  3302. if u32 ~= v276 then
  3303. u31 = false;
  3304. while true do
  3305. if u16 == false then
  3306.  
  3307. else
  3308. break;
  3309. end;
  3310. wait(0.01);
  3311. end;
  3312. HWallRun(v276, v277, v278, -math.pi / 2);
  3313. elseif v273 == nil then
  3314. HWallRun(v276, v277, v278, -math.pi / 2);
  3315. end;
  3316. elseif v273 == nil then
  3317. HWallRun(v276, v277, v278, -math.pi / 2);
  3318. end;
  3319. elseif l__magnitude__297 < l__magnitude__296 then
  3320. if u31 == "Jumping" then
  3321. if u32 ~= v279 then
  3322. u31 = false;
  3323. while true do
  3324. if u16 == false then
  3325.  
  3326. else
  3327. break;
  3328. end;
  3329. wait(0.01);
  3330. end;
  3331. HWallRun(v279, v280, v281, math.pi / 2);
  3332. elseif v273 == nil then
  3333. HWallRun(v279, v280, v281, math.pi / 2);
  3334. end;
  3335. elseif v273 == nil then
  3336. HWallRun(v279, v280, v281, math.pi / 2);
  3337. end;
  3338. end;
  3339. end;
  3340. end;
  3341. end;
  3342. end;
  3343. elseif v294 ~= nil then
  3344. if v294.CanCollide == false then
  3345. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3346. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3347. if l__magnitude__296 < l__magnitude__297 then
  3348. if u31 == "Jumping" then
  3349. if u32 ~= v276 then
  3350. u31 = false;
  3351. while true do
  3352. if u16 == false then
  3353.  
  3354. else
  3355. break;
  3356. end;
  3357. wait(0.01);
  3358. end;
  3359. HWallRun(v276, v277, v278, -math.pi / 2);
  3360. elseif v273 == nil then
  3361. HWallRun(v276, v277, v278, -math.pi / 2);
  3362. end;
  3363. elseif v273 == nil then
  3364. HWallRun(v276, v277, v278, -math.pi / 2);
  3365. end;
  3366. elseif l__magnitude__297 < l__magnitude__296 then
  3367. if u31 == "Jumping" then
  3368. if u32 ~= v279 then
  3369. u31 = false;
  3370. while true do
  3371. if u16 == false then
  3372.  
  3373. else
  3374. break;
  3375. end;
  3376. wait(0.01);
  3377. end;
  3378. HWallRun(v279, v280, v281, math.pi / 2);
  3379. elseif v273 == nil then
  3380. HWallRun(v279, v280, v281, math.pi / 2);
  3381. end;
  3382. elseif v273 == nil then
  3383. HWallRun(v279, v280, v281, math.pi / 2);
  3384. end;
  3385. end;
  3386. end;
  3387. else
  3388. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3389. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3390. if l__magnitude__296 < l__magnitude__297 then
  3391. if u31 == "Jumping" then
  3392. if u32 ~= v276 then
  3393. u31 = false;
  3394. while true do
  3395. if u16 == false then
  3396.  
  3397. else
  3398. break;
  3399. end;
  3400. wait(0.01);
  3401. end;
  3402. HWallRun(v276, v277, v278, -math.pi / 2);
  3403. elseif v273 == nil then
  3404. HWallRun(v276, v277, v278, -math.pi / 2);
  3405. end;
  3406. elseif v273 == nil then
  3407. HWallRun(v276, v277, v278, -math.pi / 2);
  3408. end;
  3409. elseif l__magnitude__297 < l__magnitude__296 then
  3410. if u31 == "Jumping" then
  3411. if u32 ~= v279 then
  3412. u31 = false;
  3413. while true do
  3414. if u16 == false then
  3415.  
  3416. else
  3417. break;
  3418. end;
  3419. wait(0.01);
  3420. end;
  3421. HWallRun(v279, v280, v281, math.pi / 2);
  3422. elseif v273 == nil then
  3423. HWallRun(v279, v280, v281, math.pi / 2);
  3424. end;
  3425. elseif v273 == nil then
  3426. HWallRun(v279, v280, v281, math.pi / 2);
  3427. end;
  3428. end;
  3429. end;
  3430. elseif v279 ~= nil then
  3431. if v279.Parent:findFirstChild("Humanoid") == nil then
  3432. if v279.Parent.className ~= "Hat" then
  3433. if v294 ~= nil then
  3434. if v294.CanCollide == false then
  3435. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3436. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3437. if l__magnitude__296 < l__magnitude__297 then
  3438. if u31 == "Jumping" then
  3439. if u32 ~= v276 then
  3440. u31 = false;
  3441. while true do
  3442. if u16 == false then
  3443.  
  3444. else
  3445. break;
  3446. end;
  3447. wait(0.01);
  3448. end;
  3449. HWallRun(v276, v277, v278, -math.pi / 2);
  3450. elseif v273 == nil then
  3451. HWallRun(v276, v277, v278, -math.pi / 2);
  3452. end;
  3453. elseif v273 == nil then
  3454. HWallRun(v276, v277, v278, -math.pi / 2);
  3455. end;
  3456. elseif l__magnitude__297 < l__magnitude__296 then
  3457. if u31 == "Jumping" then
  3458. if u32 ~= v279 then
  3459. u31 = false;
  3460. while true do
  3461. if u16 == false then
  3462.  
  3463. else
  3464. break;
  3465. end;
  3466. wait(0.01);
  3467. end;
  3468. HWallRun(v279, v280, v281, math.pi / 2);
  3469. elseif v273 == nil then
  3470. HWallRun(v279, v280, v281, math.pi / 2);
  3471. end;
  3472. elseif v273 == nil then
  3473. HWallRun(v279, v280, v281, math.pi / 2);
  3474. end;
  3475. end;
  3476. end;
  3477. else
  3478. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3479. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3480. if l__magnitude__296 < l__magnitude__297 then
  3481. if u31 == "Jumping" then
  3482. if u32 ~= v276 then
  3483. u31 = false;
  3484. while true do
  3485. if u16 == false then
  3486.  
  3487. else
  3488. break;
  3489. end;
  3490. wait(0.01);
  3491. end;
  3492. HWallRun(v276, v277, v278, -math.pi / 2);
  3493. elseif v273 == nil then
  3494. HWallRun(v276, v277, v278, -math.pi / 2);
  3495. end;
  3496. elseif v273 == nil then
  3497. HWallRun(v276, v277, v278, -math.pi / 2);
  3498. end;
  3499. elseif l__magnitude__297 < l__magnitude__296 then
  3500. if u31 == "Jumping" then
  3501. if u32 ~= v279 then
  3502. u31 = false;
  3503. while true do
  3504. if u16 == false then
  3505.  
  3506. else
  3507. break;
  3508. end;
  3509. wait(0.01);
  3510. end;
  3511. HWallRun(v279, v280, v281, math.pi / 2);
  3512. elseif v273 == nil then
  3513. HWallRun(v279, v280, v281, math.pi / 2);
  3514. end;
  3515. elseif v273 == nil then
  3516. HWallRun(v279, v280, v281, math.pi / 2);
  3517. end;
  3518. end;
  3519. end;
  3520. end;
  3521. end;
  3522. end;
  3523. elseif v279 ~= nil then
  3524. if v279.Parent:findFirstChild("Humanoid") == nil then
  3525. if v279.Parent.className ~= "Hat" then
  3526. if v294 ~= nil then
  3527. if v294.CanCollide == false then
  3528. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3529. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3530. if l__magnitude__296 < l__magnitude__297 then
  3531. if u31 == "Jumping" then
  3532. if u32 ~= v276 then
  3533. u31 = false;
  3534. while true do
  3535. if u16 == false then
  3536.  
  3537. else
  3538. break;
  3539. end;
  3540. wait(0.01);
  3541. end;
  3542. HWallRun(v276, v277, v278, -math.pi / 2);
  3543. elseif v273 == nil then
  3544. HWallRun(v276, v277, v278, -math.pi / 2);
  3545. end;
  3546. elseif v273 == nil then
  3547. HWallRun(v276, v277, v278, -math.pi / 2);
  3548. end;
  3549. elseif l__magnitude__297 < l__magnitude__296 then
  3550. if u31 == "Jumping" then
  3551. if u32 ~= v279 then
  3552. u31 = false;
  3553. while true do
  3554. if u16 == false then
  3555.  
  3556. else
  3557. break;
  3558. end;
  3559. wait(0.01);
  3560. end;
  3561. HWallRun(v279, v280, v281, math.pi / 2);
  3562. elseif v273 == nil then
  3563. HWallRun(v279, v280, v281, math.pi / 2);
  3564. end;
  3565. elseif v273 == nil then
  3566. HWallRun(v279, v280, v281, math.pi / 2);
  3567. end;
  3568. end;
  3569. end;
  3570. else
  3571. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3572. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3573. if l__magnitude__296 < l__magnitude__297 then
  3574. if u31 == "Jumping" then
  3575. if u32 ~= v276 then
  3576. u31 = false;
  3577. while true do
  3578. if u16 == false then
  3579.  
  3580. else
  3581. break;
  3582. end;
  3583. wait(0.01);
  3584. end;
  3585. HWallRun(v276, v277, v278, -math.pi / 2);
  3586. elseif v273 == nil then
  3587. HWallRun(v276, v277, v278, -math.pi / 2);
  3588. end;
  3589. elseif v273 == nil then
  3590. HWallRun(v276, v277, v278, -math.pi / 2);
  3591. end;
  3592. elseif l__magnitude__297 < l__magnitude__296 then
  3593. if u31 == "Jumping" then
  3594. if u32 ~= v279 then
  3595. u31 = false;
  3596. while true do
  3597. if u16 == false then
  3598.  
  3599. else
  3600. break;
  3601. end;
  3602. wait(0.01);
  3603. end;
  3604. HWallRun(v279, v280, v281, math.pi / 2);
  3605. elseif v273 == nil then
  3606. HWallRun(v279, v280, v281, math.pi / 2);
  3607. end;
  3608. elseif v273 == nil then
  3609. HWallRun(v279, v280, v281, math.pi / 2);
  3610. end;
  3611. end;
  3612. end;
  3613. end;
  3614. end;
  3615. end;
  3616. end;
  3617. end;
  3618. end;
  3619. elseif u34 == 0 then
  3620. if u38 == false then
  3621. if v273 ~= nil then
  3622. if u31 == "Jumping" then
  3623. if v276 ~= nil then
  3624. if v276.Parent:findFirstChild("Humanoid") == nil then
  3625. if v276.Parent.className == "Hat" then
  3626. if v279 ~= nil then
  3627. if v279.Parent:findFirstChild("Humanoid") == nil then
  3628. if v279.Parent.className ~= "Hat" then
  3629. if v294 ~= nil then
  3630. if v294.CanCollide == false then
  3631. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3632. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3633. if l__magnitude__296 < l__magnitude__297 then
  3634. if u31 == "Jumping" then
  3635. if u32 ~= v276 then
  3636. u31 = false;
  3637. while true do
  3638. if u16 == false then
  3639.  
  3640. else
  3641. break;
  3642. end;
  3643. wait(0.01);
  3644. end;
  3645. HWallRun(v276, v277, v278, -math.pi / 2);
  3646. elseif v273 == nil then
  3647. HWallRun(v276, v277, v278, -math.pi / 2);
  3648. end;
  3649. elseif v273 == nil then
  3650. HWallRun(v276, v277, v278, -math.pi / 2);
  3651. end;
  3652. elseif l__magnitude__297 < l__magnitude__296 then
  3653. if u31 == "Jumping" then
  3654. if u32 ~= v279 then
  3655. u31 = false;
  3656. while true do
  3657. if u16 == false then
  3658.  
  3659. else
  3660. break;
  3661. end;
  3662. wait(0.01);
  3663. end;
  3664. HWallRun(v279, v280, v281, math.pi / 2);
  3665. elseif v273 == nil then
  3666. HWallRun(v279, v280, v281, math.pi / 2);
  3667. end;
  3668. elseif v273 == nil then
  3669. HWallRun(v279, v280, v281, math.pi / 2);
  3670. end;
  3671. end;
  3672. end;
  3673. else
  3674. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3675. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3676. if l__magnitude__296 < l__magnitude__297 then
  3677. if u31 == "Jumping" then
  3678. if u32 ~= v276 then
  3679. u31 = false;
  3680. while true do
  3681. if u16 == false then
  3682.  
  3683. else
  3684. break;
  3685. end;
  3686. wait(0.01);
  3687. end;
  3688. HWallRun(v276, v277, v278, -math.pi / 2);
  3689. elseif v273 == nil then
  3690. HWallRun(v276, v277, v278, -math.pi / 2);
  3691. end;
  3692. elseif v273 == nil then
  3693. HWallRun(v276, v277, v278, -math.pi / 2);
  3694. end;
  3695. elseif l__magnitude__297 < l__magnitude__296 then
  3696. if u31 == "Jumping" then
  3697. if u32 ~= v279 then
  3698. u31 = false;
  3699. while true do
  3700. if u16 == false then
  3701.  
  3702. else
  3703. break;
  3704. end;
  3705. wait(0.01);
  3706. end;
  3707. HWallRun(v279, v280, v281, math.pi / 2);
  3708. elseif v273 == nil then
  3709. HWallRun(v279, v280, v281, math.pi / 2);
  3710. end;
  3711. elseif v273 == nil then
  3712. HWallRun(v279, v280, v281, math.pi / 2);
  3713. end;
  3714. end;
  3715. end;
  3716. end;
  3717. end;
  3718. end;
  3719. elseif v294 ~= nil then
  3720. if v294.CanCollide == false then
  3721. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3722. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3723. if l__magnitude__296 < l__magnitude__297 then
  3724. if u31 == "Jumping" then
  3725. if u32 ~= v276 then
  3726. u31 = false;
  3727. while true do
  3728. if u16 == false then
  3729.  
  3730. else
  3731. break;
  3732. end;
  3733. wait(0.01);
  3734. end;
  3735. HWallRun(v276, v277, v278, -math.pi / 2);
  3736. elseif v273 == nil then
  3737. HWallRun(v276, v277, v278, -math.pi / 2);
  3738. end;
  3739. elseif v273 == nil then
  3740. HWallRun(v276, v277, v278, -math.pi / 2);
  3741. end;
  3742. elseif l__magnitude__297 < l__magnitude__296 then
  3743. if u31 == "Jumping" then
  3744. if u32 ~= v279 then
  3745. u31 = false;
  3746. while true do
  3747. if u16 == false then
  3748.  
  3749. else
  3750. break;
  3751. end;
  3752. wait(0.01);
  3753. end;
  3754. HWallRun(v279, v280, v281, math.pi / 2);
  3755. elseif v273 == nil then
  3756. HWallRun(v279, v280, v281, math.pi / 2);
  3757. end;
  3758. elseif v273 == nil then
  3759. HWallRun(v279, v280, v281, math.pi / 2);
  3760. end;
  3761. end;
  3762. end;
  3763. else
  3764. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3765. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3766. if l__magnitude__296 < l__magnitude__297 then
  3767. if u31 == "Jumping" then
  3768. if u32 ~= v276 then
  3769. u31 = false;
  3770. while true do
  3771. if u16 == false then
  3772.  
  3773. else
  3774. break;
  3775. end;
  3776. wait(0.01);
  3777. end;
  3778. HWallRun(v276, v277, v278, -math.pi / 2);
  3779. elseif v273 == nil then
  3780. HWallRun(v276, v277, v278, -math.pi / 2);
  3781. end;
  3782. elseif v273 == nil then
  3783. HWallRun(v276, v277, v278, -math.pi / 2);
  3784. end;
  3785. elseif l__magnitude__297 < l__magnitude__296 then
  3786. if u31 == "Jumping" then
  3787. if u32 ~= v279 then
  3788. u31 = false;
  3789. while true do
  3790. if u16 == false then
  3791.  
  3792. else
  3793. break;
  3794. end;
  3795. wait(0.01);
  3796. end;
  3797. HWallRun(v279, v280, v281, math.pi / 2);
  3798. elseif v273 == nil then
  3799. HWallRun(v279, v280, v281, math.pi / 2);
  3800. end;
  3801. elseif v273 == nil then
  3802. HWallRun(v279, v280, v281, math.pi / 2);
  3803. end;
  3804. end;
  3805. end;
  3806. elseif v279 ~= nil then
  3807. if v279.Parent:findFirstChild("Humanoid") == nil then
  3808. if v279.Parent.className ~= "Hat" then
  3809. if v294 ~= nil then
  3810. if v294.CanCollide == false then
  3811. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3812. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3813. if l__magnitude__296 < l__magnitude__297 then
  3814. if u31 == "Jumping" then
  3815. if u32 ~= v276 then
  3816. u31 = false;
  3817. while true do
  3818. if u16 == false then
  3819.  
  3820. else
  3821. break;
  3822. end;
  3823. wait(0.01);
  3824. end;
  3825. HWallRun(v276, v277, v278, -math.pi / 2);
  3826. elseif v273 == nil then
  3827. HWallRun(v276, v277, v278, -math.pi / 2);
  3828. end;
  3829. elseif v273 == nil then
  3830. HWallRun(v276, v277, v278, -math.pi / 2);
  3831. end;
  3832. elseif l__magnitude__297 < l__magnitude__296 then
  3833. if u31 == "Jumping" then
  3834. if u32 ~= v279 then
  3835. u31 = false;
  3836. while true do
  3837. if u16 == false then
  3838.  
  3839. else
  3840. break;
  3841. end;
  3842. wait(0.01);
  3843. end;
  3844. HWallRun(v279, v280, v281, math.pi / 2);
  3845. elseif v273 == nil then
  3846. HWallRun(v279, v280, v281, math.pi / 2);
  3847. end;
  3848. elseif v273 == nil then
  3849. HWallRun(v279, v280, v281, math.pi / 2);
  3850. end;
  3851. end;
  3852. end;
  3853. else
  3854. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3855. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3856. if l__magnitude__296 < l__magnitude__297 then
  3857. if u31 == "Jumping" then
  3858. if u32 ~= v276 then
  3859. u31 = false;
  3860. while true do
  3861. if u16 == false then
  3862.  
  3863. else
  3864. break;
  3865. end;
  3866. wait(0.01);
  3867. end;
  3868. HWallRun(v276, v277, v278, -math.pi / 2);
  3869. elseif v273 == nil then
  3870. HWallRun(v276, v277, v278, -math.pi / 2);
  3871. end;
  3872. elseif v273 == nil then
  3873. HWallRun(v276, v277, v278, -math.pi / 2);
  3874. end;
  3875. elseif l__magnitude__297 < l__magnitude__296 then
  3876. if u31 == "Jumping" then
  3877. if u32 ~= v279 then
  3878. u31 = false;
  3879. while true do
  3880. if u16 == false then
  3881.  
  3882. else
  3883. break;
  3884. end;
  3885. wait(0.01);
  3886. end;
  3887. HWallRun(v279, v280, v281, math.pi / 2);
  3888. elseif v273 == nil then
  3889. HWallRun(v279, v280, v281, math.pi / 2);
  3890. end;
  3891. elseif v273 == nil then
  3892. HWallRun(v279, v280, v281, math.pi / 2);
  3893. end;
  3894. end;
  3895. end;
  3896. end;
  3897. end;
  3898. end;
  3899. elseif v279 ~= nil then
  3900. if v279.Parent:findFirstChild("Humanoid") == nil then
  3901. if v279.Parent.className ~= "Hat" then
  3902. if v294 ~= nil then
  3903. if v294.CanCollide == false then
  3904. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3905. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3906. if l__magnitude__296 < l__magnitude__297 then
  3907. if u31 == "Jumping" then
  3908. if u32 ~= v276 then
  3909. u31 = false;
  3910. while true do
  3911. if u16 == false then
  3912.  
  3913. else
  3914. break;
  3915. end;
  3916. wait(0.01);
  3917. end;
  3918. HWallRun(v276, v277, v278, -math.pi / 2);
  3919. elseif v273 == nil then
  3920. HWallRun(v276, v277, v278, -math.pi / 2);
  3921. end;
  3922. elseif v273 == nil then
  3923. HWallRun(v276, v277, v278, -math.pi / 2);
  3924. end;
  3925. elseif l__magnitude__297 < l__magnitude__296 then
  3926. if u31 == "Jumping" then
  3927. if u32 ~= v279 then
  3928. u31 = false;
  3929. while true do
  3930. if u16 == false then
  3931.  
  3932. else
  3933. break;
  3934. end;
  3935. wait(0.01);
  3936. end;
  3937. HWallRun(v279, v280, v281, math.pi / 2);
  3938. elseif v273 == nil then
  3939. HWallRun(v279, v280, v281, math.pi / 2);
  3940. end;
  3941. elseif v273 == nil then
  3942. HWallRun(v279, v280, v281, math.pi / 2);
  3943. end;
  3944. end;
  3945. end;
  3946. else
  3947. l__magnitude__296 = (v277 - u4.Position).magnitude;
  3948. l__magnitude__297 = (v280 - u4.Position).magnitude;
  3949. if l__magnitude__296 < l__magnitude__297 then
  3950. if u31 == "Jumping" then
  3951. if u32 ~= v276 then
  3952. u31 = false;
  3953. while true do
  3954. if u16 == false then
  3955.  
  3956. else
  3957. break;
  3958. end;
  3959. wait(0.01);
  3960. end;
  3961. HWallRun(v276, v277, v278, -math.pi / 2);
  3962. elseif v273 == nil then
  3963. HWallRun(v276, v277, v278, -math.pi / 2);
  3964. end;
  3965. elseif v273 == nil then
  3966. HWallRun(v276, v277, v278, -math.pi / 2);
  3967. end;
  3968. elseif l__magnitude__297 < l__magnitude__296 then
  3969. if u31 == "Jumping" then
  3970. if u32 ~= v279 then
  3971. u31 = false;
  3972. while true do
  3973. if u16 == false then
  3974.  
  3975. else
  3976. break;
  3977. end;
  3978. wait(0.01);
  3979. end;
  3980. HWallRun(v279, v280, v281, math.pi / 2);
  3981. elseif v273 == nil then
  3982. HWallRun(v279, v280, v281, math.pi / 2);
  3983. end;
  3984. elseif v273 == nil then
  3985. HWallRun(v279, v280, v281, math.pi / 2);
  3986. end;
  3987. end;
  3988. end;
  3989. end;
  3990. end;
  3991. end;
  3992. end;
  3993. elseif v276 ~= nil then
  3994. if v276.Parent:findFirstChild("Humanoid") == nil then
  3995. if v276.Parent.className == "Hat" then
  3996. if v279 ~= nil then
  3997. if v279.Parent:findFirstChild("Humanoid") == nil then
  3998. if v279.Parent.className ~= "Hat" then
  3999. if v294 ~= nil then
  4000. if v294.CanCollide == false then
  4001. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4002. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4003. if l__magnitude__296 < l__magnitude__297 then
  4004. if u31 == "Jumping" then
  4005. if u32 ~= v276 then
  4006. u31 = false;
  4007. while true do
  4008. if u16 == false then
  4009.  
  4010. else
  4011. break;
  4012. end;
  4013. wait(0.01);
  4014. end;
  4015. HWallRun(v276, v277, v278, -math.pi / 2);
  4016. elseif v273 == nil then
  4017. HWallRun(v276, v277, v278, -math.pi / 2);
  4018. end;
  4019. elseif v273 == nil then
  4020. HWallRun(v276, v277, v278, -math.pi / 2);
  4021. end;
  4022. elseif l__magnitude__297 < l__magnitude__296 then
  4023. if u31 == "Jumping" then
  4024. if u32 ~= v279 then
  4025. u31 = false;
  4026. while true do
  4027. if u16 == false then
  4028.  
  4029. else
  4030. break;
  4031. end;
  4032. wait(0.01);
  4033. end;
  4034. HWallRun(v279, v280, v281, math.pi / 2);
  4035. elseif v273 == nil then
  4036. HWallRun(v279, v280, v281, math.pi / 2);
  4037. end;
  4038. elseif v273 == nil then
  4039. HWallRun(v279, v280, v281, math.pi / 2);
  4040. end;
  4041. end;
  4042. end;
  4043. else
  4044. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4045. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4046. if l__magnitude__296 < l__magnitude__297 then
  4047. if u31 == "Jumping" then
  4048. if u32 ~= v276 then
  4049. u31 = false;
  4050. while true do
  4051. if u16 == false then
  4052.  
  4053. else
  4054. break;
  4055. end;
  4056. wait(0.01);
  4057. end;
  4058. HWallRun(v276, v277, v278, -math.pi / 2);
  4059. elseif v273 == nil then
  4060. HWallRun(v276, v277, v278, -math.pi / 2);
  4061. end;
  4062. elseif v273 == nil then
  4063. HWallRun(v276, v277, v278, -math.pi / 2);
  4064. end;
  4065. elseif l__magnitude__297 < l__magnitude__296 then
  4066. if u31 == "Jumping" then
  4067. if u32 ~= v279 then
  4068. u31 = false;
  4069. while true do
  4070. if u16 == false then
  4071.  
  4072. else
  4073. break;
  4074. end;
  4075. wait(0.01);
  4076. end;
  4077. HWallRun(v279, v280, v281, math.pi / 2);
  4078. elseif v273 == nil then
  4079. HWallRun(v279, v280, v281, math.pi / 2);
  4080. end;
  4081. elseif v273 == nil then
  4082. HWallRun(v279, v280, v281, math.pi / 2);
  4083. end;
  4084. end;
  4085. end;
  4086. end;
  4087. end;
  4088. end;
  4089. elseif v294 ~= nil then
  4090. if v294.CanCollide == false then
  4091. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4092. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4093. if l__magnitude__296 < l__magnitude__297 then
  4094. if u31 == "Jumping" then
  4095. if u32 ~= v276 then
  4096. u31 = false;
  4097. while true do
  4098. if u16 == false then
  4099.  
  4100. else
  4101. break;
  4102. end;
  4103. wait(0.01);
  4104. end;
  4105. HWallRun(v276, v277, v278, -math.pi / 2);
  4106. elseif v273 == nil then
  4107. HWallRun(v276, v277, v278, -math.pi / 2);
  4108. end;
  4109. elseif v273 == nil then
  4110. HWallRun(v276, v277, v278, -math.pi / 2);
  4111. end;
  4112. elseif l__magnitude__297 < l__magnitude__296 then
  4113. if u31 == "Jumping" then
  4114. if u32 ~= v279 then
  4115. u31 = false;
  4116. while true do
  4117. if u16 == false then
  4118.  
  4119. else
  4120. break;
  4121. end;
  4122. wait(0.01);
  4123. end;
  4124. HWallRun(v279, v280, v281, math.pi / 2);
  4125. elseif v273 == nil then
  4126. HWallRun(v279, v280, v281, math.pi / 2);
  4127. end;
  4128. elseif v273 == nil then
  4129. HWallRun(v279, v280, v281, math.pi / 2);
  4130. end;
  4131. end;
  4132. end;
  4133. else
  4134. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4135. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4136. if l__magnitude__296 < l__magnitude__297 then
  4137. if u31 == "Jumping" then
  4138. if u32 ~= v276 then
  4139. u31 = false;
  4140. while true do
  4141. if u16 == false then
  4142.  
  4143. else
  4144. break;
  4145. end;
  4146. wait(0.01);
  4147. end;
  4148. HWallRun(v276, v277, v278, -math.pi / 2);
  4149. elseif v273 == nil then
  4150. HWallRun(v276, v277, v278, -math.pi / 2);
  4151. end;
  4152. elseif v273 == nil then
  4153. HWallRun(v276, v277, v278, -math.pi / 2);
  4154. end;
  4155. elseif l__magnitude__297 < l__magnitude__296 then
  4156. if u31 == "Jumping" then
  4157. if u32 ~= v279 then
  4158. u31 = false;
  4159. while true do
  4160. if u16 == false then
  4161.  
  4162. else
  4163. break;
  4164. end;
  4165. wait(0.01);
  4166. end;
  4167. HWallRun(v279, v280, v281, math.pi / 2);
  4168. elseif v273 == nil then
  4169. HWallRun(v279, v280, v281, math.pi / 2);
  4170. end;
  4171. elseif v273 == nil then
  4172. HWallRun(v279, v280, v281, math.pi / 2);
  4173. end;
  4174. end;
  4175. end;
  4176. elseif v279 ~= nil then
  4177. if v279.Parent:findFirstChild("Humanoid") == nil then
  4178. if v279.Parent.className ~= "Hat" then
  4179. if v294 ~= nil then
  4180. if v294.CanCollide == false then
  4181. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4182. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4183. if l__magnitude__296 < l__magnitude__297 then
  4184. if u31 == "Jumping" then
  4185. if u32 ~= v276 then
  4186. u31 = false;
  4187. while true do
  4188. if u16 == false then
  4189.  
  4190. else
  4191. break;
  4192. end;
  4193. wait(0.01);
  4194. end;
  4195. HWallRun(v276, v277, v278, -math.pi / 2);
  4196. elseif v273 == nil then
  4197. HWallRun(v276, v277, v278, -math.pi / 2);
  4198. end;
  4199. elseif v273 == nil then
  4200. HWallRun(v276, v277, v278, -math.pi / 2);
  4201. end;
  4202. elseif l__magnitude__297 < l__magnitude__296 then
  4203. if u31 == "Jumping" then
  4204. if u32 ~= v279 then
  4205. u31 = false;
  4206. while true do
  4207. if u16 == false then
  4208.  
  4209. else
  4210. break;
  4211. end;
  4212. wait(0.01);
  4213. end;
  4214. HWallRun(v279, v280, v281, math.pi / 2);
  4215. elseif v273 == nil then
  4216. HWallRun(v279, v280, v281, math.pi / 2);
  4217. end;
  4218. elseif v273 == nil then
  4219. HWallRun(v279, v280, v281, math.pi / 2);
  4220. end;
  4221. end;
  4222. end;
  4223. else
  4224. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4225. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4226. if l__magnitude__296 < l__magnitude__297 then
  4227. if u31 == "Jumping" then
  4228. if u32 ~= v276 then
  4229. u31 = false;
  4230. while true do
  4231. if u16 == false then
  4232.  
  4233. else
  4234. break;
  4235. end;
  4236. wait(0.01);
  4237. end;
  4238. HWallRun(v276, v277, v278, -math.pi / 2);
  4239. elseif v273 == nil then
  4240. HWallRun(v276, v277, v278, -math.pi / 2);
  4241. end;
  4242. elseif v273 == nil then
  4243. HWallRun(v276, v277, v278, -math.pi / 2);
  4244. end;
  4245. elseif l__magnitude__297 < l__magnitude__296 then
  4246. if u31 == "Jumping" then
  4247. if u32 ~= v279 then
  4248. u31 = false;
  4249. while true do
  4250. if u16 == false then
  4251.  
  4252. else
  4253. break;
  4254. end;
  4255. wait(0.01);
  4256. end;
  4257. HWallRun(v279, v280, v281, math.pi / 2);
  4258. elseif v273 == nil then
  4259. HWallRun(v279, v280, v281, math.pi / 2);
  4260. end;
  4261. elseif v273 == nil then
  4262. HWallRun(v279, v280, v281, math.pi / 2);
  4263. end;
  4264. end;
  4265. end;
  4266. end;
  4267. end;
  4268. end;
  4269. elseif v279 ~= nil then
  4270. if v279.Parent:findFirstChild("Humanoid") == nil then
  4271. if v279.Parent.className ~= "Hat" then
  4272. if v294 ~= nil then
  4273. if v294.CanCollide == false then
  4274. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4275. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4276. if l__magnitude__296 < l__magnitude__297 then
  4277. if u31 == "Jumping" then
  4278. if u32 ~= v276 then
  4279. u31 = false;
  4280. while true do
  4281. if u16 == false then
  4282.  
  4283. else
  4284. break;
  4285. end;
  4286. wait(0.01);
  4287. end;
  4288. HWallRun(v276, v277, v278, -math.pi / 2);
  4289. elseif v273 == nil then
  4290. HWallRun(v276, v277, v278, -math.pi / 2);
  4291. end;
  4292. elseif v273 == nil then
  4293. HWallRun(v276, v277, v278, -math.pi / 2);
  4294. end;
  4295. elseif l__magnitude__297 < l__magnitude__296 then
  4296. if u31 == "Jumping" then
  4297. if u32 ~= v279 then
  4298. u31 = false;
  4299. while true do
  4300. if u16 == false then
  4301.  
  4302. else
  4303. break;
  4304. end;
  4305. wait(0.01);
  4306. end;
  4307. HWallRun(v279, v280, v281, math.pi / 2);
  4308. elseif v273 == nil then
  4309. HWallRun(v279, v280, v281, math.pi / 2);
  4310. end;
  4311. elseif v273 == nil then
  4312. HWallRun(v279, v280, v281, math.pi / 2);
  4313. end;
  4314. end;
  4315. end;
  4316. else
  4317. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4318. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4319. if l__magnitude__296 < l__magnitude__297 then
  4320. if u31 == "Jumping" then
  4321. if u32 ~= v276 then
  4322. u31 = false;
  4323. while true do
  4324. if u16 == false then
  4325.  
  4326. else
  4327. break;
  4328. end;
  4329. wait(0.01);
  4330. end;
  4331. HWallRun(v276, v277, v278, -math.pi / 2);
  4332. elseif v273 == nil then
  4333. HWallRun(v276, v277, v278, -math.pi / 2);
  4334. end;
  4335. elseif v273 == nil then
  4336. HWallRun(v276, v277, v278, -math.pi / 2);
  4337. end;
  4338. elseif l__magnitude__297 < l__magnitude__296 then
  4339. if u31 == "Jumping" then
  4340. if u32 ~= v279 then
  4341. u31 = false;
  4342. while true do
  4343. if u16 == false then
  4344.  
  4345. else
  4346. break;
  4347. end;
  4348. wait(0.01);
  4349. end;
  4350. HWallRun(v279, v280, v281, math.pi / 2);
  4351. elseif v273 == nil then
  4352. HWallRun(v279, v280, v281, math.pi / 2);
  4353. end;
  4354. elseif v273 == nil then
  4355. HWallRun(v279, v280, v281, math.pi / 2);
  4356. end;
  4357. end;
  4358. end;
  4359. end;
  4360. end;
  4361. end;
  4362. end;
  4363. end;
  4364. end;
  4365. elseif u34 == 0 then
  4366. if u38 == false then
  4367. if v273 ~= nil then
  4368. if u31 == "Jumping" then
  4369. if v276 ~= nil then
  4370. if v276.Parent:findFirstChild("Humanoid") == nil then
  4371. if v276.Parent.className == "Hat" then
  4372. if v279 ~= nil then
  4373. if v279.Parent:findFirstChild("Humanoid") == nil then
  4374. if v279.Parent.className ~= "Hat" then
  4375. if v294 ~= nil then
  4376. if v294.CanCollide == false then
  4377. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4378. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4379. if l__magnitude__296 < l__magnitude__297 then
  4380. if u31 == "Jumping" then
  4381. if u32 ~= v276 then
  4382. u31 = false;
  4383. while true do
  4384. if u16 == false then
  4385.  
  4386. else
  4387. break;
  4388. end;
  4389. wait(0.01);
  4390. end;
  4391. HWallRun(v276, v277, v278, -math.pi / 2);
  4392. elseif v273 == nil then
  4393. HWallRun(v276, v277, v278, -math.pi / 2);
  4394. end;
  4395. elseif v273 == nil then
  4396. HWallRun(v276, v277, v278, -math.pi / 2);
  4397. end;
  4398. elseif l__magnitude__297 < l__magnitude__296 then
  4399. if u31 == "Jumping" then
  4400. if u32 ~= v279 then
  4401. u31 = false;
  4402. while true do
  4403. if u16 == false then
  4404.  
  4405. else
  4406. break;
  4407. end;
  4408. wait(0.01);
  4409. end;
  4410. HWallRun(v279, v280, v281, math.pi / 2);
  4411. elseif v273 == nil then
  4412. HWallRun(v279, v280, v281, math.pi / 2);
  4413. end;
  4414. elseif v273 == nil then
  4415. HWallRun(v279, v280, v281, math.pi / 2);
  4416. end;
  4417. end;
  4418. end;
  4419. else
  4420. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4421. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4422. if l__magnitude__296 < l__magnitude__297 then
  4423. if u31 == "Jumping" then
  4424. if u32 ~= v276 then
  4425. u31 = false;
  4426. while true do
  4427. if u16 == false then
  4428.  
  4429. else
  4430. break;
  4431. end;
  4432. wait(0.01);
  4433. end;
  4434. HWallRun(v276, v277, v278, -math.pi / 2);
  4435. elseif v273 == nil then
  4436. HWallRun(v276, v277, v278, -math.pi / 2);
  4437. end;
  4438. elseif v273 == nil then
  4439. HWallRun(v276, v277, v278, -math.pi / 2);
  4440. end;
  4441. elseif l__magnitude__297 < l__magnitude__296 then
  4442. if u31 == "Jumping" then
  4443. if u32 ~= v279 then
  4444. u31 = false;
  4445. while true do
  4446. if u16 == false then
  4447.  
  4448. else
  4449. break;
  4450. end;
  4451. wait(0.01);
  4452. end;
  4453. HWallRun(v279, v280, v281, math.pi / 2);
  4454. elseif v273 == nil then
  4455. HWallRun(v279, v280, v281, math.pi / 2);
  4456. end;
  4457. elseif v273 == nil then
  4458. HWallRun(v279, v280, v281, math.pi / 2);
  4459. end;
  4460. end;
  4461. end;
  4462. end;
  4463. end;
  4464. end;
  4465. elseif v294 ~= nil then
  4466. if v294.CanCollide == false then
  4467. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4468. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4469. if l__magnitude__296 < l__magnitude__297 then
  4470. if u31 == "Jumping" then
  4471. if u32 ~= v276 then
  4472. u31 = false;
  4473. while true do
  4474. if u16 == false then
  4475.  
  4476. else
  4477. break;
  4478. end;
  4479. wait(0.01);
  4480. end;
  4481. HWallRun(v276, v277, v278, -math.pi / 2);
  4482. elseif v273 == nil then
  4483. HWallRun(v276, v277, v278, -math.pi / 2);
  4484. end;
  4485. elseif v273 == nil then
  4486. HWallRun(v276, v277, v278, -math.pi / 2);
  4487. end;
  4488. elseif l__magnitude__297 < l__magnitude__296 then
  4489. if u31 == "Jumping" then
  4490. if u32 ~= v279 then
  4491. u31 = false;
  4492. while true do
  4493. if u16 == false then
  4494.  
  4495. else
  4496. break;
  4497. end;
  4498. wait(0.01);
  4499. end;
  4500. HWallRun(v279, v280, v281, math.pi / 2);
  4501. elseif v273 == nil then
  4502. HWallRun(v279, v280, v281, math.pi / 2);
  4503. end;
  4504. elseif v273 == nil then
  4505. HWallRun(v279, v280, v281, math.pi / 2);
  4506. end;
  4507. end;
  4508. end;
  4509. else
  4510. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4511. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4512. if l__magnitude__296 < l__magnitude__297 then
  4513. if u31 == "Jumping" then
  4514. if u32 ~= v276 then
  4515. u31 = false;
  4516. while true do
  4517. if u16 == false then
  4518.  
  4519. else
  4520. break;
  4521. end;
  4522. wait(0.01);
  4523. end;
  4524. HWallRun(v276, v277, v278, -math.pi / 2);
  4525. elseif v273 == nil then
  4526. HWallRun(v276, v277, v278, -math.pi / 2);
  4527. end;
  4528. elseif v273 == nil then
  4529. HWallRun(v276, v277, v278, -math.pi / 2);
  4530. end;
  4531. elseif l__magnitude__297 < l__magnitude__296 then
  4532. if u31 == "Jumping" then
  4533. if u32 ~= v279 then
  4534. u31 = false;
  4535. while true do
  4536. if u16 == false then
  4537.  
  4538. else
  4539. break;
  4540. end;
  4541. wait(0.01);
  4542. end;
  4543. HWallRun(v279, v280, v281, math.pi / 2);
  4544. elseif v273 == nil then
  4545. HWallRun(v279, v280, v281, math.pi / 2);
  4546. end;
  4547. elseif v273 == nil then
  4548. HWallRun(v279, v280, v281, math.pi / 2);
  4549. end;
  4550. end;
  4551. end;
  4552. elseif v279 ~= nil then
  4553. if v279.Parent:findFirstChild("Humanoid") == nil then
  4554. if v279.Parent.className ~= "Hat" then
  4555. if v294 ~= nil then
  4556. if v294.CanCollide == false then
  4557. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4558. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4559. if l__magnitude__296 < l__magnitude__297 then
  4560. if u31 == "Jumping" then
  4561. if u32 ~= v276 then
  4562. u31 = false;
  4563. while true do
  4564. if u16 == false then
  4565.  
  4566. else
  4567. break;
  4568. end;
  4569. wait(0.01);
  4570. end;
  4571. HWallRun(v276, v277, v278, -math.pi / 2);
  4572. elseif v273 == nil then
  4573. HWallRun(v276, v277, v278, -math.pi / 2);
  4574. end;
  4575. elseif v273 == nil then
  4576. HWallRun(v276, v277, v278, -math.pi / 2);
  4577. end;
  4578. elseif l__magnitude__297 < l__magnitude__296 then
  4579. if u31 == "Jumping" then
  4580. if u32 ~= v279 then
  4581. u31 = false;
  4582. while true do
  4583. if u16 == false then
  4584.  
  4585. else
  4586. break;
  4587. end;
  4588. wait(0.01);
  4589. end;
  4590. HWallRun(v279, v280, v281, math.pi / 2);
  4591. elseif v273 == nil then
  4592. HWallRun(v279, v280, v281, math.pi / 2);
  4593. end;
  4594. elseif v273 == nil then
  4595. HWallRun(v279, v280, v281, math.pi / 2);
  4596. end;
  4597. end;
  4598. end;
  4599. else
  4600. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4601. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4602. if l__magnitude__296 < l__magnitude__297 then
  4603. if u31 == "Jumping" then
  4604. if u32 ~= v276 then
  4605. u31 = false;
  4606. while true do
  4607. if u16 == false then
  4608.  
  4609. else
  4610. break;
  4611. end;
  4612. wait(0.01);
  4613. end;
  4614. HWallRun(v276, v277, v278, -math.pi / 2);
  4615. elseif v273 == nil then
  4616. HWallRun(v276, v277, v278, -math.pi / 2);
  4617. end;
  4618. elseif v273 == nil then
  4619. HWallRun(v276, v277, v278, -math.pi / 2);
  4620. end;
  4621. elseif l__magnitude__297 < l__magnitude__296 then
  4622. if u31 == "Jumping" then
  4623. if u32 ~= v279 then
  4624. u31 = false;
  4625. while true do
  4626. if u16 == false then
  4627.  
  4628. else
  4629. break;
  4630. end;
  4631. wait(0.01);
  4632. end;
  4633. HWallRun(v279, v280, v281, math.pi / 2);
  4634. elseif v273 == nil then
  4635. HWallRun(v279, v280, v281, math.pi / 2);
  4636. end;
  4637. elseif v273 == nil then
  4638. HWallRun(v279, v280, v281, math.pi / 2);
  4639. end;
  4640. end;
  4641. end;
  4642. end;
  4643. end;
  4644. end;
  4645. elseif v279 ~= nil then
  4646. if v279.Parent:findFirstChild("Humanoid") == nil then
  4647. if v279.Parent.className ~= "Hat" then
  4648. if v294 ~= nil then
  4649. if v294.CanCollide == false then
  4650. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4651. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4652. if l__magnitude__296 < l__magnitude__297 then
  4653. if u31 == "Jumping" then
  4654. if u32 ~= v276 then
  4655. u31 = false;
  4656. while true do
  4657. if u16 == false then
  4658.  
  4659. else
  4660. break;
  4661. end;
  4662. wait(0.01);
  4663. end;
  4664. HWallRun(v276, v277, v278, -math.pi / 2);
  4665. elseif v273 == nil then
  4666. HWallRun(v276, v277, v278, -math.pi / 2);
  4667. end;
  4668. elseif v273 == nil then
  4669. HWallRun(v276, v277, v278, -math.pi / 2);
  4670. end;
  4671. elseif l__magnitude__297 < l__magnitude__296 then
  4672. if u31 == "Jumping" then
  4673. if u32 ~= v279 then
  4674. u31 = false;
  4675. while true do
  4676. if u16 == false then
  4677.  
  4678. else
  4679. break;
  4680. end;
  4681. wait(0.01);
  4682. end;
  4683. HWallRun(v279, v280, v281, math.pi / 2);
  4684. elseif v273 == nil then
  4685. HWallRun(v279, v280, v281, math.pi / 2);
  4686. end;
  4687. elseif v273 == nil then
  4688. HWallRun(v279, v280, v281, math.pi / 2);
  4689. end;
  4690. end;
  4691. end;
  4692. else
  4693. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4694. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4695. if l__magnitude__296 < l__magnitude__297 then
  4696. if u31 == "Jumping" then
  4697. if u32 ~= v276 then
  4698. u31 = false;
  4699. while true do
  4700. if u16 == false then
  4701.  
  4702. else
  4703. break;
  4704. end;
  4705. wait(0.01);
  4706. end;
  4707. HWallRun(v276, v277, v278, -math.pi / 2);
  4708. elseif v273 == nil then
  4709. HWallRun(v276, v277, v278, -math.pi / 2);
  4710. end;
  4711. elseif v273 == nil then
  4712. HWallRun(v276, v277, v278, -math.pi / 2);
  4713. end;
  4714. elseif l__magnitude__297 < l__magnitude__296 then
  4715. if u31 == "Jumping" then
  4716. if u32 ~= v279 then
  4717. u31 = false;
  4718. while true do
  4719. if u16 == false then
  4720.  
  4721. else
  4722. break;
  4723. end;
  4724. wait(0.01);
  4725. end;
  4726. HWallRun(v279, v280, v281, math.pi / 2);
  4727. elseif v273 == nil then
  4728. HWallRun(v279, v280, v281, math.pi / 2);
  4729. end;
  4730. elseif v273 == nil then
  4731. HWallRun(v279, v280, v281, math.pi / 2);
  4732. end;
  4733. end;
  4734. end;
  4735. end;
  4736. end;
  4737. end;
  4738. end;
  4739. elseif v276 ~= nil then
  4740. if v276.Parent:findFirstChild("Humanoid") == nil then
  4741. if v276.Parent.className == "Hat" then
  4742. if v279 ~= nil then
  4743. if v279.Parent:findFirstChild("Humanoid") == nil then
  4744. if v279.Parent.className ~= "Hat" then
  4745. if v294 ~= nil then
  4746. if v294.CanCollide == false then
  4747. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4748. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4749. if l__magnitude__296 < l__magnitude__297 then
  4750. if u31 == "Jumping" then
  4751. if u32 ~= v276 then
  4752. u31 = false;
  4753. while true do
  4754. if u16 == false then
  4755.  
  4756. else
  4757. break;
  4758. end;
  4759. wait(0.01);
  4760. end;
  4761. HWallRun(v276, v277, v278, -math.pi / 2);
  4762. elseif v273 == nil then
  4763. HWallRun(v276, v277, v278, -math.pi / 2);
  4764. end;
  4765. elseif v273 == nil then
  4766. HWallRun(v276, v277, v278, -math.pi / 2);
  4767. end;
  4768. elseif l__magnitude__297 < l__magnitude__296 then
  4769. if u31 == "Jumping" then
  4770. if u32 ~= v279 then
  4771. u31 = false;
  4772. while true do
  4773. if u16 == false then
  4774.  
  4775. else
  4776. break;
  4777. end;
  4778. wait(0.01);
  4779. end;
  4780. HWallRun(v279, v280, v281, math.pi / 2);
  4781. elseif v273 == nil then
  4782. HWallRun(v279, v280, v281, math.pi / 2);
  4783. end;
  4784. elseif v273 == nil then
  4785. HWallRun(v279, v280, v281, math.pi / 2);
  4786. end;
  4787. end;
  4788. end;
  4789. else
  4790. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4791. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4792. if l__magnitude__296 < l__magnitude__297 then
  4793. if u31 == "Jumping" then
  4794. if u32 ~= v276 then
  4795. u31 = false;
  4796. while true do
  4797. if u16 == false then
  4798.  
  4799. else
  4800. break;
  4801. end;
  4802. wait(0.01);
  4803. end;
  4804. HWallRun(v276, v277, v278, -math.pi / 2);
  4805. elseif v273 == nil then
  4806. HWallRun(v276, v277, v278, -math.pi / 2);
  4807. end;
  4808. elseif v273 == nil then
  4809. HWallRun(v276, v277, v278, -math.pi / 2);
  4810. end;
  4811. elseif l__magnitude__297 < l__magnitude__296 then
  4812. if u31 == "Jumping" then
  4813. if u32 ~= v279 then
  4814. u31 = false;
  4815. while true do
  4816. if u16 == false then
  4817.  
  4818. else
  4819. break;
  4820. end;
  4821. wait(0.01);
  4822. end;
  4823. HWallRun(v279, v280, v281, math.pi / 2);
  4824. elseif v273 == nil then
  4825. HWallRun(v279, v280, v281, math.pi / 2);
  4826. end;
  4827. elseif v273 == nil then
  4828. HWallRun(v279, v280, v281, math.pi / 2);
  4829. end;
  4830. end;
  4831. end;
  4832. end;
  4833. end;
  4834. end;
  4835. elseif v294 ~= nil then
  4836. if v294.CanCollide == false then
  4837. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4838. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4839. if l__magnitude__296 < l__magnitude__297 then
  4840. if u31 == "Jumping" then
  4841. if u32 ~= v276 then
  4842. u31 = false;
  4843. while true do
  4844. if u16 == false then
  4845.  
  4846. else
  4847. break;
  4848. end;
  4849. wait(0.01);
  4850. end;
  4851. HWallRun(v276, v277, v278, -math.pi / 2);
  4852. elseif v273 == nil then
  4853. HWallRun(v276, v277, v278, -math.pi / 2);
  4854. end;
  4855. elseif v273 == nil then
  4856. HWallRun(v276, v277, v278, -math.pi / 2);
  4857. end;
  4858. elseif l__magnitude__297 < l__magnitude__296 then
  4859. if u31 == "Jumping" then
  4860. if u32 ~= v279 then
  4861. u31 = false;
  4862. while true do
  4863. if u16 == false then
  4864.  
  4865. else
  4866. break;
  4867. end;
  4868. wait(0.01);
  4869. end;
  4870. HWallRun(v279, v280, v281, math.pi / 2);
  4871. elseif v273 == nil then
  4872. HWallRun(v279, v280, v281, math.pi / 2);
  4873. end;
  4874. elseif v273 == nil then
  4875. HWallRun(v279, v280, v281, math.pi / 2);
  4876. end;
  4877. end;
  4878. end;
  4879. else
  4880. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4881. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4882. if l__magnitude__296 < l__magnitude__297 then
  4883. if u31 == "Jumping" then
  4884. if u32 ~= v276 then
  4885. u31 = false;
  4886. while true do
  4887. if u16 == false then
  4888.  
  4889. else
  4890. break;
  4891. end;
  4892. wait(0.01);
  4893. end;
  4894. HWallRun(v276, v277, v278, -math.pi / 2);
  4895. elseif v273 == nil then
  4896. HWallRun(v276, v277, v278, -math.pi / 2);
  4897. end;
  4898. elseif v273 == nil then
  4899. HWallRun(v276, v277, v278, -math.pi / 2);
  4900. end;
  4901. elseif l__magnitude__297 < l__magnitude__296 then
  4902. if u31 == "Jumping" then
  4903. if u32 ~= v279 then
  4904. u31 = false;
  4905. while true do
  4906. if u16 == false then
  4907.  
  4908. else
  4909. break;
  4910. end;
  4911. wait(0.01);
  4912. end;
  4913. HWallRun(v279, v280, v281, math.pi / 2);
  4914. elseif v273 == nil then
  4915. HWallRun(v279, v280, v281, math.pi / 2);
  4916. end;
  4917. elseif v273 == nil then
  4918. HWallRun(v279, v280, v281, math.pi / 2);
  4919. end;
  4920. end;
  4921. end;
  4922. elseif v279 ~= nil then
  4923. if v279.Parent:findFirstChild("Humanoid") == nil then
  4924. if v279.Parent.className ~= "Hat" then
  4925. if v294 ~= nil then
  4926. if v294.CanCollide == false then
  4927. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4928. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4929. if l__magnitude__296 < l__magnitude__297 then
  4930. if u31 == "Jumping" then
  4931. if u32 ~= v276 then
  4932. u31 = false;
  4933. while true do
  4934. if u16 == false then
  4935.  
  4936. else
  4937. break;
  4938. end;
  4939. wait(0.01);
  4940. end;
  4941. HWallRun(v276, v277, v278, -math.pi / 2);
  4942. elseif v273 == nil then
  4943. HWallRun(v276, v277, v278, -math.pi / 2);
  4944. end;
  4945. elseif v273 == nil then
  4946. HWallRun(v276, v277, v278, -math.pi / 2);
  4947. end;
  4948. elseif l__magnitude__297 < l__magnitude__296 then
  4949. if u31 == "Jumping" then
  4950. if u32 ~= v279 then
  4951. u31 = false;
  4952. while true do
  4953. if u16 == false then
  4954.  
  4955. else
  4956. break;
  4957. end;
  4958. wait(0.01);
  4959. end;
  4960. HWallRun(v279, v280, v281, math.pi / 2);
  4961. elseif v273 == nil then
  4962. HWallRun(v279, v280, v281, math.pi / 2);
  4963. end;
  4964. elseif v273 == nil then
  4965. HWallRun(v279, v280, v281, math.pi / 2);
  4966. end;
  4967. end;
  4968. end;
  4969. else
  4970. l__magnitude__296 = (v277 - u4.Position).magnitude;
  4971. l__magnitude__297 = (v280 - u4.Position).magnitude;
  4972. if l__magnitude__296 < l__magnitude__297 then
  4973. if u31 == "Jumping" then
  4974. if u32 ~= v276 then
  4975. u31 = false;
  4976. while true do
  4977. if u16 == false then
  4978.  
  4979. else
  4980. break;
  4981. end;
  4982. wait(0.01);
  4983. end;
  4984. HWallRun(v276, v277, v278, -math.pi / 2);
  4985. elseif v273 == nil then
  4986. HWallRun(v276, v277, v278, -math.pi / 2);
  4987. end;
  4988. elseif v273 == nil then
  4989. HWallRun(v276, v277, v278, -math.pi / 2);
  4990. end;
  4991. elseif l__magnitude__297 < l__magnitude__296 then
  4992. if u31 == "Jumping" then
  4993. if u32 ~= v279 then
  4994. u31 = false;
  4995. while true do
  4996. if u16 == false then
  4997.  
  4998. else
  4999. break;
  5000. end;
  5001. wait(0.01);
  5002. end;
  5003. HWallRun(v279, v280, v281, math.pi / 2);
  5004. elseif v273 == nil then
  5005. HWallRun(v279, v280, v281, math.pi / 2);
  5006. end;
  5007. elseif v273 == nil then
  5008. HWallRun(v279, v280, v281, math.pi / 2);
  5009. end;
  5010. end;
  5011. end;
  5012. end;
  5013. end;
  5014. end;
  5015. elseif v279 ~= nil then
  5016. if v279.Parent:findFirstChild("Humanoid") == nil then
  5017. if v279.Parent.className ~= "Hat" then
  5018. if v294 ~= nil then
  5019. if v294.CanCollide == false then
  5020. l__magnitude__296 = (v277 - u4.Position).magnitude;
  5021. l__magnitude__297 = (v280 - u4.Position).magnitude;
  5022. if l__magnitude__296 < l__magnitude__297 then
  5023. if u31 == "Jumping" then
  5024. if u32 ~= v276 then
  5025. u31 = false;
  5026. while true do
  5027. if u16 == false then
  5028.  
  5029. else
  5030. break;
  5031. end;
  5032. wait(0.01);
  5033. end;
  5034. HWallRun(v276, v277, v278, -math.pi / 2);
  5035. elseif v273 == nil then
  5036. HWallRun(v276, v277, v278, -math.pi / 2);
  5037. end;
  5038. elseif v273 == nil then
  5039. HWallRun(v276, v277, v278, -math.pi / 2);
  5040. end;
  5041. elseif l__magnitude__297 < l__magnitude__296 then
  5042. if u31 == "Jumping" then
  5043. if u32 ~= v279 then
  5044. u31 = false;
  5045. while true do
  5046. if u16 == false then
  5047.  
  5048. else
  5049. break;
  5050. end;
  5051. wait(0.01);
  5052. end;
  5053. HWallRun(v279, v280, v281, math.pi / 2);
  5054. elseif v273 == nil then
  5055. HWallRun(v279, v280, v281, math.pi / 2);
  5056. end;
  5057. elseif v273 == nil then
  5058. HWallRun(v279, v280, v281, math.pi / 2);
  5059. end;
  5060. end;
  5061. end;
  5062. else
  5063. l__magnitude__296 = (v277 - u4.Position).magnitude;
  5064. l__magnitude__297 = (v280 - u4.Position).magnitude;
  5065. if l__magnitude__296 < l__magnitude__297 then
  5066. if u31 == "Jumping" then
  5067. if u32 ~= v276 then
  5068. u31 = false;
  5069. while true do
  5070. if u16 == false then
  5071.  
  5072. else
  5073. break;
  5074. end;
  5075. wait(0.01);
  5076. end;
  5077. HWallRun(v276, v277, v278, -math.pi / 2);
  5078. elseif v273 == nil then
  5079. HWallRun(v276, v277, v278, -math.pi / 2);
  5080. end;
  5081. elseif v273 == nil then
  5082. HWallRun(v276, v277, v278, -math.pi / 2);
  5083. end;
  5084. elseif l__magnitude__297 < l__magnitude__296 then
  5085. if u31 == "Jumping" then
  5086. if u32 ~= v279 then
  5087. u31 = false;
  5088. while true do
  5089. if u16 == false then
  5090.  
  5091. else
  5092. break;
  5093. end;
  5094. wait(0.01);
  5095. end;
  5096. HWallRun(v279, v280, v281, math.pi / 2);
  5097. elseif v273 == nil then
  5098. HWallRun(v279, v280, v281, math.pi / 2);
  5099. end;
  5100. elseif v273 == nil then
  5101. HWallRun(v279, v280, v281, math.pi / 2);
  5102. end;
  5103. end;
  5104. end;
  5105. end;
  5106. end;
  5107. end;
  5108. end;
  5109. end;
  5110. end;
  5111. end;
  5112. end;
  5113. end;
  5114. if u31 == true then
  5115. u31 = "Jumping";
  5116. u23 = "HWRJumping";
  5117. return;
  5118. end;
  5119. else
  5120. if p26 == string.char(48) then
  5121. u45 = true;
  5122. return;
  5123. end;
  5124. if p26 == string.char(50) then
  5125. if u23 == "Standing" then
  5126. Sit();
  5127. return;
  5128. end;
  5129. if u31 == true then
  5130. u37 = true;
  5131. return;
  5132. end;
  5133. elseif p26 == string.char(52) then
  5134. if u45 == true then
  5135. if u23 == "Standing" then
  5136. if u43 == 0 then
  5137. if 15 < Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude then
  5138. if -40 < u4.Velocity.y then
  5139. Slide();
  5140. return;
  5141. end;
  5142. end;
  5143. end;
  5144. end;
  5145. end;
  5146. else
  5147. if p26 == "a" then
  5148. u40 = true;
  5149. return;
  5150. end;
  5151. if p26 == "d" then
  5152. u41 = true;
  5153. end;
  5154. end;
  5155. end;
  5156. end;
  5157. end;
  5158. function KU(p27)
  5159. if p27 == string.char(32) then
  5160. u44 = false;
  5161. return;
  5162. end;
  5163. if p27 == string.char(48) then
  5164. u45 = false;
  5165. return;
  5166. end;
  5167. if p27 == string.char(50) then
  5168. if u23 == "Sitting" then
  5169. Stand();
  5170. return;
  5171. else
  5172. return;
  5173. end;
  5174. else
  5175. if p27 == string.char(52) then
  5176. u42 = false;
  5177. return;
  5178. end;
  5179. if p27 == "a" then
  5180.  
  5181. else
  5182. if p27 == "d" then
  5183. u41 = false;
  5184. end;
  5185. return;
  5186. end;
  5187. end;
  5188. u40 = false;
  5189. end;
  5190. l__mouse__2.KeyDown:connect(function(p28)
  5191. KD(p28);
  5192. end);
  5193. l__mouse__2.KeyUp:connect(function(p29)
  5194. KU(p29);
  5195. end);
  5196. u17 = Instance.new("Motor", u4);
  5197. GetWeld(u17);
  5198. u18 = Instance.new("Motor", u4);
  5199. GetWeld(u18);
  5200. u19 = Instance.new("Motor", u4);
  5201. GetWeld(u19);
  5202. u20 = Instance.new("Motor", u4);
  5203. GetWeld(u20);
  5204. u21 = Instance.new("Motor", u4);
  5205. GetWeld(u21);
  5206. Stand();
  5207. local v298 = Instance.new("BodyGyro");
  5208. v298.D = 100;
  5209. local v299 = {};
  5210. local v300 = {};
  5211. for v301 = 1, 13 do
  5212. local v302 = v26:Clone();
  5213. v302.Name = "Part" .. v301;
  5214. local v303 = Instance.new("SpecialMesh", v302);
  5215. v303.MeshId = "http://www.roblox.com/Asset/?id=9856898";
  5216. v303.TextureId = "http://www.roblox.com/Asset/?id=48358980";
  5217. table.insert(v299, { v302, v303 });
  5218. end;
  5219. for v304 = 1, 13 do
  5220. local v305 = v26:Clone();
  5221. v305.Name = "Part" .. v304;
  5222. local v306 = Instance.new("SpecialMesh", v305);
  5223. v306.MeshId = "http://www.roblox.com/Asset/?id=9856898";
  5224. v306.TextureId = "http://www.roblox.com/Asset/?id=48358980";
  5225. table.insert(v300, { v305, v306 });
  5226. end;
  5227. local u46 = "Idle";
  5228. local u47 = 0;
  5229. local u48 = 0.01;
  5230. local u49 = true;
  5231. local u50 = 0;
  5232. local u51 = 95;
  5233. local u52 = tick();
  5234. local u53 = 0;
  5235. local u54 = (u6.CFrame * CFrame.new(0, -1, 0)).p;
  5236. local u55 = (u5.CFrame * CFrame.new(0, -1, 0)).p;
  5237. local u56 = 0;
  5238. local l__CurrentCamera__57 = workspace.CurrentCamera;
  5239. local u58 = "Idle";
  5240. game:service("RunService").Stepped:connect(function()
  5241. u46 = "Idle";
  5242. u47 = u47 + 3;
  5243. u47 = u47 % 360;
  5244. if math.pi < u48 then
  5245. u49 = false;
  5246. elseif u48 < -math.pi then
  5247. u49 = true;
  5248. end;
  5249. if u49 == true then
  5250. u48 = u48 + u50;
  5251. elseif u49 == false then
  5252. u48 = u48 - u50;
  5253. end;
  5254. local v307, v308 = RAY(u4.Position, Vector3.new(0, -3.9, 0));
  5255. if u45 == true then
  5256. u10.WalkSpeed = u33;
  5257. else
  5258. u10.WalkSpeed = 16;
  5259. end;
  5260. if u51 >= 70 and u51 < 74 and Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude > 25 then
  5261. u51 = u51 + 1;
  5262. elseif u51 <= 74 and u51 > 70 and Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude < 20 then
  5263. u51 = u51 - 1;
  5264. end;
  5265. if v23.Value == true then
  5266. u10.WalkSpeed = 0;
  5267. end;
  5268. if u22 == true then
  5269. local v309, v310 = RAY(u4.Position, Vector3.new(0, -2.2, 0));
  5270. u10.PlatformStand = true;
  5271. if v309 == nil then
  5272. Stand();
  5273. end;
  5274. end;
  5275. if u24 == true then
  5276. u10.PlatformStand = true;
  5277. u28.velocity = Vector3.new(u26.x * (u33 + 2), u25, u26.z * (u33 + 2));
  5278. u29.cframe = CFrame.new(u4.Position, u4.Position + u28.velocity) * CFrame.Angles(-math.pi / 2, 0, 0);
  5279. if u25 > -180 then
  5280. u25 = u25 - 2;
  5281. end;
  5282. end;
  5283. if u30 > 0 then
  5284. u30 = u30 - 1;
  5285. end;
  5286. if u31 == true then
  5287. if u37 == false then
  5288. u25 = u25 - 0.4;
  5289. else
  5290. u25 = u25 - 2;
  5291. end;
  5292. elseif u31 == "Jumping" then
  5293. u25 = u25 - 1.7;
  5294. end;
  5295. if Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude > 18 and u23 == "Standing" and u45 == true then
  5296. if u2 > 0 then
  5297. u2 = u2 - 0.5;
  5298. if u2 < 0 then
  5299. u45 = false;
  5300. u2 = 0;
  5301. end;
  5302. else
  5303. u45 = false;
  5304. u2 = 0;
  5305. end;
  5306. if u23 == "Standing" then
  5307. u50 = 0.85;
  5308. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 4.85, 0, 0));
  5309. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 4.85, 0, 0));
  5310. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(u48 / 3.5, 0, 0));
  5311. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(-u48 / 3.5, 0, 0));
  5312. end;
  5313. elseif Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude > 12 and u23 ~= "Sliding" then
  5314. if u2 < 100000 then
  5315. u2 = u2 + 0.5;
  5316. if u2 > 100000 then
  5317. u2 = 100000;
  5318. end;
  5319. else
  5320. u2 = 100000;
  5321. end;
  5322. if u23 == "Standing" then
  5323. u50 = 0.65;
  5324. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 7, 0, 0));
  5325. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 7, 0, 0));
  5326. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(u48 / 5, 0, 0));
  5327. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(-u48 / 5, 0, 0));
  5328. end;
  5329. elseif Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude < 2 then
  5330. u50 = 0.1;
  5331. if u23 == "Standing" then
  5332. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 38, 0, 0));
  5333. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 38, 0, 0));
  5334. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(u48 / 30, 0, 0));
  5335. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(-u48 / 30, 0, 0));
  5336. end;
  5337. if u2 < 100000 then
  5338. if u22 == false then
  5339. u2 = u2 + 0.65;
  5340. else
  5341. u2 = u2 + 1.02;
  5342. end;
  5343. if u2 > 100000 then
  5344. u2 = 100000;
  5345. end;
  5346. else
  5347. u2 = 100000;
  5348. end;
  5349. end;
  5350. if v307 == nil then
  5351. if not (u4.Velocity.y > 1) then
  5352. if u4.Velocity.y < -1 and u4.Velocity.y > -90 and u23 == "Standing" then
  5353. u46 = "Rising";
  5354. u50 = 0.1;
  5355. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 38, 0, 0));
  5356. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 38, 0, 0));
  5357. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + u48 / 30, 0, 0));
  5358. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + -u48 / 30, 0, 0));
  5359. if v298.Parent ~= nil then
  5360. v298.Parent = u4;
  5361. v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
  5362. local v311 = u4.CFrame.lookVector * 100;
  5363. v298.cframe = CFrame.new(v16, Vector3.new(v311.x, 0, v311.z));
  5364. v298.Parent = nil;
  5365. end;
  5366. end;
  5367. elseif u23 == "Standing" then
  5368. u46 = "Rising";
  5369. u50 = 0.1;
  5370. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 38, 0, 0));
  5371. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 38, 0, 0));
  5372. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + u48 / 30, 0, 0));
  5373. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + -u48 / 30, 0, 0));
  5374. if v298.Parent ~= nil then
  5375. v298.Parent = u4;
  5376. v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
  5377. v311 = u4.CFrame.lookVector * 100;
  5378. v298.cframe = CFrame.new(v16, Vector3.new(v311.x, 0, v311.z));
  5379. v298.Parent = nil;
  5380. end;
  5381. end;
  5382. end;
  5383. if v307 == nil then
  5384. local v312, v313 = RAY(u4.Position, Vector3.new(0, -6, 0));
  5385. if v312 == nil then
  5386. if u4.Velocity.y < -90 and u23 == "Standing" then
  5387. u46 = "Falling";
  5388. u50 = 1.1;
  5389. v298.Parent = u4;
  5390. v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
  5391. local v314 = u4.CFrame.lookVector * 100;
  5392. v298.cframe = CFrame.new(v16, Vector3.new(v314.x, 0, v314.z)) * CFrame.Angles(-math.pi / 11, u48 / 70, 0);
  5393. SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.45, -0.8, 0), Vector3.new(u48 / 27 - 0.3, 0, 0.18));
  5394. SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.45, -0.8, 0), Vector3.new(-u48 / 27 - 0.3, 0, -0.18));
  5395. SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.5, 0), Vector3.new(math.pi + 0.2 + u48 / 26, 0, 0.18));
  5396. SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.5, 0), Vector3.new(math.pi + 0.2 + -u48 / 26, 0, -0.18));
  5397. end;
  5398. elseif v312.CanCollide == true and v298.Parent ~= nil then
  5399. v298.Parent = u4;
  5400. v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
  5401. local v315 = u4.CFrame.lookVector * 100;
  5402. v298.cframe = CFrame.new(v16, Vector3.new(v315.x, 0, v315.z));
  5403. v298.Parent = nil;
  5404. end;
  5405. end;
  5406. if u46 == "Idle" and v298.Parent ~= nil then
  5407. v298.Parent = nil;
  5408. end;
  5409. if math.abs(u52 - tick()) > 0.05 then
  5410. u52 = tick();
  5411. local v316 = HSV(u47, 0.7, 1);
  5412. u53 = u53 % #v299 + 1;
  5413. if v24.Value > 25 then
  5414. local l__p__317 = (u6.CFrame * CFrame.new(0, -1, 0)).p;
  5415. local l__p__318 = (u5.CFrame * CFrame.new(0, -1, 0)).p;
  5416. local v319 = v299[u53];
  5417. v319[1].Parent = v25;
  5418. v319[1].CFrame = CFrame.new((l__p__317 + u54) / 2, l__p__317);
  5419. v319[2].Scale = Vector3.new(0.5, 0.5, (l__p__317 - u54).magnitude * 2);
  5420. v319[2].VertexColor = Vector3.new(v316.r, v316.g, v316.b);
  5421. v319[1].Transparency = math.abs(v24.Value / 120 - 0.8);
  5422. v319[1].Transparency = v319[1].Transparency + 1 / #v299;
  5423. local v320 = v300[u53];
  5424. v320[1].Parent = v25;
  5425. v320[1].CFrame = CFrame.new((l__p__318 + u55) / 2, l__p__318);
  5426. v320[2].Scale = Vector3.new(0.5, 0.5, (l__p__318 - u55).magnitude * 2);
  5427. v320[2].VertexColor = Vector3.new(v316.r, v316.g, v316.b);
  5428. v320[1].Transparency = math.abs(v24.Value / 120 - 0.8);
  5429. v320[1].Transparency = v320[1].Transparency + 1 / #v299;
  5430. end;
  5431. for v321, v322 in pairs(v299) do
  5432. if v322[1].Transparency < 0.9 then
  5433. v322[1].Transparency = v322[1].Transparency + 1 / #v299;
  5434. v300[v321][1].Transparency = v300[v321][1].Transparency + 1 / #v299;
  5435. elseif v322[1].Transparency ~= 1 then
  5436. v322[1].Transparency = 1;
  5437. v322[1].Position = Vector3.new(50000, 0, 0);
  5438. v300[v321][1].Transparency = 1;
  5439. v300[v321][1].Position = Vector3.new(50000, 0, 0);
  5440. end;
  5441. end;
  5442. u55 = (u5.CFrame * CFrame.new(0, -1, 0)).p;
  5443. u54 = (u6.CFrame * CFrame.new(0, -1, 0)).p;
  5444. end;
  5445. if v24.Value > 140 and u3.Parent ~= nil then
  5446. u3:remove();
  5447. end;
  5448. if u56 > 0 then
  5449. u56 = u56 - 1;
  5450. end;
  5451. if u34 > 0 then
  5452. u34 = u34 - 1;
  5453. end;
  5454. if u36 > 0 and v307 ~= nil and u36 > 0 then
  5455. u36 = u36 - 1;
  5456. end;
  5457. if u43 > 0 then
  5458. u43 = u43 - 1;
  5459. end;
  5460. if u23 == "HWallRunning" or u23 == "VWallRunning" then
  5461. v24.Value = v24.Value + 0.15;
  5462. if v24.Value > 100 then
  5463. v24.Value = 100;
  5464. end;
  5465. u56 = 40;
  5466. elseif u23 == "Diving" then
  5467. u56 = 30;
  5468. elseif u23 == "Sliding" then
  5469. u56 = 15;
  5470. elseif (u23 == "Standing" or u23 == "Sitting") and v24.Value > 0 and u56 <= 0 then
  5471. v24.Value = v24.Value - 0.19;
  5472. if v24.Value < 0 then
  5473. v24.Value = 0;
  5474. end;
  5475. end;
  5476. l__CurrentCamera__57.FieldOfView = u51;
  5477. prevanimbgcount = 0;
  5478. u33 = 32 + v24.Value / 100 * 2.4;
  5479. u58 = u46;
  5480. Calculate();
  5481. end);
  5482.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement