OR4NG3-FRU1T

Untitled

May 31st, 2026
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  4. local Workspace = game:GetService("Workspace")
  5.  
  6. local LocalPlayer = Players.LocalPlayer
  7. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  8.  
  9. local Window = Rayfield:CreateWindow({
  10. Name = "PigSaken",
  11. LoadingTitle = "Loading...",
  12. LoadingSubtitle = "Oink Oink...",
  13. ToggleUIKeybind = "K",
  14. KeySystem = false,
  15. })
  16.  
  17. local Main = Window:CreateTab("Stamina")
  18. local ESPTab = Window:CreateTab("ESP")
  19.  
  20. local SprintingModule = require(
  21. ReplicatedStorage
  22. :WaitForChild("Systems")
  23. :WaitForChild("Character")
  24. :WaitForChild("Game")
  25. :WaitForChild("Sprinting")
  26. )
  27.  
  28. local defaultLoss = SprintingModule.StaminaLoss
  29. local defaultGain = SprintingModule.StaminaGain
  30.  
  31. local function applyStamina()
  32. if infStaminaEnabled then
  33. SprintingModule.StaminaLoss = 0
  34. SprintingModule.StaminaGain = 9999
  35. else
  36. SprintingModule.StaminaLoss = defaultLoss
  37. SprintingModule.StaminaGain = defaultGain
  38. end
  39. end
  40.  
  41. Main:CreateToggle({
  42. Name = "Inf Stamina",
  43. CurrentValue = false,
  44. Callback = function(v)
  45. infStaminaEnabled = v
  46. applyStamina()
  47. end
  48. })
  49.  
  50. local connection
  51.  
  52. local function getModule()
  53. local sprinting = ReplicatedStorage
  54. :WaitForChild("Systems")
  55. :WaitForChild("Character")
  56. :WaitForChild("Game")
  57. :WaitForChild("Sprinting")
  58.  
  59. return require(sprinting)
  60. end
  61.  
  62. local function createDisplay()
  63. local character = LocalPlayer.Character
  64. if not character then return nil end
  65.  
  66. local head = character:WaitForChild("Head")
  67.  
  68. pcall(function()
  69. head:FindFirstChild("StaminaDisplay"):Destroy()
  70. end)
  71.  
  72. local billboard = Instance.new("BillboardGui")
  73. billboard.Name = "StaminaDisplay"
  74. billboard.Size = UDim2.new(3, 0, 1, 0)
  75. billboard.StudsOffset = Vector3.new(0, 3.5, 0)
  76. billboard.AlwaysOnTop = true
  77. billboard.LightInfluence = 0
  78. billboard.Enabled = visualStaminaEnabled
  79. billboard.Parent = head
  80.  
  81. local textLabel = Instance.new("TextLabel")
  82. textLabel.Size = UDim2.new(1, 0, 1, 0)
  83. textLabel.BackgroundTransparency = 1
  84. textLabel.Font = Enum.Font.GothamBold
  85. textLabel.TextSize = 12
  86. textLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  87. textLabel.TextStrokeTransparency = 0.4
  88. textLabel.Text = "Stamina"
  89. textLabel.Parent = billboard
  90.  
  91. return textLabel
  92. end
  93.  
  94. local function updateDisplay(textLabel)
  95. local module = getModule()
  96.  
  97. local current = math.floor(module.Stamina or 0)
  98. local maxStam = module.MaxStamina or 100
  99.  
  100. textLabel.Text = "Stamina " .. current .. "/" .. maxStam
  101. end
  102.  
  103. local function setupCharacter()
  104. local textLabel = createDisplay()
  105. if not textLabel then return end
  106.  
  107. if connection then connection:Disconnect() end
  108.  
  109. connection = RunService.RenderStepped:Connect(function()
  110. if visualStaminaEnabled then
  111. pcall(updateDisplay, textLabel)
  112. end
  113. end)
  114. end
  115.  
  116. Main:CreateToggle({
  117. Name = "Visual Stamina",
  118. CurrentValue = false,
  119. Callback = function(v)
  120. visualStaminaEnabled = v
  121.  
  122. local char = LocalPlayer.Character
  123. if char then
  124. local head = char:FindFirstChild("Head")
  125. if head and head:FindFirstChild("StaminaDisplay") then
  126. head.StaminaDisplay.Enabled = v
  127. end
  128. end
  129. end
  130. })
  131.  
  132. applyStamina()
  133.  
  134. if LocalPlayer.Character then
  135. task.wait(1)
  136. setupCharacter()
  137. end
  138.  
  139. LocalPlayer.CharacterAdded:Connect(function()
  140. task.wait(2)
  141. applyStamina()
  142. setupCharacter()
  143. end)
  144.  
  145. task.spawn(function()
  146. local lastFire = 0
  147.  
  148. while task.wait(0.1) do
  149. if autoGenEnabled and tick() - lastFire >= autoGenCooldown then
  150. pcall(function()
  151. local mapFolder = Workspace:FindFirstChild("Map")
  152. and Workspace.Map:FindFirstChild("Ingame")
  153. and Workspace.Map.Ingame:FindFirstChild("Map")
  154.  
  155. if not mapFolder then return end
  156.  
  157. for _, gen in pairs(mapFolder:GetChildren()) do
  158. if gen.Name == "Generator"
  159. and gen:FindFirstChild("Remotes")
  160. and gen.Remotes:FindFirstChild("RE") then
  161.  
  162. gen.Remotes.RE:FireServer()
  163. end
  164. end
  165. end)
  166.  
  167. lastFire = tick()
  168. end
  169. end
  170. end)
  171.  
  172. local ESPState = {
  173. Killers = false,
  174. Survivors = false,
  175. Generators = false,
  176. Items = false
  177. }
Advertisement
Add Comment
Please, Sign In to add comment