function UpgradeManager.SetWalkspeedToCurrentUpgrade(C,h)local I=h:WaitForChild("\115\116\097\116\115")local F=I:WaitForChild(GameSettings.upgradeName)local b=I:WaitForChild(GameSettings.pointsName)local O=h.Character or h.CharacterAdded:wait()local y=O:WaitForChild("\072\117\109\097\110\111\105\100")y.WalkSpeed=GameSettings.movementSpeed(F.Value)end

function UpgradeManager:SetWalkspeedToCurrentUpgrade(player)
	local stats = player:WaitForChild("stats")
	local playerUpgrades = stats:WaitForChild(GameSettings.upgradeName)
	local points = stats:WaitForChild(GameSettings.pointsName)

	--Change the players movement speed 
	local character = player.Character or player.CharacterAdded:wait()
	local humanoid = character:WaitForChild("Humanoid")
	humanoid.WalkSpeed = GameSettings.movementSpeed(playerUpgrades.Value)
end

