Slide is broken i dont know what is happening 'local l__ContextActionService__1 = game:GetService(“ContextActionService”);
local l__RunService__2 = game:GetService(“RunService”);
local l__LocalPlayer__3 = game.Players.LocalPlayer;
local l__Character__4 = l__LocalPlayer__3.Character;
local l__Head__5 = l__Character__4:WaitForChild(“Head”);
local l__Humanoid__6 = l__Character__4:WaitForChild(“Humanoid”);
local v7 = nil;
local v8 = l__Humanoid__6:LoadAnimation(script:WaitForChild(“Animation”));
local l__Particles__9 = script:WaitForChild(“Particles”);
local l__Sound__10 = script:WaitForChild(“Sound”);
local u1 = true;
l__Humanoid__6.StateChanged:connect(function(p1, p2)
if p2 ~= unpack({ Enum.HumanoidStateType.Running }) then
u1 = false;
return;
end;
u1 = true;
end);
l__Particles__9.Parent = l__Head__5;
local u2 = false;
local l__RootPart__3 = l__Humanoid__6.RootPart;
function runSlide(p3, p4, p5)
if p4 == Enum.UserInputState.Begin then
if u1 then
else
if p4 == Enum.UserInputState.End then
u2 = false;
v8:Stop(0.12);
l__Particles__9.Enabled = false;
l__Humanoid__6.HipHeight = 0;
l__RootPart__3.Size = Vector3.new(2, 2, 1);
l__Humanoid__6:MoveTo(l__RootPart__3.Position);
end;
return;
end;
else
if p4 == Enum.UserInputState.End then
u2 = false;
v8:Stop(0.12);
l__Particles__9.Enabled = false;
l__Humanoid__6.HipHeight = 0;
l__RootPart__3.Size = Vector3.new(2, 2, 1);
l__Humanoid__6:MoveTo(l__RootPart__3.Position);
end;
return;
end;
u2 = true;
l__Sound__10:Play();
v8:Play(0.17);
l__Particles__9.Enabled = true;
l__Humanoid__6.HipHeight = -1.5;
l__RootPart__3.Size = Vector3.new(2, 1, 0.5);
local v11 = tick();
if 0 < l__Humanoid__6.MoveDirection.Magnitude then
local v12 = l__Humanoid__6.MoveDirection * l__Humanoid__6.WalkSpeed;
else
v12 = l__RootPart__3.CFrame.LookVector * l__Humanoid__6.WalkSpeed;
end;
while true do
if u2 then
else
break;
end;
l__RunService__2.RenderStepped:Wait();
l__Humanoid__6:MoveTo(l__RootPart__3.Position + v12);
l__Humanoid__6:GetPropertyChangedSignal("Jump"):connect(function()
u2 = false;
end);
l__Humanoid__6.Climbing:connect(function()
u2 = false;
end);
if 0.5 <= tick() - v11 then
u2 = false;
end;
end;
u2 = false;
v8:Stop(0.12);
l__Particles__9.Enabled = false;
l__Humanoid__6.HipHeight = 0;
l__RootPart__3.Size = Vector3.new(2, 2, 1);
l__Humanoid__6:MoveTo(l__RootPart__3.Position);
end;
l__ContextActionService__1:BindAction(“runSlide”, runSlide, true, Enum.KeyCode.E);
l__ContextActionService__1:SetTitle(“runSlide”, “Slide”);
local v13 = l__ContextActionService__1:GetButton(“runSlide”);
v13.Name = “SlideButton”;
local l__next__14 = next;
local v15, v16 = l__LocalPlayer__3.PlayerGui:GetDescendants();
while true do
local v17, v18 = l__next__14(v15, v16);
if not v17 then
break;
end;
v16 = v17;
if v18:IsA(“GuiButton”) and v18.Name == “JumpButton” then
v7 = v18;
break;
end;
end;
if v7 and v13 then
v13.Position = v7.Position - UDim2.new(UDim.new(0, 0), v7.Size.Y + UDim.new(0, 10));
v13.Size = v7.Size;
local v19 = v13:FindFirstChildWhichIsA(“TextLabel”);
v19.TextScaled = true;
v19.Position = UDim2.new(0.1, 0, 0.1, 0);
v19.Size = UDim2.new(0.8, 0, 0.8, 0);
end;’