assert(require, [[missing function 'require']]) if _G.Updater then _G.Updater:Disconnect() _G.Updater = nil end LocalPlayer = game.GetService(game, 'Players').LocalPlayer ReplicatedStorage = game.GetService(game, 'ReplicatedStorage') GlobalCData = require(ReplicatedStorage.Modules.GlobalCData) _G.Enabled = true _G.Updater = game.GetService(game, 'RunService').PostSimulation:Connect(function() if _G.Enabled ~= true then _G.Updater:Disconnect();_G.Updater = nil return end if not LocalPlayer.Character then return end GlobalCData.Stamina = GlobalCData.MaxStamina end) --[[ _G.Enabled = false - execute this to disconnect the loop and stop the script ]]