Console Controlls
Console Controlls
Sprint = {
Animation = 'rbxassetid://114074286473775';
Speed = 15;
};
Jog = {
Animation = 'rbxassetid://72252468099096';
Speed = 13;
};
Walk = {
Animation = 'rbxassetid://85191583024690';
Speed = 7;
};
Crouch = {
Animation = 'rbxassetid://121860168933610';
IdleAnimation = 'rbxassetid://89100355220321';
Speed = 4;
};
}
Player.Character.Humanoid.WalkSpeed = Data.Walk.Speed
local SprintKeys = {
'LeftShift',
'ButtonL3',
}
UIS.InputBegan:Connect(function(i)
if table.find(SprintKeys,i.KeyCode.Name) and UIS:GetFocusedTextBox() == nil
and Status ~= 'Crouching' and not Player:FindFirstChild('IsInCar') then
ShiftButtonDown = true
if FirstTapDone == true then
FirstTapDone = false
Status = 'Sprinting'
AnimationPlaying = false
RunningOrSprinting = true
else
FirstTapDone = true
Status = 'Jogging'
AnimationPlaying = false
RunningOrSprinting = true
end
function StopSprinting()
Status = 'Walking'
CrouchStatus = 'Idle'
AnimationPlaying = false
RunningOrSprinting = false
Player.Character.Humanoid.WalkSpeed = Data.Walk.Speed
SAnimation:Stop()
JAnimation:Stop()
CAnimation:Stop()
CiAnimation:Stop()
end
UIS.InputEnded:Connect(function(i)
if i.KeyCode == Enum.KeyCode.LeftShift and not
Player:FindFirstChild('IsInCar') then
ShiftButtonDown = false
wait(1.35)
if RunningOrSprinting == true and ShiftButtonDown == false then
StopSprinting()
end
elseif i.KeyCode == Enum.KeyCode.ButtonL2 and not
Player:FindFirstChild('IsInCar') then
ShiftButtonDown = false
wait(1.35)
if RunningOrSprinting == true and ShiftButtonDown == false then
StopSprinting()
end
elseif i.KeyCode == Enum.KeyCode.LeftControl and not
Player:FindFirstChild('IsInCar') then
if Status == 'Crouching' then
Crouching = false
StopSprinting()
end
Player.ChildAdded:Connect(function(child)
if child.Name == 'IsInCar' then
StopSprinting()
end
end)
Run.RenderStepped:Connect(function()
if KeysDown == 0 then
MovementButtonDown = false
else
MovementButtonDown = true
end
wait(0.5)
KeyDebouncer = false
end
if script.Parent:FindFirstChild('FistClient') then
if script.Parent.FistClient:FindFirstChild('Variables') then
if script.Parent.FistClient.Variables:FindFirstChild('FistsUp')
then
if script.Parent.FistClient.Variables.FistsUp.Value == true
then
Fistsup = true
end
end
end
end
else
if Player:FindFirstChild('Status') then
if Player:FindFirstChild('Status').Value == 'Normal' then
Player.Character.Humanoid.WalkSpeed = Data.Walk.Speed
end
end
end
if Player.PlayerGui:FindFirstChild('StatsUI') then
if Player.PlayerGui:FindFirstChild('StatsUI').Enabled == true then
local Formula = Stamina / 100
Player.PlayerGui.StatsUI.Content.Map.Stamina.Filler.Size =
UDim2.new(Formula, 0, 1, 0)
if Status == 'Walking' and Stamina < 90 then
Player.PlayerGui.StatsUI.Content.Map.Stamina.Filler.BackgroundColor3 =
Color3.fromRGB(173, 219, 255)
else
Player.PlayerGui.StatsUI.Content.Map.Stamina.Filler.BackgroundColor3 =
Color3.fromRGB(94, 168, 255)
end
end
end
if script.Effects:FindFirstChildOfClass('NumberValue') or
script.Effects:FindFirstChildOfClass('BoolValue') or
script.Effects:FindFirstChildOfClass('StringValue') then
if script.Effects:FindFirstChild('SpeedBoost') then
Data.Sprint.Speed = 17
Data.Jog.Speed = 15
Data.Walk.Speed = 9
elseif script.Effects:FindFirstChild('SpeedLoss') then
Data.Sprint.Speed = 13
Data.Jog.Speed = 11
Data.Walk.Speed = 5
else
if Status == 'Sprinting' or Status == 'Jogging' or Status ==
'Crouching' then
if Data.Sprint.Speed ~= 15 then
Data.Sprint.Speed = 15
end
if Data.Jog.Speed ~= 13 then
Data.Jog.Speed = 13
end
if Data.Walk.Speed ~= 7 then
Data.Walk.Speed = 7
end
StopSprinting()
Player.Character.Humanoid.WalkSpeed = 7
end
end
end
function ReturnRunStatus()
local RunStatus = Status
return RunStatus
end
game:GetService('RunService').RenderStepped:Connect(function()
local lastInput = UIS:GetLastInputType()