ScriptsQP

CombatWarriors inf stamina

Jun 1st, 2024
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. -- CW | Inf. Stamina & No Jump Cooldown --
  2. -- Made by neexx on V3rm --
  3.  
  4. for i,v in pairs(getgc(true)) do
  5. if typeof(v) == "table" and rawget(v, "getIsMaxed") then
  6. v.getIsMaxed = function()
  7. return false
  8. end
  9. v.getFlags = function()
  10. return 1
  11. end
  12. v.addFlags = function(a,b)
  13. a:setFlags(0)
  14. return
  15. end
  16. end
  17. -- "There was another script here but it caused the user to crash (lag out), so it had to be removed" -KiwisASkid --
  18. if typeof(v) == "table" and rawget(v, "spawnCharacter") then
  19. local oldfunc = v.spawnCharacter
  20. v.SpawnCharacter = function(a)
  21. for _,f in pairs(getgc(true)) do
  22. if typeof(f) == "table" and rawget(f, "getIsMaxed") then
  23. f.getIsMaxed = function()
  24. return false
  25. end
  26. f.getFlags = function()
  27. return 1
  28. end
  29. f.addFlags = function(aa,b)
  30. aa:setFlags(0)
  31. return
  32. end
  33. end
  34. end
  35. end
  36. end
  37. if typeof(v) == "table" and rawget(v, "getCanJump") then
  38. v.getCanJump = function()
  39. return true
  40. end
  41. end
  42. if typeof(v) == "table" and rawget(v, "JUMP_DELAY_ADD") then
  43. v.JUMP_DELAY_ADD = 0.5
  44. end
  45. if typeof(v) == "table" and rawget(v, "_setStamina") then
  46. v._setStamina = function(a, b)
  47. a._stamina = math.huge
  48. a._staminaChangedSignal:Fire(99)
  49. end
  50. end
  51. end
  52. game.StarterGui:SetCore("SendNotification", {Title = "CB", Text = "Script loaded, "..game.Players.LocalPlayer.DisplayName..".", Duration = 4,})
Add Comment
Please, Sign In to add comment