local ReplicatedStorage = game:GetService('ReplicatedStorage') local Players = game:GetService('Players') local player = Players.LocalPlayer local ClientState = require(ReplicatedStorage:WaitForChild('ClientState')) local Config = require(ReplicatedStorage:WaitForChild('Config')) local Speed = 100 local function getSafeSpeed() local success, result = pcall(function() local state = ClientState:Get() return Config.CalculateMaxSpeed(state.Level) end) if success and result then return result end if Config and Config.cfg then return Config.cfg end return 0 end local mt = getrawmetatable(game) local oldIndex = mt.__index setreadonly(mt, false) mt.__index = newcclosure(function(self, key) if not checkcaller() and tostring(key) == 'WalkSpeed' and typeof(self) == 'Instance' and self:IsA('Humanoid') then local safeSpeed = getSafeSpeed() return safeSpeed end return oldIndex(self, key) end) local index__ = mt.__newindex mt.__newindex = newcclosure(function(self, key, value) if not checkcaller() and tostring(key) == 'WalkSpeed' and typeof(self) == 'Instance' and self:IsA('Humanoid') then return end return index__(self, key, value) end) setreadonly(mt, true) local function setSpeed(character) local humanoid = character:WaitForChild('Humanoid', 5) if humanoid then humanoid.WalkSpeed = Speed end end if player.Character then setSpeed(player.Character) end game:GetService('RunService').Heartbeat:Connect(function() if player.Character then local humanoid = player.Character:FindFirstChild('Humanoid') if humanoid and humanoid.WalkSpeed ~= Speed then print('Set Speed back to Original Modification') humanoid.WalkSpeed = Speed end end end) player.CharacterAdded:Connect(function(char) task.wait(0.5) setSpeed(char) end) print('modified current speed')