
Keyless

local RequireSharedCharacter = require(game:GetService("ReplicatedStorage").Shared.Classes.SharedCharacter)
local DisableStaminaUse = true
local StaminaDeplete_Speed = 1 -- 1 = 100% use, 0.35 = 35% use
local StaminaRegain_Speed = 4.5 -- Staminda Regain multiplier, 1 is default (1-100)
local StaminaRegainCoolDown = 0.125 -- 0.125 is default
local debugTable = false
--[[
I usually make scripts for me and my friend but I need money to help me fund
a project of mine and other personal things.
donating anything to me would help a lot and i would appreciate it!
I currently only own paypal sorry :(
@PAYPAL paypal.me/lucidscripts
This would also help me stay motivated and I can release good quality scripts completely free and
not obfuscated for you to learn and see :)!!
I am a fucking scripter!
I’m just stuck selling shit furniture because someone won’t get off their fat fucking ass and help me.
--]]
RequireSharedCharacter.RegainStamina = function(p292, p293, p294, p295) -- Line: 1937
if not p295 and p292.State.StaminaCooldown > 0 then
return;
end;
local State = p292.State;
local v296 = p292.State.Stamina + math.abs(p293 * StaminaRegain_Speed or 10) * (1 - p292.State.StaminaActivity) * (p294 * StaminaRegain_Speed or 1);
State.Stamina = math.min(v296, p292.State.MaxStamina)
if p292.State.Stamina > 20 then
p292.State.BadStamina = false;
end
end
RequireSharedCharacter.DepleteStamina = function(p297, p298, p299, p300)
if tostring(p297) == game.Players.LocalPlayer.Name and debugTable == true then
warn(p297,p298,p299,p300)
end
if DisableStaminaUse then
return
end
local v301 = p297.State.Stamina - math.abs(p298 or 5) * (p300 * StaminaDeplete_Speed or 1);
local v302 = math.max(v301, 0);
if v302 <= 0 then
p297.State.BadStamina = true;
end;
p297.State.Stamina = v302;
local _ = p297.State.InChase;
p297:SetStaminaCooldown(StaminaRegainCoolDown);
endNo comments yet for this script.