Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Decompiled with the Synapse X Luau decompiler.
- wait(1);
- local l__LocalPlayer__1 = game:service("Players").LocalPlayer;
- while true do
- wait();
- if l__LocalPlayer__1.Character then
- break;
- end;
- end;
- local l__mouse__2 = l__LocalPlayer__1:GetMouse();
- local l__Character__3 = l__LocalPlayer__1.Character;
- local v4 = l__Character__3:findFirstChild("Torso");
- local v5 = l__Character__3:findFirstChild("Right Arm");
- local v6 = l__Character__3:findFirstChild("Left Arm");
- local v7 = l__Character__3:findFirstChild("Right Leg");
- local v8 = l__Character__3:findFirstChild("Left Leg");
- local v9 = l__Character__3:findFirstChild("Head");
- local v10 = l__Character__3:findFirstChild("Humanoid");
- local v11 = v4:findFirstChild("Right Shoulder");
- local v12 = v4:findFirstChild("Left Shoulder");
- local v13 = v4:findFirstChild("Right Hip");
- local v14 = v4:findFirstChild("Left Hip");
- local v15 = v4:findFirstChild("Neck");
- local v16 = Vector3.new(0, 0, 0);
- local v17 = CFrame.new(0, 0, 0);
- local v18, v19, v20 = pairs(l__Character__3:children());
- while true do
- local v21, v22 = v18(v19, v20);
- if not v21 then
- break;
- end;
- 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
- v22:remove();
- end;
- end;
- v10:ClearAllChildren();
- local v23 = Instance.new("BoolValue", l__Character__3);
- v23.Name = "Pause";
- v23.Value = false;
- local v24 = Instance.new("NumberValue", l__Character__3);
- v24.Name = "Flow";
- v24.Value = 0;
- local v25 = Instance.new("Model", l__Character__3);
- v25.Name = "FlowChainPartz";
- local v26 = Instance.new("Part");
- v26.Name = "TrailPart";
- v26.formFactor = "Custom";
- v26.Size = Vector3.new(0.2, 0.2, 0.2);
- v26.Locked = true;
- v26.Anchored = true;
- v26.CanCollide = false;
- v26.TopSurface = 0;
- v26.BottomSurface = 0;
- script.Name = "ParkourSkrip";
- function HSV(p1, p2, p3)
- p1 = p1 % 360;
- local v27 = p3 * p2;
- local v28 = p1 / 60;
- local v29 = v27 * (1 - math.abs(v28 % 2 - 1));
- local v30 = Color3.new(0, 0, 0);
- if v28 <= 0 then
- v30 = Color3.new(v27, 0, 0);
- elseif 0 <= v28 then
- if v28 <= 1 then
- v30 = Color3.new(v27, v29, 0);
- elseif 1 <= v28 then
- if v28 <= 2 then
- v30 = Color3.new(v29, v27, 0);
- elseif 2 <= v28 then
- if v28 <= 3 then
- v30 = Color3.new(0, v27, v29);
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 2 <= v28 then
- if v28 <= 3 then
- v30 = Color3.new(0, v27, v29);
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 1 <= v28 then
- if v28 <= 2 then
- v30 = Color3.new(v29, v27, 0);
- elseif 2 <= v28 then
- if v28 <= 3 then
- v30 = Color3.new(0, v27, v29);
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 2 <= v28 then
- if v28 <= 3 then
- v30 = Color3.new(0, v27, v29);
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 3 <= v28 then
- if v28 <= 4 then
- v30 = Color3.new(0, v29, v27);
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 4 <= v28 then
- if v28 <= 5 then
- v30 = Color3.new(v29, 0, v27);
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- elseif 5 <= v28 then
- if v28 <= 6 then
- v30 = Color3.new(v27, 0, v29);
- end;
- end;
- local v31 = p3 - v27;
- return Color3.new(v30.r + v31, v30.g + v31, v30.b + v31);
- end;
- function GetWeld(p4)
- if p4:findFirstChild("XAngle") == nil then
- Instance.new("NumberValue", p4).Name = "XAngle";
- end;
- if p4:findFirstChild("YAngle") == nil then
- Instance.new("NumberValue", p4).Name = "YAngle";
- end;
- if p4:findFirstChild("ZAngle") == nil then
- Instance.new("NumberValue", p4).Name = "ZAngle";
- end;
- return p4.C0.p, Vector3.new(p4.XAngle.Value, p4.YAngle.Value, p4.ZAngle.Value);
- end;
- function SetWeld(p5, p6, p7, p8, p9, p10, p11)
- if p5:findFirstChild("XAngle") == nil then
- Instance.new("NumberValue", p5).Name = "XAngle";
- end;
- if p5:findFirstChild("YAngle") == nil then
- Instance.new("NumberValue", p5).Name = "YAngle";
- end;
- if p5:findFirstChild("ZAngle") == nil then
- Instance.new("NumberValue", p5).Name = "ZAngle";
- end;
- if p11.x < p9.x then
- local v32 = -math.abs(p9.x - p11.x) / p7 * p6;
- else
- v32 = math.abs(p9.x - p11.x) / p7 * p6;
- end;
- if p11.y < p9.y then
- local v33 = -math.abs(p9.y - p11.y) / p7 * p6;
- else
- v33 = math.abs(p9.y - p11.y) / p7 * p6;
- end;
- if p11.z < p9.z then
- local v34 = -math.abs(p9.z - p11.z) / p7 * p6;
- else
- v34 = math.abs(p9.z - p11.z) / p7 * p6;
- end;
- if p10.x < p8.x then
- local v35 = -math.abs(p8.x - p10.x) / p7 * p6;
- else
- v35 = math.abs(p8.x - p10.x) / p7 * p6;
- end;
- if p10.y < p8.y then
- local v36 = -math.abs(p8.y - p10.y) / p7 * p6;
- else
- v36 = math.abs(p8.y - p10.y) / p7 * p6;
- end;
- if p10.z < p8.z then
- local v37 = -math.abs(p8.z - p10.z) / p7 * p6;
- else
- v37 = math.abs(p8.z - p10.z) / p7 * p6;
- end;
- p5.XAngle.Value = p9.x + v32;
- p5.YAngle.Value = p9.y + v33;
- p5.ZAngle.Value = p9.z + v34;
- p5.C0 = CFrame.new(p8.x + v35, p8.y + v36, p8.z + v37) * CFrame.Angles(p9.x + v32, p9.y + v33, p9.z + v34);
- end;
- local u1 = { 112474909, 112474911, 112474909 };
- function LoadTextures()
- local v38 = game:service("ContentProvider");
- local v39, v40, v41 = pairs(u1);
- while true do
- local v42, v43 = v39(v40, v41);
- if v42 then
- else
- break;
- end;
- v41 = v42;
- v38:Preload("http://www.roblox.com/asset/?id=" .. v43);
- wait(0.04);
- end;
- end;
- LoadTextures();
- local u2 = 100000;
- function CreateGui()
- local v44, v45, v46 = pairs(l__LocalPlayer__1.PlayerGui:children());
- while true do
- local v47, v48 = v44(v45, v46);
- if v47 then
- else
- break;
- end;
- v46 = v47;
- if v48.className == "ScreenGui" then
- if v48.Name == "staminaGui" then
- v48:remove();
- end;
- end;
- end;
- local v49 = Instance.new("ScreenGui", l__LocalPlayer__1.PlayerGui);
- v49.Name = "staminaGui";
- local v50 = Instance.new("Frame", v49);
- v50.Visible = false;
- v50.Size = UDim2.new(0, 86, 0, 320);
- v50.BackgroundTransparency = 1;
- v50.Position = UDim2.new(1, -96, 0.5, -160);
- v50.Name = "Container";
- local v51 = Instance.new("TextLabel", v50);
- v51.Size = UDim2.new(0, 0, -0.1, 0);
- v51.Position = UDim2.new(0.3, 0, 0.5, 0);
- v51.TextXAlignment = "Right";
- v51.Font = "ArialBold";
- v51.TextTransparency = 1;
- v51.TextColor3 = Color3.new(0, 0.6, 0.8);
- v51.TextStrokeColor3 = Color3.new(0, 0.2, 0.8);
- v51.TextStrokeTransparency = 0.3;
- v51.FontSize = 6;
- v51.BackgroundTransparency = 1;
- local v52 = v51:Clone();
- v52.Parent = v50;
- v52.Size = UDim2.new(0, 0, 0.1, 0);
- local v53 = v51:Clone();
- v53.Parent = v50;
- v53.Size = UDim2.new(0, 0, 0, 0);
- v53.Text = "-----";
- v53.TextTransparency = 1;
- local v54 = Instance.new("Frame", v50);
- v54.Name = "Backing";
- v54.ClipsDescendants = true;
- v54.Size = UDim2.new(1, 0, 0, 0);
- v54.BackgroundColor3 = Color3.new(0.8, 0, 0);
- v54.BackgroundTransparency = 1;
- local v55 = Instance.new("ImageLabel", v54);
- v55.BackgroundTransparency = 1;
- v55.Image = "http://www.roblox.com/asset/?id=112474909";
- v55.Size = UDim2.new(1, 0, 0, v50.Size.Y.Offset);
- v55.Visible = false;
- local v56 = Instance.new("Frame", v50);
- v56.Name = "Overlay";
- v56.ClipsDescendants = true;
- v56.Size = UDim2.new(1, 0, 1, 0);
- v56.BackgroundColor3 = Color3.new(0, 0, 0.8);
- v56.BackgroundTransparency = 1;
- local v57 = Instance.new("ImageLabel", v56);
- v57.BackgroundTransparency = 1;
- v57.Image = "http://www.roblox.com/asset/?id=112474911";
- v57.Size = UDim2.new(1, 0, 0, v50.Size.Y.Offset);
- v57.Visible = false;
- function Calculate()
- local l__Offset__58 = v50.Size.Y.Offset;
- local v59 = -(u2 / 100000 - 1) * v50.Size.Y.Offset;
- v54.Size = UDim2.new(1, 0, 0, v59);
- v56.Size = UDim2.new(1, 0, 0, u2 / 100000 * v50.Size.Y.Offset);
- v56.Position = UDim2.new(0, 0, 0, v59);
- v57.Position = UDim2.new(0, 0, 0, -v59);
- v51.Text = math.floor(u2);
- v52.Text = 100000;
- end;
- Calculate();
- wait(0.01);
- v50.Visible = true;
- end;
- CreateGui();
- local u3 = l__Character__3;
- local u4 = v4;
- local u5 = v5;
- local u6 = v6;
- local u7 = v7;
- local u8 = v8;
- local u9 = v9;
- local u10 = v10;
- local u11 = v11;
- local u12 = v12;
- local u13 = v13;
- local u14 = v14;
- local u15 = v15;
- l__LocalPlayer__1.CharacterAdded:connect(function()
- u3 = l__LocalPlayer__1.Character;
- u4 = u3:findFirstChild("Torso");
- u5 = u3:findFirstChild("Right Arm");
- u6 = u3:findFirstChild("Left Arm");
- u7 = u3:findFirstChild("Right Leg");
- u8 = u3:findFirstChild("Left Leg");
- u9 = u3:findFirstChild("Head");
- u10 = u3:findFirstChild("Humanoid");
- u11 = u4:findFirstChild("Right Shoulder");
- u12 = u4:findFirstChild("Left Shoulder");
- u13 = u4:findFirstChild("Right Hip");
- u14 = u4:findFirstChild("Left Hip");
- u15 = u4:findFirstChild("Neck");
- u2 = 100000;
- CreateGui();
- end);
- function RAY(p12, p13, p14, p15, p16, p17)
- local v60 = nil;
- local v61 = nil;
- p17 = p17 or { u3 };
- p14 = p14 and p12;
- p16 = p16 or p13.unit * p13.magnitude;
- p15 = p15 or p12 + p16;
- local v62, v63, v64 = workspace:FindPartOnRayWithIgnoreList(Ray.new(p12, p16), p17);
- if v62 ~= nil then
- if v62.CanCollide == false then
- table.insert(p17, v62);
- v60 = v63;
- v61 = p16 - p13.unit * (p12 - v60).magnitude;
- if v61 ~= v16 then
- else
- return v62, v63, v64;
- end;
- else
- return v62, v63, v64;
- end;
- else
- return v62, v63, v64;
- end;
- return RAY(v60 - p13 * 0.01, p13, p14, p15, v61 + p13 * 0.01, p17);
- end;
- local u16 = true;
- local u17 = nil;
- local u18 = nil;
- local u19 = nil;
- local u20 = nil;
- local u21 = nil;
- local u22 = false;
- local u23 = "Standing";
- function Sit()
- u16 = false;
- local v65, v66 = RAY(u4.Position, Vector3.new(0, -4.1, 0));
- local v67 = Vector3.new(u4.CFrame.lookVector.x, 0, u4.CFrame.lookVector.z);
- if v65 ~= nil then
- if v65.CanCollide == true then
- 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);
- local v69, v70 = RAY(v66 + Vector3.new(0, 2.25, 0), v67 * -2.2);
- u10.PlatformStand = true;
- u4.CFrame = v68;
- local v71 = Instance.new("BodyPosition", u4);
- v71.Name = "StaminaBodyObject";
- v71.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v71.D = 100;
- v71.position = v68.p;
- local v72 = Instance.new("BodyGyro", u4);
- v72.Name = "StaminaBodyObject";
- v72.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v72.cframe = v68;
- v72.D = 100;
- 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));
- 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));
- if v69 ~= nil then
- if v69.CanCollide == true then
- 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);
- 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);
- u21.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-math.pi / 8.8, 0, 0);
- else
- 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));
- 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));
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 12, 0, 0));
- end;
- else
- 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));
- 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));
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 12, 0, 0));
- end;
- u22 = true;
- u23 = "Sitting";
- end;
- end;
- end;
- local u24 = false;
- function Stand()
- u10.PlatformStand = false;
- if u22 == true then
- local v73 = u4.Position + u4.CFrame.lookVector * 10000;
- u4.CFrame = CFrame.new(u4.Position + Vector3.new(0, 1.8, 0), Vector3.new(v73.x, u4.Position.y, v73.z));
- end;
- local v74, v75, v76 = pairs(u4:children());
- while true do
- local v77, v78 = v74(v75, v76);
- if v77 then
- else
- break;
- end;
- v76 = v77;
- if v78.Name == "StaminaBodyObject" then
- v78:remove();
- end;
- end;
- u13.Part0 = nil;
- u14.Part0 = nil;
- u11.Part0 = nil;
- u12.Part0 = nil;
- u17.Part0 = u4;
- u17.Part1 = u7;
- u17.C0 = CFrame.new(0.5, -1, 0);
- u17.C1 = CFrame.new(0, 1, 0);
- u18.Part0 = u4;
- u18.Part1 = u8;
- u18.C0 = CFrame.new(-0.5, -1, 0);
- u18.C1 = CFrame.new(0, 1, 0);
- u19.Part0 = u4;
- u19.Part1 = u5;
- u19.C0 = CFrame.new(1.5, 0.5, 0);
- u19.C1 = CFrame.new(0, 0.5, 0);
- u20.Part0 = u4;
- u20.Part1 = u6;
- u20.C0 = CFrame.new(-1.5, 0.5, 0);
- u20.C1 = CFrame.new(0, 0.5, 0);
- u21.Part0 = u4;
- u21.Part1 = u9;
- u21.C0 = CFrame.new(0, 1, 0);
- u21.C1 = CFrame.new(0, -0.5, 0);
- u22 = false;
- u24 = false;
- u16 = true;
- u23 = "Standing";
- end;
- local u25 = 0;
- local u26 = v16;
- local u27 = v17;
- local u28 = nil;
- local u29 = nil;
- local u30 = 0;
- function Dive()
- u2 = u2 - 10;
- v24.Value = v24.Value + 10;
- if 100 < v24.Value then
- v24.Value = 100;
- end;
- u16 = false;
- local v79 = Vector3.new(u4.CFrame.lookVector.x, 0, u4.CFrame.lookVector.z);
- u25 = 18;
- u26 = v79;
- u27 = CFrame.new(u4.Position, v79 + Vector3.new(0, u4.Position.y, 0));
- u26 = v79;
- u10.PlatformStand = true;
- local v80 = Instance.new("BodyVelocity", u4);
- v80.Name = "StaminaBodyObject";
- v80.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v80.velocity = Vector3.new(u26.x * 24, u25, u26.z * 24);
- u28 = v80;
- local v81 = Instance.new("BodyGyro", u4);
- v81.Name = "StaminaBodyObject";
- v81.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v81.cframe = CFrame.new(u4.Position, u4.Position + v80.velocity) * CFrame.Angles(-math.pi / 2, 0, 0);
- v81.D = 100;
- u29 = v81;
- u19.C1 = CFrame.new(0, 0.5, 0);
- u20.C1 = CFrame.new(0, 0.5, 0);
- u17.C1 = CFrame.new(0, 1, 0);
- u18.C1 = CFrame.new(0, 1, 0);
- u24 = true;
- u23 = "Diving";
- local v82 = 1 - 1;
- while true do
- 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));
- 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));
- 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));
- 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));
- SetWeld(u21, v82, 8, Vector3.new(0, 1, 0), v16, Vector3.new(0, 1, 0), Vector3.new(0.45, 0, 0));
- wait(0.025);
- if 0 <= 1 then
- if v82 < 8 then
- else
- break;
- end;
- elseif 8 < v82 then
- else
- break;
- end;
- v82 = v82 + 1;
- end;
- local v83 = 0;
- while true do
- if u24 == true then
- else
- break;
- end;
- v83 = v83 + 1;
- v81.Parent = u4;
- local v84, v85 = RAY(u4.Position, v80.velocity.unit * 4.6);
- if v84 ~= nil then
- if v84.CanCollide == true then
- local v86, v87 = RAY(u4.Position, Vector3.new(0, -4, 0));
- if v86 ~= nil then
- else
- u4.CFrame = u4.CFrame * CFrame.new(0, -0.3, 0);
- u4.Velocity = v16;
- v24.Value = 0;
- break;
- end;
- u24 = "Rolling";
- u23 = "DiveRolling";
- end;
- end;
- if not (190 < v83) then
- else
- break;
- end;
- wait(0.02);
- end;
- v80.velocity = v79 * 20 + Vector3.new(0, -0.5, 0);
- local l__cframe__88 = v81.cframe;
- local v89 = false;
- local v90 = 0;
- while true do
- local v91 = nil;
- if v89 == false then
- else
- break;
- end;
- v81.cframe = l__cframe__88 * CFrame.Angles(-0.3 * v90, 0, 0);
- local v92, v93 = RAY(u4.Position, ((u4.CFrame * CFrame.new(0, -1, 0)).p - u4.CFrame.p).unit * 1.6);
- if v92 ~= nil then
- if v92.CanCollide == true then
- v89 = true;
- end;
- end;
- local v94 = nil;
- v94, v91 = RAY(u4.Position, Vector3.new(0, -3.8, 0));
- if v94 == nil then
- u4.Velocity = v16;
- break;
- end;
- if v89 == true then
- local v95 = Instance.new("BodyPosition", u4);
- v95.Name = "StaminaJumpFix";
- v95.maxForce = Vector3.new(0, (1 / 0), 0);
- v95.P = 7000;
- v95.position = v91 + Vector3.new(0, 2.8, 0);
- game:service("Debris"):AddItem(v95, 0.3);
- else
- v80.velocity = v79 * 20 + Vector3.new(0, -(u4.Position - v91).magnitude * 3, 0);
- end;
- v90 = v90 + 1;
- if v90 <= 6 then
- local v96, v97 = GetWeld(u19);
- local v98, v99 = GetWeld(u20);
- local v100, v101 = GetWeld(u17);
- local v102, v103 = GetWeld(u18);
- local v104, v105 = GetWeld(u21);
- 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));
- 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));
- SetWeld(u17, v90, 6, v100, v101, Vector3.new(0.51, 0.4, -0.6), Vector3.new(-0.1, 0, 0.05));
- SetWeld(u18, v90, 6, v102, v103, Vector3.new(-0.51, 0.4, -0.6), Vector3.new(-0.1, 0, -0.05));
- SetWeld(u21, v90, 6, v104, v105, Vector3.new(0, 1, 0), Vector3.new(-0.4, 0, 0));
- elseif not (50 <= v90) then
- else
- break;
- end;
- wait(0.02);
- end;
- u4.Velocity = v16;
- Stand();
- u30 = 9;
- end;
- local u31 = false;
- local u32 = nil;
- local u33 = 32;
- local u34 = 0;
- local u35 = nil;
- local u36 = 0;
- local u37 = false;
- function HWallRun(p18, p19, p20, p21)
- if p18.className == "Part" then
- if p18.Shape ~= Enum.PartType.Block then
- if p18.className ~= "Part" then
- v24.Value = v24.Value + 9;
- u16 = false;
- u31 = true;
- u23 = "HWallRunning";
- u25 = 10;
- u32 = p18;
- towall = -p20;
- p20 = (CFrame.new(v16, p20) * CFrame.Angles(0, p21, 0)).lookVector;
- local v106 = Instance.new("BodyVelocity", u4);
- v106.Name = "StaminaBodyObject";
- v106.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v106.P = 9000;
- v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
- local v107 = Instance.new("BodyGyro", u4);
- v107.Name = "StaminaBodyObject";
- v107.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v107.cframe = CFrame.new(u4.Position + towall * -2, u4.Position) * CFrame.Angles(0, -p21, -p21 / 4.2);
- v107.D = 100;
- local v108 = Instance.new("Motor");
- if p21 == -math.pi / 2 then
- 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));
- else
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, math.pi / 7));
- end;
- local l__C0__109 = u19.C0;
- if p21 == math.pi / 2 then
- 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));
- else
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, -math.pi / 7));
- end;
- local l__C0__110 = u20.C0;
- u17.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.38, -0.3), Vector3.new(0, math.pi / 2, 0.14));
- else
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.8, -0.2), Vector3.new(0, math.pi / 2, 0.2));
- end;
- u18.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.8, -0.2), Vector3.new(0, 0, 0.2));
- else
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.38, -0.3), Vector3.new(0, 0, 0.14));
- end;
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 0.9, 0), Vector3.new(0, 0, p21 / 7));
- u4.CFrame = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v107.cframe = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
- local v111 = 0;
- local v112 = true;
- local v113 = 0;
- local v114 = true;
- local v115 = p18;
- u32 = p18;
- while true do
- if u31 == true then
- else
- break;
- end;
- if math.pi < v111 then
- v112 = false;
- elseif v111 < -math.pi then
- v112 = true;
- end;
- if v112 == true then
- v111 = v111 + 0.95;
- elseif v112 == false then
- v111 = v111 - 0.95;
- end;
- if math.pi < v113 then
- v114 = false;
- elseif v113 < -math.pi then
- v114 = true;
- end;
- if v114 == true then
- v113 = v113 + 0.23;
- elseif v114 == false then
- v113 = v113 - 0.23;
- end;
- u10.PlatformStand = true;
- local v116, v117, v118 = RAY(u4.Position, Vector3.new(0, -3, 0));
- local v119, v120, v121 = RAY(u4.Position, towall * 3.4);
- if v116 ~= nil then
- if v116.CanCollide == true then
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
- 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);
- u4.Velocity = v16;
- break;
- end;
- end;
- if v119 ~= nil then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- if v119.CanCollide == true then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- if v119 ~= v115 then
- 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);
- if v122 ~= nil then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
- towall = -v124;
- local l__lookVector__125 = (CFrame.new(v16, v124) * CFrame.Angles(0, p21, 0)).lookVector;
- v115 = v119;
- u32 = v119;
- end;
- u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
- local v126, v127, v128 = RAY(u4.Position, u4.CFrame.lookVector * 2);
- if v126 ~= nil then
- if v126.CanCollide == true then
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- end;
- v106.Parent = u4;
- v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
- v107.cframe = v107.cframe * CFrame.Angles(v111 / 80, v111 / 80, 0);
- u4.CFrame = u4.CFrame * CFrame.Angles(v111 / 80, v111 / 80, 0);
- local v129, v130 = GetWeld(u17);
- local v131, v132 = GetWeld(u18);
- SetWeld(u17, 1, 1, v129, v130, v129, Vector3.new(-0.2 + v111 / 4, 0, 0));
- SetWeld(u18, 1, 1, v131, v132, v131, Vector3.new(-0.2 + -v111 / 4, 0, 0));
- if p21 == math.pi / 2 then
- local v133, v134 = GetWeld(u19);
- SetWeld(u19, 1, 1, v133, v134, v133, Vector3.new(0, 0, 0.8 + v113 / 14));
- else
- local v135, v136 = GetWeld(u20);
- SetWeld(u20, 1, 1, v135, v136, v135, Vector3.new(0, 0, -0.8 - v113 / 14));
- end;
- wait(0.025);
- if u25 < -100 then
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
- 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);
- break;
- end;
- end;
- if u31 == "Jumping" then
- u34 = 6;
- u19.C1 = CFrame.new(0, 0.5, 0);
- u20.C1 = CFrame.new(0, 0.5, 0);
- if p21 == -math.pi / 2 then
- u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 3);
- else
- u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
- end;
- u17.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, -math.pi / 4);
- else
- u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, math.pi / 4);
- end;
- u18.MaxVelocity = 10;
- u18.DesiredAngle = 0;
- u18.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, math.pi / 4);
- else
- u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
- end;
- u21.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(0, p21 / 2.4, 0);
- u21.C0 = CFrame.new(0, 1, 0);
- local v137, v138 = GetWeld(u19);
- local v139, v140 = GetWeld(u20);
- local v141, v142 = GetWeld(u17);
- local v143, v144 = GetWeld(u18);
- local v145, v146 = GetWeld(u21);
- u25 = 26;
- local v147 = 0;
- local v148 = p21 / 2;
- local v149 = 1;
- local l__lookVector__150 = (CFrame.new(v16, p20) * CFrame.Angles(0, -p21 / 2.4, 0)).lookVector;
- u35 = l__lookVector__150;
- v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
- while true do
- if u31 == "Jumping" then
- else
- break;
- end;
- local v151, v152 = RAY(u4.Position, Vector3.new(0, -4, 0));
- local v153, v154 = RAY(u4.Position, l__lookVector__150 * 1.4);
- if v151 ~= nil then
- if v151.CanCollide == true then
- local v155 = math.abs(v152.y - u4.CFrame.p.y);
- u4.CFrame = CFrame.new(v152 + Vector3.new(0, 2.9, 0), v152 + Vector3.new(0, 2.9, 0) + l__lookVector__150);
- u4.Velocity = v16;
- break;
- end;
- end;
- if v153 ~= nil then
- if v153.CanCollide == true then
- v147 = v147 + 1;
- if v147 == 4 then
- u4.CFrame = CFrame.new(u4.Position, u4.Position + l__lookVector__150) * CFrame.new(0, 0, 0.4);
- u4.Velocity = Vector3.new(0, u4.Velocity.y, 0);
- u34 = 5;
- u36 = 5;
- wait(0.02);
- break;
- end;
- end;
- end;
- if 0 < p21 / 2 then
- if 0.2 < v148 then
- v148 = v148 - 0.055;
- end;
- elseif v148 < -0.2 then
- v148 = v148 + 0.055;
- end;
- if v149 <= 5 then
- if p21 == -math.pi / 2 then
- SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 4));
- SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 3));
- SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u17.C0 = u17.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
- SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u18.C0 = u18.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
- else
- SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 3));
- SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 4));
- SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u17.C0 = u17.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
- SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u18.C0 = u18.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
- end;
- v149 = v149 + 1;
- end;
- v107.Parent = u4;
- v107.cframe = CFrame.new(v16, p20) * CFrame.Angles(0, p21 / 15, -v148);
- v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
- if v147 ~= 0 then
- v106.velocity = Vector3.new(0, v106.velocity.y, 0);
- end;
- if not (u25 < -120) then
- else
- break;
- end;
- wait(0.025);
- end;
- end;
- u10.PlatformStand = false;
- v106:remove();
- u37 = false;
- Stand();
- u31 = false;
- end;
- else
- v24.Value = v24.Value + 9;
- u16 = false;
- u31 = true;
- u23 = "HWallRunning";
- u25 = 10;
- u32 = p18;
- towall = -p20;
- p20 = (CFrame.new(v16, p20) * CFrame.Angles(0, p21, 0)).lookVector;
- v106 = Instance.new("BodyVelocity", u4);
- v106.Name = "StaminaBodyObject";
- v106.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v106.P = 9000;
- v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
- v107 = Instance.new("BodyGyro", u4);
- v107.Name = "StaminaBodyObject";
- v107.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v107.cframe = CFrame.new(u4.Position + towall * -2, u4.Position) * CFrame.Angles(0, -p21, -p21 / 4.2);
- v107.D = 100;
- v108 = Instance.new("Motor");
- if p21 == -math.pi / 2 then
- 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));
- else
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, math.pi / 7));
- end;
- l__C0__109 = u19.C0;
- if p21 == math.pi / 2 then
- 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));
- else
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, -math.pi / 7));
- end;
- l__C0__110 = u20.C0;
- u17.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.38, -0.3), Vector3.new(0, math.pi / 2, 0.14));
- else
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.8, -0.2), Vector3.new(0, math.pi / 2, 0.2));
- end;
- u18.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.8, -0.2), Vector3.new(0, 0, 0.2));
- else
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.38, -0.3), Vector3.new(0, 0, 0.14));
- end;
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 0.9, 0), Vector3.new(0, 0, p21 / 7));
- u4.CFrame = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v107.cframe = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v111 = 0;
- v112 = true;
- v113 = 0;
- v114 = true;
- v115 = p18;
- u32 = p18;
- while true do
- if u31 == true then
- else
- break;
- end;
- if math.pi < v111 then
- v112 = false;
- elseif v111 < -math.pi then
- v112 = true;
- end;
- if v112 == true then
- v111 = v111 + 0.95;
- elseif v112 == false then
- v111 = v111 - 0.95;
- end;
- if math.pi < v113 then
- v114 = false;
- elseif v113 < -math.pi then
- v114 = true;
- end;
- if v114 == true then
- v113 = v113 + 0.23;
- elseif v114 == false then
- v113 = v113 - 0.23;
- end;
- u10.PlatformStand = true;
- v116, v117, v118 = RAY(u4.Position, Vector3.new(0, -3, 0));
- v119, v120, v121 = RAY(u4.Position, towall * 3.4);
- if v116 ~= nil then
- if v116.CanCollide == true then
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
- 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);
- u4.Velocity = v16;
- break;
- end;
- end;
- if v119 ~= nil then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- if v119.CanCollide == true then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- if v119 ~= v115 then
- 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);
- if v122 ~= nil then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
- towall = -v124;
- l__lookVector__125 = (CFrame.new(v16, v124) * CFrame.Angles(0, p21, 0)).lookVector;
- v115 = v119;
- u32 = v119;
- end;
- u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v126, v127, v128 = RAY(u4.Position, u4.CFrame.lookVector * 2);
- if v126 ~= nil then
- if v126.CanCollide == true then
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- end;
- v106.Parent = u4;
- v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
- v107.cframe = v107.cframe * CFrame.Angles(v111 / 80, v111 / 80, 0);
- u4.CFrame = u4.CFrame * CFrame.Angles(v111 / 80, v111 / 80, 0);
- v129, v130 = GetWeld(u17);
- v131, v132 = GetWeld(u18);
- SetWeld(u17, 1, 1, v129, v130, v129, Vector3.new(-0.2 + v111 / 4, 0, 0));
- SetWeld(u18, 1, 1, v131, v132, v131, Vector3.new(-0.2 + -v111 / 4, 0, 0));
- if p21 == math.pi / 2 then
- v133, v134 = GetWeld(u19);
- SetWeld(u19, 1, 1, v133, v134, v133, Vector3.new(0, 0, 0.8 + v113 / 14));
- else
- v135, v136 = GetWeld(u20);
- SetWeld(u20, 1, 1, v135, v136, v135, Vector3.new(0, 0, -0.8 - v113 / 14));
- end;
- wait(0.025);
- if u25 < -100 then
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
- 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);
- break;
- end;
- end;
- if u31 == "Jumping" then
- u34 = 6;
- u19.C1 = CFrame.new(0, 0.5, 0);
- u20.C1 = CFrame.new(0, 0.5, 0);
- if p21 == -math.pi / 2 then
- u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 3);
- else
- u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
- end;
- u17.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, -math.pi / 4);
- else
- u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, math.pi / 4);
- end;
- u18.MaxVelocity = 10;
- u18.DesiredAngle = 0;
- u18.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, math.pi / 4);
- else
- u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
- end;
- u21.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(0, p21 / 2.4, 0);
- u21.C0 = CFrame.new(0, 1, 0);
- v137, v138 = GetWeld(u19);
- v139, v140 = GetWeld(u20);
- v141, v142 = GetWeld(u17);
- v143, v144 = GetWeld(u18);
- v145, v146 = GetWeld(u21);
- u25 = 26;
- v147 = 0;
- v148 = p21 / 2;
- v149 = 1;
- l__lookVector__150 = (CFrame.new(v16, p20) * CFrame.Angles(0, -p21 / 2.4, 0)).lookVector;
- u35 = l__lookVector__150;
- v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
- while true do
- if u31 == "Jumping" then
- else
- break;
- end;
- v151, v152 = RAY(u4.Position, Vector3.new(0, -4, 0));
- v153, v154 = RAY(u4.Position, l__lookVector__150 * 1.4);
- if v151 ~= nil then
- if v151.CanCollide == true then
- v155 = math.abs(v152.y - u4.CFrame.p.y);
- u4.CFrame = CFrame.new(v152 + Vector3.new(0, 2.9, 0), v152 + Vector3.new(0, 2.9, 0) + l__lookVector__150);
- u4.Velocity = v16;
- break;
- end;
- end;
- if v153 ~= nil then
- if v153.CanCollide == true then
- v147 = v147 + 1;
- if v147 == 4 then
- u4.CFrame = CFrame.new(u4.Position, u4.Position + l__lookVector__150) * CFrame.new(0, 0, 0.4);
- u4.Velocity = Vector3.new(0, u4.Velocity.y, 0);
- u34 = 5;
- u36 = 5;
- wait(0.02);
- break;
- end;
- end;
- end;
- if 0 < p21 / 2 then
- if 0.2 < v148 then
- v148 = v148 - 0.055;
- end;
- elseif v148 < -0.2 then
- v148 = v148 + 0.055;
- end;
- if v149 <= 5 then
- if p21 == -math.pi / 2 then
- SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 4));
- SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 3));
- SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u17.C0 = u17.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
- SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u18.C0 = u18.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
- else
- SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 3));
- SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 4));
- SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u17.C0 = u17.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
- SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u18.C0 = u18.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
- end;
- v149 = v149 + 1;
- end;
- v107.Parent = u4;
- v107.cframe = CFrame.new(v16, p20) * CFrame.Angles(0, p21 / 15, -v148);
- v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
- if v147 ~= 0 then
- v106.velocity = Vector3.new(0, v106.velocity.y, 0);
- end;
- if not (u25 < -120) then
- else
- break;
- end;
- wait(0.025);
- end;
- end;
- u10.PlatformStand = false;
- v106:remove();
- u37 = false;
- Stand();
- u31 = false;
- end;
- elseif p18.className ~= "Part" then
- v24.Value = v24.Value + 9;
- u16 = false;
- u31 = true;
- u23 = "HWallRunning";
- u25 = 10;
- u32 = p18;
- towall = -p20;
- p20 = (CFrame.new(v16, p20) * CFrame.Angles(0, p21, 0)).lookVector;
- v106 = Instance.new("BodyVelocity", u4);
- v106.Name = "StaminaBodyObject";
- v106.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v106.P = 9000;
- v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
- v107 = Instance.new("BodyGyro", u4);
- v107.Name = "StaminaBodyObject";
- v107.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v107.cframe = CFrame.new(u4.Position + towall * -2, u4.Position) * CFrame.Angles(0, -p21, -p21 / 4.2);
- v107.D = 100;
- v108 = Instance.new("Motor");
- if p21 == -math.pi / 2 then
- 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));
- else
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, math.pi / 7));
- end;
- l__C0__109 = u19.C0;
- if p21 == math.pi / 2 then
- 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));
- else
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.6, 0), Vector3.new(-math.pi / 12, 0, -math.pi / 7));
- end;
- l__C0__110 = u20.C0;
- u17.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.38, -0.3), Vector3.new(0, math.pi / 2, 0.14));
- else
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -0.8, -0.2), Vector3.new(0, math.pi / 2, 0.2));
- end;
- u18.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.8, -0.2), Vector3.new(0, 0, 0.2));
- else
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -0.38, -0.3), Vector3.new(0, 0, 0.14));
- end;
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 0.9, 0), Vector3.new(0, 0, p21 / 7));
- u4.CFrame = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v107.cframe = CFrame.new(p19 + towall * -2, p19) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v111 = 0;
- v112 = true;
- v113 = 0;
- v114 = true;
- v115 = p18;
- u32 = p18;
- while true do
- if u31 == true then
- else
- break;
- end;
- if math.pi < v111 then
- v112 = false;
- elseif v111 < -math.pi then
- v112 = true;
- end;
- if v112 == true then
- v111 = v111 + 0.95;
- elseif v112 == false then
- v111 = v111 - 0.95;
- end;
- if math.pi < v113 then
- v114 = false;
- elseif v113 < -math.pi then
- v114 = true;
- end;
- if v114 == true then
- v113 = v113 + 0.23;
- elseif v114 == false then
- v113 = v113 - 0.23;
- end;
- u10.PlatformStand = true;
- v116, v117, v118 = RAY(u4.Position, Vector3.new(0, -3, 0));
- v119, v120, v121 = RAY(u4.Position, towall * 3.4);
- if v116 ~= nil then
- if v116.CanCollide == true then
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
- 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);
- u4.Velocity = v16;
- break;
- end;
- end;
- if v119 ~= nil then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- if v119.CanCollide == true then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- if v119 ~= v115 then
- 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);
- if v122 ~= nil then
- else
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21 * 1.1, -p21 / 2.2);
- towall = -v124;
- l__lookVector__125 = (CFrame.new(v16, v124) * CFrame.Angles(0, p21, 0)).lookVector;
- v115 = v119;
- u32 = v119;
- end;
- u4.CFrame = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, -p21 / 2.2);
- v126, v127, v128 = RAY(u4.Position, u4.CFrame.lookVector * 2);
- if v126 ~= nil then
- if v126.CanCollide == true then
- u4.CFrame = CFrame.new(u4.Position, u4.Position + p20);
- v107.cframe = CFrame.new(u4.Position, u4.Position + p20);
- u4.Velocity = v16;
- u34 = 8;
- break;
- end;
- end;
- v106.Parent = u4;
- v106.velocity = p20 * (u33 - 0.5) + Vector3.new(0, u25, 0);
- v107.cframe = v107.cframe * CFrame.Angles(v111 / 80, v111 / 80, 0);
- u4.CFrame = u4.CFrame * CFrame.Angles(v111 / 80, v111 / 80, 0);
- v129, v130 = GetWeld(u17);
- v131, v132 = GetWeld(u18);
- SetWeld(u17, 1, 1, v129, v130, v129, Vector3.new(-0.2 + v111 / 4, 0, 0));
- SetWeld(u18, 1, 1, v131, v132, v131, Vector3.new(-0.2 + -v111 / 4, 0, 0));
- if p21 == math.pi / 2 then
- v133, v134 = GetWeld(u19);
- SetWeld(u19, 1, 1, v133, v134, v133, Vector3.new(0, 0, 0.8 + v113 / 14));
- else
- v135, v136 = GetWeld(u20);
- SetWeld(u20, 1, 1, v135, v136, v135, Vector3.new(0, 0, -0.8 - v113 / 14));
- end;
- wait(0.025);
- if u25 < -100 then
- v107.cframe = CFrame.new(v120 + towall * -2, v120) * CFrame.Angles(0, -p21, 0);
- 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);
- break;
- end;
- end;
- if u31 == "Jumping" then
- u34 = 6;
- u19.C1 = CFrame.new(0, 0.5, 0);
- u20.C1 = CFrame.new(0, 0.5, 0);
- if p21 == -math.pi / 2 then
- u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 3);
- else
- u20.C0 = CFrame.new(-1.35, 0.5, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
- end;
- u17.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, -math.pi / 4);
- else
- u17.C0 = CFrame.new(0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, math.pi / 4);
- end;
- u18.MaxVelocity = 10;
- u18.DesiredAngle = 0;
- u18.C1 = CFrame.new(0, 1, 0);
- if p21 == -math.pi / 2 then
- u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, math.pi + p21 / 2.4, math.pi / 4);
- else
- u18.C0 = CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(0, p21 / 2.4, -math.pi / 4);
- end;
- u21.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(0, p21 / 2.4, 0);
- u21.C0 = CFrame.new(0, 1, 0);
- v137, v138 = GetWeld(u19);
- v139, v140 = GetWeld(u20);
- v141, v142 = GetWeld(u17);
- v143, v144 = GetWeld(u18);
- v145, v146 = GetWeld(u21);
- u25 = 26;
- v147 = 0;
- v148 = p21 / 2;
- v149 = 1;
- l__lookVector__150 = (CFrame.new(v16, p20) * CFrame.Angles(0, -p21 / 2.4, 0)).lookVector;
- u35 = l__lookVector__150;
- v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
- while true do
- if u31 == "Jumping" then
- else
- break;
- end;
- v151, v152 = RAY(u4.Position, Vector3.new(0, -4, 0));
- v153, v154 = RAY(u4.Position, l__lookVector__150 * 1.4);
- if v151 ~= nil then
- if v151.CanCollide == true then
- v155 = math.abs(v152.y - u4.CFrame.p.y);
- u4.CFrame = CFrame.new(v152 + Vector3.new(0, 2.9, 0), v152 + Vector3.new(0, 2.9, 0) + l__lookVector__150);
- u4.Velocity = v16;
- break;
- end;
- end;
- if v153 ~= nil then
- if v153.CanCollide == true then
- v147 = v147 + 1;
- if v147 == 4 then
- u4.CFrame = CFrame.new(u4.Position, u4.Position + l__lookVector__150) * CFrame.new(0, 0, 0.4);
- u4.Velocity = Vector3.new(0, u4.Velocity.y, 0);
- u34 = 5;
- u36 = 5;
- wait(0.02);
- break;
- end;
- end;
- end;
- if 0 < p21 / 2 then
- if 0.2 < v148 then
- v148 = v148 - 0.055;
- end;
- elseif v148 < -0.2 then
- v148 = v148 + 0.055;
- end;
- if v149 <= 5 then
- if p21 == -math.pi / 2 then
- SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 4));
- SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 3));
- SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u17.C0 = u17.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
- SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u18.C0 = u18.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
- else
- SetWeld(u19, v149, 5, v137, v138, Vector3.new(1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, math.pi / 3));
- SetWeld(u20, v149, 5, v139, v140, Vector3.new(-1.35, 0.5, 0), Vector3.new(0, p21 / 2.4, -math.pi / 4));
- SetWeld(u17, v149, 5, v141, v142, Vector3.new(0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u17.C0 = u17.C0 * CFrame.Angles(math.pi / 4 / 5 * v149, 0, 0);
- SetWeld(u18, v149, 5, v143, v144, Vector3.new(-0.5, -0.8, 0), Vector3.new(0, -p21 / 1.7, 0));
- u18.C0 = u18.C0 * CFrame.Angles(-math.pi / 4 / 5 * v149, 0, 0);
- end;
- v149 = v149 + 1;
- end;
- v107.Parent = u4;
- v107.cframe = CFrame.new(v16, p20) * CFrame.Angles(0, p21 / 15, -v148);
- v106.velocity = l__lookVector__150 * (u33 + 5) + Vector3.new(0, u25, 0);
- if v147 ~= 0 then
- v106.velocity = Vector3.new(0, v106.velocity.y, 0);
- end;
- if not (u25 < -120) then
- else
- break;
- end;
- wait(0.025);
- end;
- end;
- u10.PlatformStand = false;
- v106:remove();
- u37 = false;
- Stand();
- u31 = false;
- end;
- end;
- local u38 = false;
- local u39 = nil;
- local u40 = false;
- local u41 = false;
- function VWR(p22, p23, p24)
- if p22.className == "Part" then
- if p22.Shape ~= Enum.PartType.Block then
- if p22.className ~= "Part" then
- v24.Value = v24.Value + 9;
- u16 = false;
- u38 = true;
- u23 = "VWallRunning";
- u25 = 0;
- local v156 = 1;
- u39 = p22;
- towall = -p24;
- p24 = (CFrame.new(v16, -p24) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector;
- local v157 = Instance.new("BodyVelocity", u4);
- v157.Name = "StaminaBodyObject";
- v157.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v157.P = 9000;
- v157.velocity = p24 * (u33 - 1) * v156;
- local v158 = Instance.new("BodyGyro", u4);
- v158.Name = "StaminaBodyObject";
- v158.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v158.D = 100;
- local v159 = p23 + -towall * 1.8;
- v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
- u4.CFrame = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, math.pi / 8));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, -math.pi / 8));
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
- u17.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
- u18.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(math.pi / 20, 0, 0));
- local v160 = 0;
- local v161 = true;
- while true do
- if u38 == true then
- else
- break;
- end;
- local v162, v163, v164 = RAY(u4.Position, towall * 2.1);
- local v165, v166, v167 = RAY(u4.Position, (CFrame.new(v16, towall) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector * 2.4);
- if math.pi < v160 then
- v161 = false;
- elseif v160 < -math.pi then
- v161 = true;
- end;
- if v161 == true then
- v160 = v160 + 1.3 * (v156 + 0.2);
- elseif v161 == false then
- v160 = v160 - 1.3 * (v156 + 0.2);
- end;
- v157.velocity = p24 * (u33 - 1) * v156;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
- end;
- v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0) * CFrame.Angles(0, v160 / 60, 0);
- 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));
- 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));
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.51, -0.75, -(v160 / 30)), Vector3.new(0, math.pi / 2, v160 / 8 - 0.3));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.51, -0.75, v160 / 30), Vector3.new(0, math.pi / 2, -v160 / 8 - 0.3));
- if v162 == nil then
- local v168 = u4.Position + u4.CFrame.lookVector * 100;
- u4.CFrame = CFrame.new(u4.Position, Vector3.new(v168.x, u4.Position.y, v168.z));
- break;
- end;
- if v165 ~= nil then
- u38 = "Falling";
- u23 = "VWRFalling";
- u25 = -7;
- break;
- end;
- wait(0.02);
- v156 = v156 - 0.028;
- if v156 <= 0.15 then
- u38 = "Falling";
- u23 = "VWRFalling";
- end;
- end;
- if u38 == "Falling" then
- u25 = u25 - 1;
- local v169 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v169).lookVector * v169.magnitude;
- local v170, v171 = GetWeld(u19);
- local v172, v173 = GetWeld(u20);
- local v174, v175 = GetWeld(u17);
- local v176, v177 = GetWeld(u18);
- local v178, v179 = GetWeld(u21);
- while true do
- if u38 == "Falling" then
- else
- break;
- end;
- local v180, v181 = RAY(u9.Position, Vector3.new(0, -2.6, 0));
- local v182 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v182).lookVector * v182.magnitude;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
- if 0 <= 35 then
- SetWeld(u19, 0, 35, v170, v171, Vector3.new(1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, math.pi / 9));
- SetWeld(u20, 0, 35, v172, v173, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, -math.pi / 9));
- SetWeld(u17, 0, 35, v174, v175, Vector3.new(0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
- u17.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 0, 35, v176, v177, Vector3.new(-0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
- u18.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u21, 0, 35, v178, v179, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 6, 0, 0));
- end;
- if v180 ~= nil then
- v157:remove();
- 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);
- u4.Velocity = v16;
- u4.RotVelocity = v16;
- local v183 = Instance.new("BodyPosition", u4);
- v183.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v183.position = u4.CFrame.p;
- game:service("Debris"):AddItem(v183, 0.16);
- v24.Value = 0;
- break;
- end;
- if -180 < u25 then
- u25 = u25 - 1.9;
- end;
- if not (200 < 0) then
- else
- break;
- end;
- wait(0.02);
- end;
- local v184 = Instance.new("BodyPosition");
- local v185 = 0;
- local v186, v187 = GetWeld(u19);
- local v188, v189 = GetWeld(u20);
- local v190, v191 = GetWeld(u17);
- local v192, v193 = GetWeld(u18);
- local v194, v195 = GetWeld(u21);
- local v196 = nil;
- while true do
- if u38 == "BackflipFromFall" then
- else
- break;
- end;
- local v197 = 0 + 1;
- local v198, v199 = RAY(u9.Position + Vector3.new(0, 2, 0), Vector3.new(0, -4.8, 0));
- if v197 - 0 < 13 then
- v185 = v185 - math.pi * 1.1 / 13;
- end;
- if v197 - 0 <= 13 then
- 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));
- 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));
- SetWeld(u17, v197 - 0, 13, v190, v191, Vector3.new(0.52, -0.3, -0.65), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v197 - 0, 13, v192, v193, Vector3.new(-0.51, -0.9, -0.05), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u21, v197 - 0, 13, v194, v195, Vector3.new(0, 0.9, 0), Vector3.new(-math.pi / 7, 0, 0));
- end;
- local v200 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v200).lookVector * v200.magnitude;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.4 + v185, math.pi, 0);
- if v198 ~= nil then
- v157:remove();
- v196 = v199 - towall * 1.3;
- if 8 < 0 - 0 then
- v184 = Instance.new("BodyPosition", u4);
- v184.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v184.position = v199 + Vector3.new(0, 2.4, 0) + -towall * 1;
- u38 = "LandingFall";
- else
- u4.CFrame = v158.cframe + (v199 + Vector3.new(0, 2.3, 0));
- u4.Velocity = v16;
- u4.RotVelocity = v16;
- local v201 = Instance.new("BodyPosition", u4);
- v201.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v201.position = u4.CFrame.p;
- game:service("Debris"):AddItem(v201, 0.14);
- v24.Value = 0;
- end;
- break;
- end;
- if -180 < u25 then
- u25 = u25 - 1.9;
- end;
- if not (200 < 0) then
- else
- break;
- end;
- wait(0.02);
- end;
- if u38 == "LandingFall" then
- u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- local v202, v203 = GetWeld(u19);
- local v204, v205 = GetWeld(u20);
- local v206, v207 = GetWeld(u17);
- local v208, v209 = GetWeld(u18);
- local v210, v211 = GetWeld(u21);
- local v212 = nil;
- local v213 = nil;
- if u25 < -70 then
- v212 = v26:Clone();
- v212.Parent = u4;
- v212.Name = "AirLandingEffect";
- v212.BrickColor = BrickColor.new("Medium stone grey");
- v212.Transparency = 0.3;
- v212.CFrame = CFrame.new(v196 + Vector3.new(0, 0.4, 0));
- v213 = Instance.new("SpecialMesh", v212);
- v213.MeshId = "http://www.roblox.com/asset/?id=20329976";
- v213.Scale = Vector3.new(0, 0, 0);
- end;
- local v214 = CFrame.new(v16, Vector3.new(towall.x, 0, towall.z));
- v158.cframe = v214 * CFrame.Angles(-math.pi / 7, 0, 0);
- local v215 = math.pi / 7 / 2;
- local v216 = 1 - 1;
- while true do
- u10.PlatformStand = true;
- 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));
- 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));
- SetWeld(u17, v216, 6, v206, v207, Vector3.new(0.51, -0.3, -0.8), Vector3.new(0, math.pi / 2, -math.pi / 7));
- SetWeld(u18, v216, 6, v208, v209, Vector3.new(-0.51, -0.8, -0.7), Vector3.new(0, math.pi / 2, -math.pi / 3));
- SetWeld(u21, v216, 6, v210, v211, Vector3.new(0, 0.85, 0), Vector3.new(-math.pi / 8, 0, 0));
- v184.position = v184.position + Vector3.new(0, -0.07, 0);
- v158.cframe = v214 * CFrame.Angles(-v215 * 2 + v215 / 6 * v216, 0, 0);
- u4.CFrame = v158.cframe + v184.position;
- if v212 ~= nil then
- v213.Scale = v213.Scale + Vector3.new(1.3, 0.35, 1.3);
- v212.Transparency = 0.3 + 0.11666666666666665 * v216;
- end;
- wait(0.02);
- if 0 <= 1 then
- if v216 < 6 then
- else
- break;
- end;
- elseif 6 < v216 then
- else
- break;
- end;
- v216 = v216 + 1;
- end;
- if v212 ~= nil then
- v212:remove();
- end;
- local v217, v218 = GetWeld(u19);
- local v219, v220 = GetWeld(u20);
- local v221, v222 = GetWeld(u17);
- local v223, v224 = GetWeld(u18);
- local v225, v226 = GetWeld(u21);
- local v227 = 1 - 1;
- while true do
- u10.PlatformStand = true;
- SetWeld(u19, v227, 6, v217, v218, Vector3.new(1.5, 0.5, 0), Vector3.new(0, 0, 0));
- SetWeld(u20, v227, 6, v219, v220, Vector3.new(-1.5, 0.5, 0), Vector3.new(0, 0, 0));
- SetWeld(u17, v227, 6, v221, v222, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v227, 6, v223, v224, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u21, v227, 6, v225, v226, Vector3.new(0, 1, 0), Vector3.new(0, 0, 0));
- v184.position = v184.position + Vector3.new(0, 0.1, 0);
- v158.cframe = v214 * CFrame.Angles(-v215 + v215 / 6 * v227, 0, 0);
- u4.CFrame = v158.cframe + v184.position;
- wait(0.02);
- if 0 <= 1 then
- if v227 < 6 then
- else
- break;
- end;
- elseif 6 < v227 then
- else
- break;
- end;
- v227 = v227 + 1;
- end;
- v184:remove();
- end;
- end;
- v157:remove();
- v158:remove();
- u38 = false;
- Stand();
- end;
- else
- v24.Value = v24.Value + 9;
- u16 = false;
- u38 = true;
- u23 = "VWallRunning";
- u25 = 0;
- v156 = 1;
- u39 = p22;
- towall = -p24;
- p24 = (CFrame.new(v16, -p24) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector;
- v157 = Instance.new("BodyVelocity", u4);
- v157.Name = "StaminaBodyObject";
- v157.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v157.P = 9000;
- v157.velocity = p24 * (u33 - 1) * v156;
- v158 = Instance.new("BodyGyro", u4);
- v158.Name = "StaminaBodyObject";
- v158.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v158.D = 100;
- v159 = p23 + -towall * 1.8;
- v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
- u4.CFrame = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, math.pi / 8));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, -math.pi / 8));
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
- u17.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
- u18.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(math.pi / 20, 0, 0));
- v160 = 0;
- v161 = true;
- while true do
- if u38 == true then
- else
- break;
- end;
- v162, v163, v164 = RAY(u4.Position, towall * 2.1);
- v165, v166, v167 = RAY(u4.Position, (CFrame.new(v16, towall) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector * 2.4);
- if math.pi < v160 then
- v161 = false;
- elseif v160 < -math.pi then
- v161 = true;
- end;
- if v161 == true then
- v160 = v160 + 1.3 * (v156 + 0.2);
- elseif v161 == false then
- v160 = v160 - 1.3 * (v156 + 0.2);
- end;
- v157.velocity = p24 * (u33 - 1) * v156;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
- end;
- v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0) * CFrame.Angles(0, v160 / 60, 0);
- 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));
- 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));
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.51, -0.75, -(v160 / 30)), Vector3.new(0, math.pi / 2, v160 / 8 - 0.3));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.51, -0.75, v160 / 30), Vector3.new(0, math.pi / 2, -v160 / 8 - 0.3));
- if v162 == nil then
- v168 = u4.Position + u4.CFrame.lookVector * 100;
- u4.CFrame = CFrame.new(u4.Position, Vector3.new(v168.x, u4.Position.y, v168.z));
- break;
- end;
- if v165 ~= nil then
- u38 = "Falling";
- u23 = "VWRFalling";
- u25 = -7;
- break;
- end;
- wait(0.02);
- v156 = v156 - 0.028;
- if v156 <= 0.15 then
- u38 = "Falling";
- u23 = "VWRFalling";
- end;
- end;
- if u38 == "Falling" then
- u25 = u25 - 1;
- v169 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v169).lookVector * v169.magnitude;
- v170, v171 = GetWeld(u19);
- v172, v173 = GetWeld(u20);
- v174, v175 = GetWeld(u17);
- v176, v177 = GetWeld(u18);
- v178, v179 = GetWeld(u21);
- while true do
- if u38 == "Falling" then
- else
- break;
- end;
- v180, v181 = RAY(u9.Position, Vector3.new(0, -2.6, 0));
- v182 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v182).lookVector * v182.magnitude;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
- if 0 <= 35 then
- SetWeld(u19, 0, 35, v170, v171, Vector3.new(1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, math.pi / 9));
- SetWeld(u20, 0, 35, v172, v173, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, -math.pi / 9));
- SetWeld(u17, 0, 35, v174, v175, Vector3.new(0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
- u17.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 0, 35, v176, v177, Vector3.new(-0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
- u18.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u21, 0, 35, v178, v179, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 6, 0, 0));
- end;
- if v180 ~= nil then
- v157:remove();
- 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);
- u4.Velocity = v16;
- u4.RotVelocity = v16;
- v183 = Instance.new("BodyPosition", u4);
- v183.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v183.position = u4.CFrame.p;
- game:service("Debris"):AddItem(v183, 0.16);
- v24.Value = 0;
- break;
- end;
- if -180 < u25 then
- u25 = u25 - 1.9;
- end;
- if not (200 < 0) then
- else
- break;
- end;
- wait(0.02);
- end;
- v184 = Instance.new("BodyPosition");
- v185 = 0;
- v186, v187 = GetWeld(u19);
- v188, v189 = GetWeld(u20);
- v190, v191 = GetWeld(u17);
- v192, v193 = GetWeld(u18);
- v194, v195 = GetWeld(u21);
- v196 = nil;
- while true do
- if u38 == "BackflipFromFall" then
- else
- break;
- end;
- v197 = 0 + 1;
- v198, v199 = RAY(u9.Position + Vector3.new(0, 2, 0), Vector3.new(0, -4.8, 0));
- if v197 - 0 < 13 then
- v185 = v185 - math.pi * 1.1 / 13;
- end;
- if v197 - 0 <= 13 then
- 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));
- 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));
- SetWeld(u17, v197 - 0, 13, v190, v191, Vector3.new(0.52, -0.3, -0.65), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v197 - 0, 13, v192, v193, Vector3.new(-0.51, -0.9, -0.05), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u21, v197 - 0, 13, v194, v195, Vector3.new(0, 0.9, 0), Vector3.new(-math.pi / 7, 0, 0));
- end;
- v200 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v200).lookVector * v200.magnitude;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.4 + v185, math.pi, 0);
- if v198 ~= nil then
- v157:remove();
- v196 = v199 - towall * 1.3;
- if 8 < 0 - 0 then
- v184 = Instance.new("BodyPosition", u4);
- v184.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v184.position = v199 + Vector3.new(0, 2.4, 0) + -towall * 1;
- u38 = "LandingFall";
- else
- u4.CFrame = v158.cframe + (v199 + Vector3.new(0, 2.3, 0));
- u4.Velocity = v16;
- u4.RotVelocity = v16;
- v201 = Instance.new("BodyPosition", u4);
- v201.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v201.position = u4.CFrame.p;
- game:service("Debris"):AddItem(v201, 0.14);
- v24.Value = 0;
- end;
- break;
- end;
- if -180 < u25 then
- u25 = u25 - 1.9;
- end;
- if not (200 < 0) then
- else
- break;
- end;
- wait(0.02);
- end;
- if u38 == "LandingFall" then
- u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- v202, v203 = GetWeld(u19);
- v204, v205 = GetWeld(u20);
- v206, v207 = GetWeld(u17);
- v208, v209 = GetWeld(u18);
- v210, v211 = GetWeld(u21);
- v212 = nil;
- v213 = nil;
- if u25 < -70 then
- v212 = v26:Clone();
- v212.Parent = u4;
- v212.Name = "AirLandingEffect";
- v212.BrickColor = BrickColor.new("Medium stone grey");
- v212.Transparency = 0.3;
- v212.CFrame = CFrame.new(v196 + Vector3.new(0, 0.4, 0));
- v213 = Instance.new("SpecialMesh", v212);
- v213.MeshId = "http://www.roblox.com/asset/?id=20329976";
- v213.Scale = Vector3.new(0, 0, 0);
- end;
- v214 = CFrame.new(v16, Vector3.new(towall.x, 0, towall.z));
- v158.cframe = v214 * CFrame.Angles(-math.pi / 7, 0, 0);
- v215 = math.pi / 7 / 2;
- v216 = 1 - 1;
- while true do
- u10.PlatformStand = true;
- 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));
- 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));
- SetWeld(u17, v216, 6, v206, v207, Vector3.new(0.51, -0.3, -0.8), Vector3.new(0, math.pi / 2, -math.pi / 7));
- SetWeld(u18, v216, 6, v208, v209, Vector3.new(-0.51, -0.8, -0.7), Vector3.new(0, math.pi / 2, -math.pi / 3));
- SetWeld(u21, v216, 6, v210, v211, Vector3.new(0, 0.85, 0), Vector3.new(-math.pi / 8, 0, 0));
- v184.position = v184.position + Vector3.new(0, -0.07, 0);
- v158.cframe = v214 * CFrame.Angles(-v215 * 2 + v215 / 6 * v216, 0, 0);
- u4.CFrame = v158.cframe + v184.position;
- if v212 ~= nil then
- v213.Scale = v213.Scale + Vector3.new(1.3, 0.35, 1.3);
- v212.Transparency = 0.3 + 0.11666666666666665 * v216;
- end;
- wait(0.02);
- if 0 <= 1 then
- if v216 < 6 then
- else
- break;
- end;
- elseif 6 < v216 then
- else
- break;
- end;
- v216 = v216 + 1;
- end;
- if v212 ~= nil then
- v212:remove();
- end;
- v217, v218 = GetWeld(u19);
- v219, v220 = GetWeld(u20);
- v221, v222 = GetWeld(u17);
- v223, v224 = GetWeld(u18);
- v225, v226 = GetWeld(u21);
- v227 = 1 - 1;
- while true do
- u10.PlatformStand = true;
- SetWeld(u19, v227, 6, v217, v218, Vector3.new(1.5, 0.5, 0), Vector3.new(0, 0, 0));
- SetWeld(u20, v227, 6, v219, v220, Vector3.new(-1.5, 0.5, 0), Vector3.new(0, 0, 0));
- SetWeld(u17, v227, 6, v221, v222, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v227, 6, v223, v224, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u21, v227, 6, v225, v226, Vector3.new(0, 1, 0), Vector3.new(0, 0, 0));
- v184.position = v184.position + Vector3.new(0, 0.1, 0);
- v158.cframe = v214 * CFrame.Angles(-v215 + v215 / 6 * v227, 0, 0);
- u4.CFrame = v158.cframe + v184.position;
- wait(0.02);
- if 0 <= 1 then
- if v227 < 6 then
- else
- break;
- end;
- elseif 6 < v227 then
- else
- break;
- end;
- v227 = v227 + 1;
- end;
- v184:remove();
- end;
- end;
- v157:remove();
- v158:remove();
- u38 = false;
- Stand();
- end;
- elseif p22.className ~= "Part" then
- v24.Value = v24.Value + 9;
- u16 = false;
- u38 = true;
- u23 = "VWallRunning";
- u25 = 0;
- v156 = 1;
- u39 = p22;
- towall = -p24;
- p24 = (CFrame.new(v16, -p24) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector;
- v157 = Instance.new("BodyVelocity", u4);
- v157.Name = "StaminaBodyObject";
- v157.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v157.P = 9000;
- v157.velocity = p24 * (u33 - 1) * v156;
- v158 = Instance.new("BodyGyro", u4);
- v158.Name = "StaminaBodyObject";
- v158.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v158.D = 100;
- v159 = p23 + -towall * 1.8;
- v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
- u4.CFrame = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0);
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, math.pi / 8));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(-math.pi / 3.2, 0, -math.pi / 8));
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
- u17.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.48, -0.6, -0.1), Vector3.new(0, math.pi / 2, 0));
- u18.C1 = CFrame.new(0, 0.7, 0.2) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u21, 1, 1, v16, v16, Vector3.new(0, 1, 0), Vector3.new(math.pi / 20, 0, 0));
- v160 = 0;
- v161 = true;
- while true do
- if u38 == true then
- else
- break;
- end;
- v162, v163, v164 = RAY(u4.Position, towall * 2.1);
- v165, v166, v167 = RAY(u4.Position, (CFrame.new(v16, towall) * CFrame.Angles(math.pi / 2, 0, 0)).lookVector * 2.4);
- if math.pi < v160 then
- v161 = false;
- elseif v160 < -math.pi then
- v161 = true;
- end;
- if v161 == true then
- v160 = v160 + 1.3 * (v156 + 0.2);
- elseif v161 == false then
- v160 = v160 - 1.3 * (v156 + 0.2);
- end;
- v157.velocity = p24 * (u33 - 1) * v156;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * (11 * v156 + 5);
- end;
- v158.cframe = CFrame.new(v159, v159 + towall) * CFrame.Angles(math.pi / 5, 0, 0) * CFrame.Angles(0, v160 / 60, 0);
- 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));
- 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));
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.51, -0.75, -(v160 / 30)), Vector3.new(0, math.pi / 2, v160 / 8 - 0.3));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.51, -0.75, v160 / 30), Vector3.new(0, math.pi / 2, -v160 / 8 - 0.3));
- if v162 == nil then
- v168 = u4.Position + u4.CFrame.lookVector * 100;
- u4.CFrame = CFrame.new(u4.Position, Vector3.new(v168.x, u4.Position.y, v168.z));
- break;
- end;
- if v165 ~= nil then
- u38 = "Falling";
- u23 = "VWRFalling";
- u25 = -7;
- break;
- end;
- wait(0.02);
- v156 = v156 - 0.028;
- if v156 <= 0.15 then
- u38 = "Falling";
- u23 = "VWRFalling";
- end;
- end;
- if u38 == "Falling" then
- u25 = u25 - 1;
- v169 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v169).lookVector * v169.magnitude;
- v170, v171 = GetWeld(u19);
- v172, v173 = GetWeld(u20);
- v174, v175 = GetWeld(u17);
- v176, v177 = GetWeld(u18);
- v178, v179 = GetWeld(u21);
- while true do
- if u38 == "Falling" then
- else
- break;
- end;
- v180, v181 = RAY(u9.Position, Vector3.new(0, -2.6, 0));
- v182 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v182).lookVector * v182.magnitude;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.55, math.pi, 0);
- if 0 <= 35 then
- SetWeld(u19, 0, 35, v170, v171, Vector3.new(1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, math.pi / 9));
- SetWeld(u20, 0, 35, v172, v173, Vector3.new(-1.4, 0.45, -0.1), Vector3.new(math.pi / 9, 0, -math.pi / 9));
- SetWeld(u17, 0, 35, v174, v175, Vector3.new(0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
- u17.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 0, 35, v176, v177, Vector3.new(-0.5, -0.75, 0), Vector3.new(0, math.pi / 2, math.pi / 9));
- u18.C1 = CFrame.new(0, 0.7 + 0.008571428571428572 * 0, 0.2 - 0.005714285714285714 * 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u21, 0, 35, v178, v179, Vector3.new(0, 1, 0), Vector3.new(-math.pi / 6, 0, 0));
- end;
- if v180 ~= nil then
- v157:remove();
- 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);
- u4.Velocity = v16;
- u4.RotVelocity = v16;
- v183 = Instance.new("BodyPosition", u4);
- v183.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v183.position = u4.CFrame.p;
- game:service("Debris"):AddItem(v183, 0.16);
- v24.Value = 0;
- break;
- end;
- if -180 < u25 then
- u25 = u25 - 1.9;
- end;
- if not (200 < 0) then
- else
- break;
- end;
- wait(0.02);
- end;
- v184 = Instance.new("BodyPosition");
- v185 = 0;
- v186, v187 = GetWeld(u19);
- v188, v189 = GetWeld(u20);
- v190, v191 = GetWeld(u17);
- v192, v193 = GetWeld(u18);
- v194, v195 = GetWeld(u21);
- v196 = nil;
- while true do
- if u38 == "BackflipFromFall" then
- else
- break;
- end;
- v197 = 0 + 1;
- v198, v199 = RAY(u9.Position + Vector3.new(0, 2, 0), Vector3.new(0, -4.8, 0));
- if v197 - 0 < 13 then
- v185 = v185 - math.pi * 1.1 / 13;
- end;
- if v197 - 0 <= 13 then
- 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));
- 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));
- SetWeld(u17, v197 - 0, 13, v190, v191, Vector3.new(0.52, -0.3, -0.65), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v197 - 0, 13, v192, v193, Vector3.new(-0.51, -0.9, -0.05), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u21, v197 - 0, 13, v194, v195, Vector3.new(0, 0.9, 0), Vector3.new(-math.pi / 7, 0, 0));
- end;
- v200 = -towall * 5 + Vector3.new(0, u25, 0);
- v157.velocity = CFrame.new(v16, v200).lookVector * v200.magnitude;
- if u40 == true then
- v157.velocity = v157.velocity + (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- if u41 == true then
- v157.velocity = v157.velocity - (CFrame.new(v16, towall) * CFrame.Angles(0, math.pi / 2, 0)).lookVector * 9;
- end;
- v158.cframe = CFrame.new(v16, -towall * 30 + Vector3.new(0, u25, 0)) * CFrame.Angles(-math.pi / 2.4 + v185, math.pi, 0);
- if v198 ~= nil then
- v157:remove();
- v196 = v199 - towall * 1.3;
- if 8 < 0 - 0 then
- v184 = Instance.new("BodyPosition", u4);
- v184.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v184.position = v199 + Vector3.new(0, 2.4, 0) + -towall * 1;
- u38 = "LandingFall";
- else
- u4.CFrame = v158.cframe + (v199 + Vector3.new(0, 2.3, 0));
- u4.Velocity = v16;
- u4.RotVelocity = v16;
- v201 = Instance.new("BodyPosition", u4);
- v201.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v201.position = u4.CFrame.p;
- game:service("Debris"):AddItem(v201, 0.14);
- v24.Value = 0;
- end;
- break;
- end;
- if -180 < u25 then
- u25 = u25 - 1.9;
- end;
- if not (200 < 0) then
- else
- break;
- end;
- wait(0.02);
- end;
- if u38 == "LandingFall" then
- u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- v202, v203 = GetWeld(u19);
- v204, v205 = GetWeld(u20);
- v206, v207 = GetWeld(u17);
- v208, v209 = GetWeld(u18);
- v210, v211 = GetWeld(u21);
- v212 = nil;
- v213 = nil;
- if u25 < -70 then
- v212 = v26:Clone();
- v212.Parent = u4;
- v212.Name = "AirLandingEffect";
- v212.BrickColor = BrickColor.new("Medium stone grey");
- v212.Transparency = 0.3;
- v212.CFrame = CFrame.new(v196 + Vector3.new(0, 0.4, 0));
- v213 = Instance.new("SpecialMesh", v212);
- v213.MeshId = "http://www.roblox.com/asset/?id=20329976";
- v213.Scale = Vector3.new(0, 0, 0);
- end;
- v214 = CFrame.new(v16, Vector3.new(towall.x, 0, towall.z));
- v158.cframe = v214 * CFrame.Angles(-math.pi / 7, 0, 0);
- v215 = math.pi / 7 / 2;
- v216 = 1 - 1;
- while true do
- u10.PlatformStand = true;
- 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));
- 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));
- SetWeld(u17, v216, 6, v206, v207, Vector3.new(0.51, -0.3, -0.8), Vector3.new(0, math.pi / 2, -math.pi / 7));
- SetWeld(u18, v216, 6, v208, v209, Vector3.new(-0.51, -0.8, -0.7), Vector3.new(0, math.pi / 2, -math.pi / 3));
- SetWeld(u21, v216, 6, v210, v211, Vector3.new(0, 0.85, 0), Vector3.new(-math.pi / 8, 0, 0));
- v184.position = v184.position + Vector3.new(0, -0.07, 0);
- v158.cframe = v214 * CFrame.Angles(-v215 * 2 + v215 / 6 * v216, 0, 0);
- u4.CFrame = v158.cframe + v184.position;
- if v212 ~= nil then
- v213.Scale = v213.Scale + Vector3.new(1.3, 0.35, 1.3);
- v212.Transparency = 0.3 + 0.11666666666666665 * v216;
- end;
- wait(0.02);
- if 0 <= 1 then
- if v216 < 6 then
- else
- break;
- end;
- elseif 6 < v216 then
- else
- break;
- end;
- v216 = v216 + 1;
- end;
- if v212 ~= nil then
- v212:remove();
- end;
- v217, v218 = GetWeld(u19);
- v219, v220 = GetWeld(u20);
- v221, v222 = GetWeld(u17);
- v223, v224 = GetWeld(u18);
- v225, v226 = GetWeld(u21);
- v227 = 1 - 1;
- while true do
- u10.PlatformStand = true;
- SetWeld(u19, v227, 6, v217, v218, Vector3.new(1.5, 0.5, 0), Vector3.new(0, 0, 0));
- SetWeld(u20, v227, 6, v219, v220, Vector3.new(-1.5, 0.5, 0), Vector3.new(0, 0, 0));
- SetWeld(u17, v227, 6, v221, v222, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v227, 6, v223, v224, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u21, v227, 6, v225, v226, Vector3.new(0, 1, 0), Vector3.new(0, 0, 0));
- v184.position = v184.position + Vector3.new(0, 0.1, 0);
- v158.cframe = v214 * CFrame.Angles(-v215 + v215 / 6 * v227, 0, 0);
- u4.CFrame = v158.cframe + v184.position;
- wait(0.02);
- if 0 <= 1 then
- if v227 < 6 then
- else
- break;
- end;
- elseif 6 < v227 then
- else
- break;
- end;
- v227 = v227 + 1;
- end;
- v184:remove();
- end;
- end;
- v157:remove();
- v158:remove();
- u38 = false;
- Stand();
- end;
- end;
- local u42 = false;
- local u43 = 0;
- function Slide(p25)
- v24.Value = v24.Value + 6;
- u23 = "Sliding";
- u42 = true;
- u25 = u4.Velocity.y;
- local v228 = Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude + 10;
- local l__unit__229 = Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).unit;
- local v230 = Instance.new("BodyVelocity", u4);
- v230.maxForce = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v230.velocity = l__unit__229 * v228;
- local v231 = Instance.new("BodyGyro", u4);
- v231.maxTorque = Vector3.new((1 / 0), (1 / 0), (1 / 0));
- v231.cframe = CFrame.new(v16, l__unit__229) * CFrame.Angles(math.pi / 2.2, 0.24, 0);
- local v232, v233 = GetWeld(u17);
- local v234, v235 = GetWeld(u18);
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(v232.x, v232.y, v232.z), Vector3.new(v233.x, math.pi / 2, v233.z));
- u17.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(v234.x, v234.y, v234.z), Vector3.new(v235.x, math.pi / 2, v235.z));
- u18.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.pi / 2, 0);
- local v236, v237 = GetWeld(u17);
- local v238, v239 = GetWeld(u18);
- local v240, v241 = GetWeld(u19);
- local v242, v243 = GetWeld(u20);
- local v244, v245 = GetWeld(u21);
- local v246 = 0;
- while true do
- if u42 == true then
- else
- break;
- end;
- local v247 = v246 + 1;
- u10.PlatformStand = true;
- local v248, v249 = RAY(u4.Position + Vector3.new(0, 0.03, 0), l__unit__229 * 2.5);
- local v250, v251 = RAY(u4.Position - Vector3.new(0, 0.2, 0), l__unit__229 * 2.5);
- local v252, v253 = RAY(u4.Position, Vector3.new(0, -2.6, 0));
- v230.velocity = l__unit__229 * v228 + Vector3.new(0, u25, 0);
- if v247 <= 5 then
- SetWeld(u17, v247, 5, v236, v237, Vector3.new(0.5, -0.8, -0.15), Vector3.new(0, math.pi / 2 + 0.1, -0.4));
- SetWeld(u18, v247, 5, v238, v239, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2 - 0.4, 0));
- SetWeld(u19, v247, 5, v240, v241, Vector3.new(1.5, 0.5, 0), Vector3.new(-0.7, -0.24, math.pi / 5));
- SetWeld(u20, v247, 5, v242, v243, Vector3.new(-1.5, 0.5, 0), Vector3.new(-0.1, 0, -math.pi / 1.5));
- SetWeld(u21, v247, 5, v244, v245, Vector3.new(0, 1, 0), Vector3.new(-0.5, -0.2, 0));
- end;
- if v248 ~= nil then
- if v248.CanCollide ~= true then
- if v250 ~= nil then
- if v250.CanCollide == true then
- v230:remove();
- v231:remove();
- u42 = "HitObject";
- end;
- end;
- else
- v230:remove();
- v231:remove();
- u42 = "HitObject";
- end;
- elseif v250 ~= nil then
- if v250.CanCollide == true then
- v230:remove();
- v231:remove();
- u42 = "HitObject";
- end;
- end;
- if v252 ~= nil then
- u25 = 0;
- u4.CFrame = CFrame.new(v253, v253 + l__unit__229) * CFrame.Angles(math.pi / 2.2, 0.24, 0) + Vector3.new(0, 0.7, 0);
- local v254 = v228 - 0.95;
- else
- if -180 < u25 then
- u25 = u25 - 5.6;
- end;
- v254 = v228 - 0.36;
- end;
- if v228 < 7 then
- u42 = false;
- end;
- wait(0.02);
- end;
- if u42 == false then
- local v255, v256 = GetWeld(u17);
- local v257, v258 = GetWeld(u18);
- local v259, v260 = GetWeld(u19);
- local v261, v262 = GetWeld(u20);
- local v263, v264 = GetWeld(u21);
- local v265 = 1 - 1;
- while true do
- SetWeld(u17, v265, 4, v255, v256, Vector3.new(0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u18, v265, 4, v257, v258, Vector3.new(-0.5, -1, 0), Vector3.new(0, math.pi / 2, 0));
- SetWeld(u19, v265, 4, v259, v260, Vector3.new(1.5, 0.5, 0), v16);
- SetWeld(u20, v265, 4, v261, v262, Vector3.new(-1.5, 0.5, 0), v16);
- SetWeld(u21, v265, 4, v263, v264, Vector3.new(0, 1, 0), v16);
- local v266, v267 = RAY(u4.Position, Vector3.new(0, -2.6, 0));
- 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);
- v230.velocity = l__unit__229 * v228 + Vector3.new(0, u25, 0);
- if v266 ~= nil then
- u25 = 0;
- 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);
- local v268 = v228 - 0.95;
- else
- if -180 < u25 then
- u25 = u25 - 5.6;
- end;
- v268 = v228 - 0.36;
- end;
- wait(0.02);
- if 0 <= 1 then
- if v265 < 4 then
- else
- break;
- end;
- elseif 4 < v265 then
- else
- break;
- end;
- v265 = v265 + 1;
- end;
- local v269, v270 = RAY(u4.Position, Vector3.new(0, -2.6, 0));
- u4.CFrame = CFrame.new(v270, v270 + l__unit__229) + Vector3.new(0, 3, 0);
- end;
- v230:remove();
- v231:remove();
- u43 = 10;
- Stand();
- end;
- local u44 = false;
- local u45 = false;
- function KD(p26)
- if v23.Value == false then
- if p26 == string.char(32) then
- u44 = true;
- local v271, v272 = RAY(u4.Position, Vector3.new(0, -3.7, 0));
- local v273, v274, v275 = RAY(u4.Position + Vector3.new(0, 1.1, 0), u4.CFrame.lookVector * 2.3);
- local v276 = nil;
- local v277 = nil;
- local v278 = nil;
- local v279 = nil;
- local v280 = nil;
- local v281 = nil;
- if u31 == false then
- local v282, v283, v284 = RAY(u4.Position, ((u4.CFrame * CFrame.new(1.5, 0, -0.2)).p - u4.CFrame.p).unit * 3.9);
- v276 = v282;
- v277 = v283;
- v278 = v284;
- local v285, v286, v287 = RAY(u4.Position, ((u4.CFrame * CFrame.new(-1.5, 0, -0.2)).p - u4.CFrame.p).unit * 3.9);
- v279 = v285;
- v280 = v286;
- v281 = v287;
- elseif u31 == "Jumping" then
- 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);
- v276 = v288;
- v277 = v289;
- v278 = v290;
- 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);
- v279 = v291;
- v280 = v292;
- v281 = v293;
- end;
- if u23 == "Standing" then
- if u45 == true then
- if v273 ~= nil then
- if v273.CanCollide == false then
- if v276 ~= nil then
- if v276.CanCollide == false then
- if v279 ~= nil then
- if v279.CanCollide == false then
- if v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.CanCollide == false then
- if v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v276 ~= nil then
- if v276.CanCollide == false then
- if v279 ~= nil then
- if v279.CanCollide == false then
- if v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.CanCollide == false then
- if v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif v271 ~= nil then
- if v271.CanCollide == false then
- if 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- elseif 6 < u4.Velocity.y then
- if u4.Velocity.y < 50 then
- if u30 <= 0 then
- if 10 <= u2 then
- Dive();
- end;
- end;
- end;
- end;
- end;
- end;
- if v273 == nil then
- if u38 == "Falling" then
- u38 = "BackflipFromFall";
- end;
- end;
- if u45 == true then
- if -50 < u4.Velocity.y then
- if u24 == false then
- if u30 <= 0 then
- local v294, v295 = RAY(u4.Position, Vector3.new(0, -3.5, 0));
- if v273 ~= nil then
- if u23 == "Standing" then
- if u36 == 0 then
- if v294 ~= nil then
- if v294.CanCollide == false then
- VWR(v273, v274, v275);
- end;
- else
- VWR(v273, v274, v275);
- end;
- end;
- end;
- end;
- if u31 ~= false then
- if u31 == "Jumping" then
- if u32 == v276 then
- if u32 ~= v279 then
- if u34 == 0 then
- if u38 == false then
- if v273 ~= nil then
- if u31 == "Jumping" then
- if v276 ~= nil then
- if v276.Parent:findFirstChild("Humanoid") == nil then
- if v276.Parent.className == "Hat" then
- if v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- local l__magnitude__296 = (v277 - u4.Position).magnitude;
- local l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v276 ~= nil then
- if v276.Parent:findFirstChild("Humanoid") == nil then
- if v276.Parent.className == "Hat" then
- if v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- elseif u34 == 0 then
- if u38 == false then
- if v273 ~= nil then
- if u31 == "Jumping" then
- if v276 ~= nil then
- if v276.Parent:findFirstChild("Humanoid") == nil then
- if v276.Parent.className == "Hat" then
- if v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v276 ~= nil then
- if v276.Parent:findFirstChild("Humanoid") == nil then
- if v276.Parent.className == "Hat" then
- if v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- elseif u34 == 0 then
- if u38 == false then
- if v273 ~= nil then
- if u31 == "Jumping" then
- if v276 ~= nil then
- if v276.Parent:findFirstChild("Humanoid") == nil then
- if v276.Parent.className == "Hat" then
- if v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v276 ~= nil then
- if v276.Parent:findFirstChild("Humanoid") == nil then
- if v276.Parent.className == "Hat" then
- if v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- elseif v279 ~= nil then
- if v279.Parent:findFirstChild("Humanoid") == nil then
- if v279.Parent.className ~= "Hat" then
- if v294 ~= nil then
- if v294.CanCollide == false then
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- else
- l__magnitude__296 = (v277 - u4.Position).magnitude;
- l__magnitude__297 = (v280 - u4.Position).magnitude;
- if l__magnitude__296 < l__magnitude__297 then
- if u31 == "Jumping" then
- if u32 ~= v276 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v276, v277, v278, -math.pi / 2);
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v276, v277, v278, -math.pi / 2);
- end;
- elseif l__magnitude__297 < l__magnitude__296 then
- if u31 == "Jumping" then
- if u32 ~= v279 then
- u31 = false;
- while true do
- if u16 == false then
- else
- break;
- end;
- wait(0.01);
- end;
- HWallRun(v279, v280, v281, math.pi / 2);
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- elseif v273 == nil then
- HWallRun(v279, v280, v281, math.pi / 2);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- if u31 == true then
- u31 = "Jumping";
- u23 = "HWRJumping";
- return;
- end;
- else
- if p26 == string.char(48) then
- u45 = true;
- return;
- end;
- if p26 == string.char(50) then
- if u23 == "Standing" then
- Sit();
- return;
- end;
- if u31 == true then
- u37 = true;
- return;
- end;
- elseif p26 == string.char(52) then
- if u45 == true then
- if u23 == "Standing" then
- if u43 == 0 then
- if 15 < Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude then
- if -40 < u4.Velocity.y then
- Slide();
- return;
- end;
- end;
- end;
- end;
- end;
- else
- if p26 == "a" then
- u40 = true;
- return;
- end;
- if p26 == "d" then
- u41 = true;
- end;
- end;
- end;
- end;
- end;
- function KU(p27)
- if p27 == string.char(32) then
- u44 = false;
- return;
- end;
- if p27 == string.char(48) then
- u45 = false;
- return;
- end;
- if p27 == string.char(50) then
- if u23 == "Sitting" then
- Stand();
- return;
- else
- return;
- end;
- else
- if p27 == string.char(52) then
- u42 = false;
- return;
- end;
- if p27 == "a" then
- else
- if p27 == "d" then
- u41 = false;
- end;
- return;
- end;
- end;
- u40 = false;
- end;
- l__mouse__2.KeyDown:connect(function(p28)
- KD(p28);
- end);
- l__mouse__2.KeyUp:connect(function(p29)
- KU(p29);
- end);
- u17 = Instance.new("Motor", u4);
- GetWeld(u17);
- u18 = Instance.new("Motor", u4);
- GetWeld(u18);
- u19 = Instance.new("Motor", u4);
- GetWeld(u19);
- u20 = Instance.new("Motor", u4);
- GetWeld(u20);
- u21 = Instance.new("Motor", u4);
- GetWeld(u21);
- Stand();
- local v298 = Instance.new("BodyGyro");
- v298.D = 100;
- local v299 = {};
- local v300 = {};
- for v301 = 1, 13 do
- local v302 = v26:Clone();
- v302.Name = "Part" .. v301;
- local v303 = Instance.new("SpecialMesh", v302);
- v303.MeshId = "http://www.roblox.com/Asset/?id=9856898";
- v303.TextureId = "http://www.roblox.com/Asset/?id=48358980";
- table.insert(v299, { v302, v303 });
- end;
- for v304 = 1, 13 do
- local v305 = v26:Clone();
- v305.Name = "Part" .. v304;
- local v306 = Instance.new("SpecialMesh", v305);
- v306.MeshId = "http://www.roblox.com/Asset/?id=9856898";
- v306.TextureId = "http://www.roblox.com/Asset/?id=48358980";
- table.insert(v300, { v305, v306 });
- end;
- local u46 = "Idle";
- local u47 = 0;
- local u48 = 0.01;
- local u49 = true;
- local u50 = 0;
- local u51 = 95;
- local u52 = tick();
- local u53 = 0;
- local u54 = (u6.CFrame * CFrame.new(0, -1, 0)).p;
- local u55 = (u5.CFrame * CFrame.new(0, -1, 0)).p;
- local u56 = 0;
- local l__CurrentCamera__57 = workspace.CurrentCamera;
- local u58 = "Idle";
- game:service("RunService").Stepped:connect(function()
- u46 = "Idle";
- u47 = u47 + 3;
- u47 = u47 % 360;
- if math.pi < u48 then
- u49 = false;
- elseif u48 < -math.pi then
- u49 = true;
- end;
- if u49 == true then
- u48 = u48 + u50;
- elseif u49 == false then
- u48 = u48 - u50;
- end;
- local v307, v308 = RAY(u4.Position, Vector3.new(0, -3.9, 0));
- if u45 == true then
- u10.WalkSpeed = u33;
- else
- u10.WalkSpeed = 16;
- end;
- if u51 >= 70 and u51 < 74 and Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude > 25 then
- u51 = u51 + 1;
- elseif u51 <= 74 and u51 > 70 and Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude < 20 then
- u51 = u51 - 1;
- end;
- if v23.Value == true then
- u10.WalkSpeed = 0;
- end;
- if u22 == true then
- local v309, v310 = RAY(u4.Position, Vector3.new(0, -2.2, 0));
- u10.PlatformStand = true;
- if v309 == nil then
- Stand();
- end;
- end;
- if u24 == true then
- u10.PlatformStand = true;
- u28.velocity = Vector3.new(u26.x * (u33 + 2), u25, u26.z * (u33 + 2));
- u29.cframe = CFrame.new(u4.Position, u4.Position + u28.velocity) * CFrame.Angles(-math.pi / 2, 0, 0);
- if u25 > -180 then
- u25 = u25 - 2;
- end;
- end;
- if u30 > 0 then
- u30 = u30 - 1;
- end;
- if u31 == true then
- if u37 == false then
- u25 = u25 - 0.4;
- else
- u25 = u25 - 2;
- end;
- elseif u31 == "Jumping" then
- u25 = u25 - 1.7;
- end;
- if Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude > 18 and u23 == "Standing" and u45 == true then
- if u2 > 0 then
- u2 = u2 - 0.5;
- if u2 < 0 then
- u45 = false;
- u2 = 0;
- end;
- else
- u45 = false;
- u2 = 0;
- end;
- if u23 == "Standing" then
- u50 = 0.85;
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 4.85, 0, 0));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 4.85, 0, 0));
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(u48 / 3.5, 0, 0));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(-u48 / 3.5, 0, 0));
- end;
- elseif Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude > 12 and u23 ~= "Sliding" then
- if u2 < 100000 then
- u2 = u2 + 0.5;
- if u2 > 100000 then
- u2 = 100000;
- end;
- else
- u2 = 100000;
- end;
- if u23 == "Standing" then
- u50 = 0.65;
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 7, 0, 0));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 7, 0, 0));
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(u48 / 5, 0, 0));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(-u48 / 5, 0, 0));
- end;
- elseif Vector3.new(u4.Velocity.x, 0, u4.Velocity.z).magnitude < 2 then
- u50 = 0.1;
- if u23 == "Standing" then
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 38, 0, 0));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 38, 0, 0));
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(u48 / 30, 0, 0));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(-u48 / 30, 0, 0));
- end;
- if u2 < 100000 then
- if u22 == false then
- u2 = u2 + 0.65;
- else
- u2 = u2 + 1.02;
- end;
- if u2 > 100000 then
- u2 = 100000;
- end;
- else
- u2 = 100000;
- end;
- end;
- if v307 == nil then
- if not (u4.Velocity.y > 1) then
- if u4.Velocity.y < -1 and u4.Velocity.y > -90 and u23 == "Standing" then
- u46 = "Rising";
- u50 = 0.1;
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 38, 0, 0));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 38, 0, 0));
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + u48 / 30, 0, 0));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + -u48 / 30, 0, 0));
- if v298.Parent ~= nil then
- v298.Parent = u4;
- v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
- local v311 = u4.CFrame.lookVector * 100;
- v298.cframe = CFrame.new(v16, Vector3.new(v311.x, 0, v311.z));
- v298.Parent = nil;
- end;
- end;
- elseif u23 == "Standing" then
- u46 = "Rising";
- u50 = 0.1;
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.5, -1, 0), Vector3.new(-u48 / 38, 0, 0));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.5, -1, 0), Vector3.new(u48 / 38, 0, 0));
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + u48 / 30, 0, 0));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.5, 0.5, 0), Vector3.new(math.pi - 0.2 + -u48 / 30, 0, 0));
- if v298.Parent ~= nil then
- v298.Parent = u4;
- v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
- v311 = u4.CFrame.lookVector * 100;
- v298.cframe = CFrame.new(v16, Vector3.new(v311.x, 0, v311.z));
- v298.Parent = nil;
- end;
- end;
- end;
- if v307 == nil then
- local v312, v313 = RAY(u4.Position, Vector3.new(0, -6, 0));
- if v312 == nil then
- if u4.Velocity.y < -90 and u23 == "Standing" then
- u46 = "Falling";
- u50 = 1.1;
- v298.Parent = u4;
- v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
- local v314 = u4.CFrame.lookVector * 100;
- v298.cframe = CFrame.new(v16, Vector3.new(v314.x, 0, v314.z)) * CFrame.Angles(-math.pi / 11, u48 / 70, 0);
- SetWeld(u17, 1, 1, v16, v16, Vector3.new(0.45, -0.8, 0), Vector3.new(u48 / 27 - 0.3, 0, 0.18));
- SetWeld(u18, 1, 1, v16, v16, Vector3.new(-0.45, -0.8, 0), Vector3.new(-u48 / 27 - 0.3, 0, -0.18));
- SetWeld(u19, 1, 1, v16, v16, Vector3.new(1.4, 0.5, 0), Vector3.new(math.pi + 0.2 + u48 / 26, 0, 0.18));
- SetWeld(u20, 1, 1, v16, v16, Vector3.new(-1.4, 0.5, 0), Vector3.new(math.pi + 0.2 + -u48 / 26, 0, -0.18));
- end;
- elseif v312.CanCollide == true and v298.Parent ~= nil then
- v298.Parent = u4;
- v298.maxTorque = Vector3.new((1 / 0), 10000, (1 / 0));
- local v315 = u4.CFrame.lookVector * 100;
- v298.cframe = CFrame.new(v16, Vector3.new(v315.x, 0, v315.z));
- v298.Parent = nil;
- end;
- end;
- if u46 == "Idle" and v298.Parent ~= nil then
- v298.Parent = nil;
- end;
- if math.abs(u52 - tick()) > 0.05 then
- u52 = tick();
- local v316 = HSV(u47, 0.7, 1);
- u53 = u53 % #v299 + 1;
- if v24.Value > 25 then
- local l__p__317 = (u6.CFrame * CFrame.new(0, -1, 0)).p;
- local l__p__318 = (u5.CFrame * CFrame.new(0, -1, 0)).p;
- local v319 = v299[u53];
- v319[1].Parent = v25;
- v319[1].CFrame = CFrame.new((l__p__317 + u54) / 2, l__p__317);
- v319[2].Scale = Vector3.new(0.5, 0.5, (l__p__317 - u54).magnitude * 2);
- v319[2].VertexColor = Vector3.new(v316.r, v316.g, v316.b);
- v319[1].Transparency = math.abs(v24.Value / 120 - 0.8);
- v319[1].Transparency = v319[1].Transparency + 1 / #v299;
- local v320 = v300[u53];
- v320[1].Parent = v25;
- v320[1].CFrame = CFrame.new((l__p__318 + u55) / 2, l__p__318);
- v320[2].Scale = Vector3.new(0.5, 0.5, (l__p__318 - u55).magnitude * 2);
- v320[2].VertexColor = Vector3.new(v316.r, v316.g, v316.b);
- v320[1].Transparency = math.abs(v24.Value / 120 - 0.8);
- v320[1].Transparency = v320[1].Transparency + 1 / #v299;
- end;
- for v321, v322 in pairs(v299) do
- if v322[1].Transparency < 0.9 then
- v322[1].Transparency = v322[1].Transparency + 1 / #v299;
- v300[v321][1].Transparency = v300[v321][1].Transparency + 1 / #v299;
- elseif v322[1].Transparency ~= 1 then
- v322[1].Transparency = 1;
- v322[1].Position = Vector3.new(50000, 0, 0);
- v300[v321][1].Transparency = 1;
- v300[v321][1].Position = Vector3.new(50000, 0, 0);
- end;
- end;
- u55 = (u5.CFrame * CFrame.new(0, -1, 0)).p;
- u54 = (u6.CFrame * CFrame.new(0, -1, 0)).p;
- end;
- if v24.Value > 140 and u3.Parent ~= nil then
- u3:remove();
- end;
- if u56 > 0 then
- u56 = u56 - 1;
- end;
- if u34 > 0 then
- u34 = u34 - 1;
- end;
- if u36 > 0 and v307 ~= nil and u36 > 0 then
- u36 = u36 - 1;
- end;
- if u43 > 0 then
- u43 = u43 - 1;
- end;
- if u23 == "HWallRunning" or u23 == "VWallRunning" then
- v24.Value = v24.Value + 0.15;
- if v24.Value > 100 then
- v24.Value = 100;
- end;
- u56 = 40;
- elseif u23 == "Diving" then
- u56 = 30;
- elseif u23 == "Sliding" then
- u56 = 15;
- elseif (u23 == "Standing" or u23 == "Sitting") and v24.Value > 0 and u56 <= 0 then
- v24.Value = v24.Value - 0.19;
- if v24.Value < 0 then
- v24.Value = 0;
- end;
- end;
- l__CurrentCamera__57.FieldOfView = u51;
- prevanimbgcount = 0;
- u33 = 32 + v24.Value / 100 * 2.4;
- u58 = u46;
- Calculate();
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement