Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Workspace = game:GetService("Workspace")
- local LocalPlayer = Players.LocalPlayer
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "PigSaken",
- LoadingTitle = "Loading...",
- LoadingSubtitle = "Oink Oink...",
- ToggleUIKeybind = "K",
- KeySystem = false,
- })
- local Main = Window:CreateTab("Stamina")
- local ESPTab = Window:CreateTab("ESP")
- local SprintingModule = require(
- ReplicatedStorage
- :WaitForChild("Systems")
- :WaitForChild("Character")
- :WaitForChild("Game")
- :WaitForChild("Sprinting")
- )
- local defaultLoss = SprintingModule.StaminaLoss
- local defaultGain = SprintingModule.StaminaGain
- local function applyStamina()
- if infStaminaEnabled then
- SprintingModule.StaminaLoss = 0
- SprintingModule.StaminaGain = 9999
- else
- SprintingModule.StaminaLoss = defaultLoss
- SprintingModule.StaminaGain = defaultGain
- end
- end
- Main:CreateToggle({
- Name = "Inf Stamina",
- CurrentValue = false,
- Callback = function(v)
- infStaminaEnabled = v
- applyStamina()
- end
- })
- local connection
- local function getModule()
- local sprinting = ReplicatedStorage
- :WaitForChild("Systems")
- :WaitForChild("Character")
- :WaitForChild("Game")
- :WaitForChild("Sprinting")
- return require(sprinting)
- end
- local function createDisplay()
- local character = LocalPlayer.Character
- if not character then return nil end
- local head = character:WaitForChild("Head")
- pcall(function()
- head:FindFirstChild("StaminaDisplay"):Destroy()
- end)
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "StaminaDisplay"
- billboard.Size = UDim2.new(3, 0, 1, 0)
- billboard.StudsOffset = Vector3.new(0, 3.5, 0)
- billboard.AlwaysOnTop = true
- billboard.LightInfluence = 0
- billboard.Enabled = visualStaminaEnabled
- billboard.Parent = head
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Font = Enum.Font.GothamBold
- textLabel.TextSize = 12
- textLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- textLabel.TextStrokeTransparency = 0.4
- textLabel.Text = "Stamina"
- textLabel.Parent = billboard
- return textLabel
- end
- local function updateDisplay(textLabel)
- local module = getModule()
- local current = math.floor(module.Stamina or 0)
- local maxStam = module.MaxStamina or 100
- textLabel.Text = "Stamina " .. current .. "/" .. maxStam
- end
- local function setupCharacter()
- local textLabel = createDisplay()
- if not textLabel then return end
- if connection then connection:Disconnect() end
- connection = RunService.RenderStepped:Connect(function()
- if visualStaminaEnabled then
- pcall(updateDisplay, textLabel)
- end
- end)
- end
- Main:CreateToggle({
- Name = "Visual Stamina",
- CurrentValue = false,
- Callback = function(v)
- visualStaminaEnabled = v
- local char = LocalPlayer.Character
- if char then
- local head = char:FindFirstChild("Head")
- if head and head:FindFirstChild("StaminaDisplay") then
- head.StaminaDisplay.Enabled = v
- end
- end
- end
- })
- applyStamina()
- if LocalPlayer.Character then
- task.wait(1)
- setupCharacter()
- end
- LocalPlayer.CharacterAdded:Connect(function()
- task.wait(2)
- applyStamina()
- setupCharacter()
- end)
- task.spawn(function()
- local lastFire = 0
- while task.wait(0.1) do
- if autoGenEnabled and tick() - lastFire >= autoGenCooldown then
- pcall(function()
- local mapFolder = Workspace:FindFirstChild("Map")
- and Workspace.Map:FindFirstChild("Ingame")
- and Workspace.Map.Ingame:FindFirstChild("Map")
- if not mapFolder then return end
- for _, gen in pairs(mapFolder:GetChildren()) do
- if gen.Name == "Generator"
- and gen:FindFirstChild("Remotes")
- and gen.Remotes:FindFirstChild("RE") then
- gen.Remotes.RE:FireServer()
- end
- end
- end)
- lastFire = tick()
- end
- end
- end)
- local ESPState = {
- Killers = false,
- Survivors = false,
- Generators = false,
- Items = false
- }
Advertisement
Add Comment
Please, Sign In to add comment